summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS/i586-to-i686
diff options
context:
space:
mode:
Diffstat (limited to 't/data/SPECS/i586-to-i686')
-rw-r--r--t/data/SPECS/i586-to-i686/libfoobar.spec26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/data/SPECS/i586-to-i686/libfoobar.spec b/t/data/SPECS/i586-to-i686/libfoobar.spec
new file mode 100644
index 00000000..891d2e98
--- /dev/null
+++ b/t/data/SPECS/i586-to-i686/libfoobar.spec
@@ -0,0 +1,26 @@
+# rpmbuild -ba libfoobar.spec --target i586
+# 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
+
+%install
+mkdir -p %buildroot/%_bindir
+cp -a t %buildroot/%_bindir
+
+%description
+binary lib
+
+%files
+%_bindir/t