Use new systemd-rpm macros
This commit is contained in:
parent
11acc803c6
commit
e4a1245a35
@ -15,7 +15,7 @@ BuildRequires: perl-devel pkgconfig openssl-devel
|
|||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
Version: 2.3.0
|
Version: 2.3.0
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Url: http://www.openwsman.org/
|
Url: http://www.openwsman.org/
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -203,24 +203,14 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%post server
|
%post server
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post openwsmand.service
|
||||||
# Initial installation
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun server
|
%preun server
|
||||||
if [ $1 = 0 ] ; then
|
%systemd_preun openwsmand.service
|
||||||
/bin/systemctl --no-reload disable openwsmand.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop openwsmand.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun server
|
%postun server
|
||||||
rm -f /var/log/wsmand.log
|
rm -f /var/log/wsmand.log
|
||||||
|
%systemd_postun_with_restart openwsmand.service
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
if [ "$1" -ge "1" ] ; then
|
|
||||||
/bin/systemctl try-restart openwsmand.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%post client -p /sbin/ldconfig
|
%post client -p /sbin/ldconfig
|
||||||
@ -294,6 +284,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-6
|
||||||
|
- Use new systemd-rpm macros
|
||||||
|
Resolves: #850405
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-5
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user