fix systemd installation macros [release 2.0.0-2mamba;Thu Nov 06 2014]
This commit is contained in:
parent
b71b1b03ea
commit
64baf9a8b8
17
cups.spec
17
cups.spec
@ -7,7 +7,7 @@
|
||||
|
||||
Name: cups
|
||||
Version: 2.0.0
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Common UNIX Printing System
|
||||
Group: System/Spooling
|
||||
Vendor: openmamba
|
||||
@ -34,15 +34,13 @@ BuildRequires: libavahi-devel
|
||||
BuildRequires: libdbus-devel
|
||||
BuildRequires: libe2fs-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libgcrypt-devel
|
||||
BuildRequires: libgnutls-devel
|
||||
BuildRequires: libgpg-error-devel
|
||||
BuildRequires: libkeyutils-devel
|
||||
BuildRequires: libkrb5-devel
|
||||
BuildRequires: libpam-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: libsystemd-devel
|
||||
BuildRequires: libusbx-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: pam-devel
|
||||
## AUTOBUILDREQ-END
|
||||
Requires: ghostscript >= 8.57
|
||||
Requires: openssl
|
||||
@ -164,12 +162,12 @@ if [ $1 -gt 1 ]; then
|
||||
sed -i "s|ErrorPolicy stop-printer|ErrorPolicy retry-job|" %{_sysconfdir}/cups/printers.conf
|
||||
fi
|
||||
fi
|
||||
%systemd_post nfs-server
|
||||
%systemd_post cups
|
||||
:
|
||||
|
||||
%preun
|
||||
# erase
|
||||
%systemd_preun nfs-server
|
||||
%systemd_preun cups
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/groupdel lp &>/dev/null
|
||||
/usr/sbin/userdel lp &>/dev/null
|
||||
@ -180,7 +178,7 @@ fi
|
||||
:
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart nfs-server
|
||||
%systemd_postun_with_restart cups
|
||||
:
|
||||
|
||||
%posttrans
|
||||
@ -284,6 +282,9 @@ fi
|
||||
%doc CHANGES.txt README.txt
|
||||
|
||||
%changelog
|
||||
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-2mamba
|
||||
- fix systemd installation macros
|
||||
|
||||
* Thu Oct 02 2014 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user