blob: 035ce9ca6243808d1c92164be7100a533a1dc521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# linux32 rpmbuild -ba libfoobar.spec --target i586
# linux32 rpmbuild -ba libfoobar.spec --target i686
# we could build with -static but then pkg goes up from 8.5kb to 280Kb:
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}libc.so
Summary: x
Name: libfoobar
Version: 1
Release: 1
License: x
%build
cat > t.c <<EOF
void main () {}
EOF
#linux32 gcc -m32 -march=i586 -o t t.c
cc -o t t.c
%install
mkdir -p %buildroot/%_bindir
cp -a t %buildroot/%_bindir
%description
binary lib
%files
%_bindir/t
|