diff options
author | Jani Välimaa <wally@mageia.org> | 2023-01-07 14:05:39 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2023-01-07 14:05:39 +0200 |
commit | dc1a2417efce3f67cc93112b6b8accd0710bdb9d (patch) | |
tree | 6e0ec648e55987c5847bc94d71706aa14a70e2b3 | |
parent | 46fb6175f6347391af2d1646c573e245de6e001f (diff) | |
download | multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.gz multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.bz2 multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.xz multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.zip |
Install wrapper scripts into /usr/lib/rpm/VENDOR/
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | macros.multiarch | 4 |
3 files changed, 9 insertions, 5 deletions
@@ -9,7 +9,10 @@ prefix = /usr bindir = $(prefix)/bin includedir = $(prefix)/include -rpmmacrodir = $(prefix)/lib/rpm/macros.d +rpmconfigdir = $(prefix)/lib/rpm +rpmmacrodir = $(rpmconfigdir)/macros.d + +VENDOR ?= mageia RPM_MACRO_FILES = multiarch RPM_BIN_FILES = mkmultiarch check-multiarch-files @@ -33,8 +36,8 @@ install: for f in $(RPM_MACRO_FILES); do \ perl -pe 's/%MULTIARCH_DISTRO%/$(MULTIARCH_DIST)/' macros.$$f > $(DESTDIR)$(rpmmacrodir)/macros.$$f; \ done - -mkdir -p $(DESTDIR)$(prefix)/lib/rpm - install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(prefix)/lib/rpm/ + -mkdir -p $(DESTDIR)$(rpmconfigdir)/$(VENDOR) + install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(rpmconfigdir)/$(VENDOR) -mkdir -p $(DESTDIR)$(bindir) install -m755 $(BINARIES) $(DESTDIR)$(bindir)/ -mkdir -p $(DESTDIR)$(includedir) @@ -1,3 +1,4 @@ +- install wrapper scripts into /usr/lib/rpm/VENDOR/ - install rpm macros into /usr/lib/rpm/macros.d/ Version 1.0.14 - 11 March 2018, by Jani Välimaa diff --git a/macros.multiarch b/macros.multiarch index 2b43acf..6409bf1 100644 --- a/macros.multiarch +++ b/macros.multiarch @@ -7,11 +7,11 @@ %multiarch_distro %MULTIARCH_DISTRO% %multiarch_binaries() \ -%{_prefix}/lib/rpm/mkmultiarch binaries %* \ +%{_rpmconfigdir}/%{_real_vendor}/mkmultiarch binaries %* \ %{nil} %multiarch_includes() \ -%{_prefix}/lib/rpm/mkmultiarch includes %* \ +%{_rpmconfigdir}/%{_real_vendor}/mkmultiarch includes %* \ %{nil} %multiarch() \ |