summaryrefslogtreecommitdiffstats
path: root/testing/rinse/rinse-set-rpm-platform.patch
blob: a5eae642b802de2077f3d4db40d4fc44c105bbaa (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
--- rinse-2.0.1.orig/scripts/centos-5/post-install.sh
+++ rinse-2.0.1/scripts/centos-5/post-install.sh
@@ -10,6 +10,17 @@
   exit
 fi
 
+# specify platform
+echo "  post-install.sh : arch is ${ARCH}"
+if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ]; then
+    arch=x86_64
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+if [ "${ARCH}" = "i386" ]; then
+    arch=i686
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+
 # rpm's can now be removed
 rm -f ${prefix}/*.rpm
 
--- rinse-2.0.1.orig/scripts/centos-6/post-install.sh
+++ rinse-2.0.1/scripts/centos-6/post-install.sh
@@ -10,6 +10,17 @@
   exit
 fi
 
+# specify platform
+echo "  post-install.sh : arch is ${ARCH}"
+if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ]; then
+    arch=x86_64
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+if [ "${ARCH}" = "i386" ]; then
+    arch=i686
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+
 # rpm's can now be removed
 rm -f ${prefix}/*.rpm
 
--- rinse-2.0.1.orig/scripts/rhel-5/post-install.sh
+++ rinse-2.0.1/scripts/rhel-5/post-install.sh
@@ -10,6 +10,17 @@
   exit
 fi
 
+# specify platform
+echo "  post-install.sh : arch is ${ARCH}"
+if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then
+    arch=x86_64
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+if [ "${ARCH}" = "i386" ]; then
+    arch=i686
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+
 # rpm's can now be removed
 rm -f ${prefix}/*.rpm
 
--- rinse-2.0.1.orig/scripts/slc-5/post-install.sh
+++ rinse-2.0.1/scripts/slc-5/post-install.sh
@@ -10,6 +10,17 @@
   exit
 fi
 
+# specify platform
+echo "  post-install.sh : arch is ${ARCH}"
+if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then
+    arch=x86_64
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+if [ "${ARCH}" = "i386" ]; then
+    arch=i686
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+
 # rpm's can now be removed
 rm -f ${prefix}/*.rpm
 
--- rinse-2.0.1.orig/scripts/slc-6/post-install.sh
+++ rinse-2.0.1/scripts/slc-6/post-install.sh
@@ -10,6 +10,17 @@
   exit
 fi
 
+# specify platform
+echo "  post-install.sh : arch is ${ARCH}"
+if [ "${ARCH}" = "amd64" -o "${ARCH}" = "x86_64" ] ; then
+    arch=x86_64
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+if [ "${ARCH}" = "i386" ]; then
+    arch=i686
+    echo $arch-redhat-linux > ${prefix}/etc/rpm/platform
+fi
+
 # rpm's can now be removed
 rm -f ${prefix}/*.rpm