[apt] Scriptlets replaced with new systemd macros
Mosaab Alzoubi
moceap at fedoraproject.org
Wed Mar 11 16:09:43 UTC 2015
commit 0f247914f0c478499ea2bb436d6c634ed15f0b06
Author: Mosaab Alzoubi <moceap at hotmail.com>
Date: Wed Mar 11 19:08:25 2015 +0300
Scriptlets replaced with new systemd macros
apt.spec | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/apt.spec b/apt.spec
index 1738674..35daca7 100644
--- a/apt.spec
+++ b/apt.spec
@@ -15,7 +15,7 @@
Summary: Debian's Advanced Packaging Tool with RPM support
Name: apt
Version: %{aptver}
-Release: 15.%{snapver}%{?dist}
+Release: 16.%{snapver}%{?dist}
Group: System Environment/Base
URL: http://apt-rpm.org/
# SourceLicense: GPLv2+ except lua/ which is MIT
@@ -274,25 +274,14 @@ install -pm 644 contrib/log/log.conf %{buildroot}/%{_sysconfdir}/apt/apt.conf.d/
rm -f %{buildroot}%{_libdir}/*.la
%post
-if [ $1 -eq 1 ] ; then
- # Initial installation
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post apt.service
/sbin/ldconfig
%preun
-if [ $1 -eq 0 ] ; then
- # Package removal, not upgrade
- /bin/systemctl --no-reload disable apt.service > /dev/null 2>&1 || :
- /bin/systemctl stop apt.service > /dev/null 2>&1 || :
-fi
+%systemd_preun apt.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 -ge 1 ] ; then
- # Package upgrade, not uninstall
- /bin/systemctl try-restart apt.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart apt.service
/sbin/ldconfig
%triggerun -- apt < 0.5.15lorg3.95-1.git522.1
@@ -383,6 +372,13 @@ fi
%changelog
+* Wed Mar 11 2015 Mosaab Alzoubi <moceap at hotmail.com> - 0.5.15lorg3.95-16.git522
+- Accept Vaclav Pavlin patch #850028
+-
+
+* Wed Mar 11 2015 Václav Pavlín <vpavlin at redhat.com> - 0.5.15lorg3.95-16.git522
+- Scriptlets replaced with new systemd macros (#850028)
+
* Thu Jan 15 2015 Tom Callaway <spot at fedoraproject.org> - 0.5.15lorg3.95-15.git522
- add lua 5.3 support
More information about the scm-commits
mailing list