summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS/i586-to-i686
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2024-05-28 23:51:12 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2024-05-31 10:56:31 +0200
commit424c3613364da85533d0dd9b5c49f33f687e112d (patch)
treead435820985bcb72a9b6e0f862e3600f8e002b13 /t/data/SPECS/i586-to-i686
parent1fd56cde881acd60025c8b844ae6c98849d15b8f (diff)
downloadurpmi-424c3613364da85533d0dd9b5c49f33f687e112d.tar
urpmi-424c3613364da85533d0dd9b5c49f33f687e112d.tar.gz
urpmi-424c3613364da85533d0dd9b5c49f33f687e112d.tar.bz2
urpmi-424c3613364da85533d0dd9b5c49f33f687e112d.tar.xz
urpmi-424c3613364da85533d0dd9b5c49f33f687e112d.zip
Add i586 to i686 upgrate test
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