summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2021-01-28 11:41:43 +0300
committerSlava Barinov <v.barinov@samsung.com>2021-01-28 14:59:20 +0300
commitc45a409a56462d50c0a39c4cf52b756903355edd (patch)
tree94ee30120e244461e6853a5c302dc47381f6f70e
parent38cdf5113127519d0a13b7789166ed57c0e821a5 (diff)
downloadrpm-c45a409a56462d50c0a39c4cf52b756903355edd.tar.gz
rpm-c45a409a56462d50c0a39c4cf52b756903355edd.tar.bz2
rpm-c45a409a56462d50c0a39c4cf52b756903355edd.zip
Change-Id: Ief8df366a4142fb0eee60b4f673cfb1c2473a208
-rw-r--r--packaging/baselibs.conf10
-rw-r--r--packaging/rpm.spec11
2 files changed, 21 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 000000000..43b17ce61
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1,10 @@
+arch armv7l targets armv7hl:armv7hl
+
+rpm
+ autoreqprov off
+ +/
+
+rpm-build
+ autoreqprov off
+ +/
+
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index 9bb1322fe..497b9a21a 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -253,6 +253,17 @@ rm -f %{_dbpath}/Filemd5s \
%{_dbpath}/Requireversion \
%{_dbpath}/Provideversion
+%ifarch armv7l
+sed -e s/armv7l-tizen-linux-gnueabi/armv7hl-tizen-linux-gnueabihf/g -i /usr/lib/rpm/macros
+sed -e s/armv7l/armv7hl/g -i /usr/lib/rpm/macros
+%endif
+
+%post build
+%ifarch armv7l
+sed -e s/armv7l-tizen-linux-gnueabi/armv7hl-tizen-linux-gnueabihf/g -i /usr/lib/rpm/macros
+sed -e s/armv7l/armv7hl/g -i /usr/lib/rpm/macros
+%endif
+
%postun
/sbin/ldconfig