Introduce new systemd-rpm macros in dnsmasq spec file (#850096)
This commit is contained in:
parent
438d4a2b98
commit
31764d7500
28
dnsmasq.spec
28
dnsmasq.spec
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: dnsmasq
|
Name: dnsmasq
|
||||||
Version: 2.63
|
Version: 2.63
|
||||||
Release: 1%{?extraversion}%{?dist}
|
Release: 2%{?extraversion}%{?dist}
|
||||||
Summary: A lightweight DHCP/caching DNS server
|
Summary: A lightweight DHCP/caching DNS server
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -24,10 +24,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildRequires: dbus-devel
|
BuildRequires: dbus-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd
|
||||||
Requires(post): systemd-units systemd-sysv chkconfig
|
Requires(post): systemd systemd-sysv chkconfig
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -101,22 +101,13 @@ rm -rf %{buildroot}%{_initrddir}
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post dnsmasq.service
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
%systemd_preun dnsmasq.service
|
||||||
/bin/systemctl --no-reload dnsmasq.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop dnsmasq.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart dnsmasq.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
/bin/systemctl try-restart dnsmasq.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerun -- dnsmasq < 2.52-3
|
%triggerun -- dnsmasq < 2.52-3
|
||||||
%{_bindir}/systemd-sysv-convert --save dnsmasq >/dev/null 2>&1 ||:
|
%{_bindir}/systemd-sysv-convert --save dnsmasq >/dev/null 2>&1 ||:
|
||||||
@ -139,6 +130,9 @@ fi
|
|||||||
%{_mandir}/man1/dhcp_*
|
%{_mandir}/man1/dhcp_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 23 2012 Tomas Hozza <thozza@redhat.com> - 2.63-2
|
||||||
|
- Introduce new systemd-rpm macros in dnsmasq spec file (#850096)
|
||||||
|
|
||||||
* Sat Aug 23 2012 Douglas Schilling Landgraf <dougsland@redhat.com> - 2.63-1
|
* Sat Aug 23 2012 Douglas Schilling Landgraf <dougsland@redhat.com> - 2.63-1
|
||||||
- Use .tar.gz compression, in upstream site there is no .lzma anymore
|
- Use .tar.gz compression, in upstream site there is no .lzma anymore
|
||||||
- New version 2.63
|
- New version 2.63
|
||||||
|
Loading…
Reference in New Issue
Block a user