Use new systemd macros
https://bugzilla.redhat.com/show_bug.cgi?id=850264
This commit is contained in:
parent
2c8ae8fcbd
commit
65d9e94bca
|
@ -13,11 +13,10 @@ Source0: http://alioth.debian.org/download.php/%{upstream_build}/%{name}-
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd-units
|
|
||||||
|
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd
|
||||||
Requires: pcsc-ifd-handler
|
Requires: pcsc-ifd-handler
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
|
@ -89,24 +88,13 @@ rm $RPM_BUILD_ROOT%{_docdir}/pcsc-lite/README.DAEMON
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post pcscd.socket pcscd.service
|
||||||
# Initial installation
|
|
||||||
/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%systemd_preun pcscd.socket pcscd.service
|
||||||
# Package removal, not upgrade
|
|
||||||
/bin/systemctl --no-reload disable pcscd.service pcscd.socket >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop pcscd.service pcscd.socket >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart pcscd.socket pcscd.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
# Package upgrade, not uninstall
|
|
||||||
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
@ -144,6 +132,7 @@ fi
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.8.8-1
|
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.8.8-1
|
||||||
- Update to 1.8.8
|
- Update to 1.8.8
|
||||||
|
- Use new systemd macros (#850264)
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.7-2
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.7-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
Loading…
Reference in New Issue