Compare commits

...

1 Commits
master ... f18

Author SHA1 Message Date
rhatdan 87f58c2bec Use systemd post install scriplets 2012-09-17 12:34:10 -04:00
1 changed files with 11 additions and 15 deletions

View File

@ -1,7 +1,7 @@
Summary: SELinux Translation Daemon Summary: SELinux Translation Daemon
Name: mcstrans Name: mcstrans
Version: 0.3.3 Version: 0.3.3
Release: 5%{?dist} Release: 6%{?dist}
License: GPL+ License: GPL+
Group: System Environment/Daemons Group: System Environment/Daemons
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
@ -12,8 +12,9 @@ BuildRequires: libselinux-devel >= 1.30.3-1
BuildRequires: libcap-devel pcre-devel libsepol-devel libsepol-static BuildRequires: libcap-devel pcre-devel libsepol-devel libsepol-static
BuildRequires: systemd-units BuildRequires: systemd-units
Requires: pcre Requires: pcre
Requires(pre): systemd-units
Requires(post):systemd-units Requires(post):systemd-units
Requires(preun): systemd-units
Requires(postun):systemd-units
Provides: setransd Provides: setransd
Provides: libsetrans Provides: libsetrans
Obsoletes: libsetrans Obsoletes: libsetrans
@ -59,22 +60,14 @@ rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/mcstrans
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post
if [ $1 -eq 1 ] ; then %systemd_post mcstransd.service
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun %preun
if [ $1 -eq 0 ]; then %systemd_preun mcstransd.service
/usr/bin/systemctl --no-reload mcstransd.service >/dev/null 2>&1 || :
/usr/bin/systemctl stop mcstransd.service > /dev/null 2>&1 || :
fi
%postun %postun
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : %systemd_postun_with_restart mcstransd.service
if [ $1 -ge 1 ]; then
/usr/bin/systemctl try-restart mcstransd.service >/dev/null 2>&1 || :
fi
%files %files
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
@ -96,6 +89,9 @@ fi
%{_usr}/share/mcstrans/util/* %{_usr}/share/mcstrans/util/*
%changelog %changelog
* Mon Sep 16 2012 Dan Walsh <dwalsh@redhat.com> - 0.3.3-5
- Fix ot use systemd macros
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-5 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild