.
This commit is contained in:
parent
5a8bf1c7c0
commit
cf9685adb5
1 changed files with 7 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Utilities for infrared communication between devices
|
||||
Name: irda-utils
|
||||
Version: 0.9.18
|
||||
Release: 15%{?dist}
|
||||
Release: 16%{?dist}
|
||||
Url: http://irda.sourceforge.net
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
|
|
@ -97,23 +97,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%post
|
||||
if [ $1 = 1 ]; then
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post irda.service
|
||||
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
/bin/systemctl --no-reload disable irda.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl stop irda.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun irda.service
|
||||
|
||||
|
||||
%postun
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
if [ $1 != 0 ]; then
|
||||
/bin/systemctl try-restart irda.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart irda.service
|
||||
|
||||
|
||||
%files
|
||||
|
|
@ -128,6 +120,9 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 24 2012 Dmitry Butskoy <Dmitry@Butskoy.name> - 0.9.18-16
|
||||
- new systemd-rpm macros (#850171)
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.18-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue