spec: configure rpmmacrosdir instead of manually installing rpm macros
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 31 Mar 2017 11:05:09 +0000 (13:05 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:43 +0000 (16:37 +0100)
Change-Id: Iec5f938f97695f8eafcfc4f3b0b120d5fe77a54e

packaging/systemd.spec

index 672d68f..1c8d8c0 100644 (file)
@@ -162,6 +162,7 @@ cp %{SOURCE3} .
         --disable-manpages \
 %endif
         --disable-static \
+        --with-rpmmacrosdir=%{_sysconfdir}/rpm/ \
         --with-sysvinit-path= \
         --with-sysvrcnd-path= \
         --with-smack-run-label=System::Privileged \
@@ -264,11 +265,6 @@ rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-tmpfiles-clean.timer
 rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/systemd-tmpfiles-clean.service
 rm -rf %{buildroot}/%{_prefix}/lib/systemd/system/timers.target.wants/systemd-tmpfiles-clean.timer
 
-# Move macros to the proper location for Tizen
-mkdir -p %{buildroot}%{_sysconfdir}/rpm
-install -m644 src/core/macros.systemd %{buildroot}%{_sysconfdir}/rpm/macros.systemd
-rm -f %{buildroot}%{_prefix}/lib/rpm/macros.d/macros.systemd
-
 # Exclude ELF binaries
 rm -f %{buildroot}/%{_prefix}/lib/systemd/system-generators/systemd-debug-generator
 rm -f %{buildroot}/%{_prefix}/lib/systemd/system-generators/systemd-efi-boot-generator