From b71b1b03eac5c8c4e55cb490ab814602ce29d9ba Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 21:35:01 +0100 Subject: [PATCH] automatic version update by autodist [release 2.0.0-1mamba;Thu Oct 02 2014] --- cups.spec | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/cups.spec b/cups.spec index c64b6b0..052af8d 100644 --- a/cups.spec +++ b/cups.spec @@ -6,7 +6,7 @@ %define libname libcups Name: cups -Version: 1.7.5 +Version: 2.0.0 Release: 1mamba Summary: Common UNIX Printing System Group: System/Spooling @@ -48,6 +48,7 @@ Requires: ghostscript >= 8.57 Requires: openssl Requires(post):%{libname} = %{version}-%{release} Requires: cups-filters +%systemd_requires BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -113,7 +114,7 @@ touch %{buildroot}%{_sysconfdir}/cups/printers.conf # cups installs .po files instead of .mo, so the find_lang macro won't work > %{name}.lang #for i in da de es eu fi fr hu id it ja ko nl no pl pt pt_BR ru sv zh zh_TW; do -for i in ca cs de es fr it ja pt_BR ru; do +for i in ca cs es fr it ja ru; do echo "%lang($i) %{_datadir}/locale/$i/cups_$i.po" >> %{name}.lang done @@ -163,13 +164,13 @@ if [ $1 -gt 1 ]; then sed -i "s|ErrorPolicy stop-printer|ErrorPolicy retry-job|" %{_sysconfdir}/cups/printers.conf fi fi +%systemd_post nfs-server : %preun # erase +%systemd_preun nfs-server if [ $1 -eq 0 ]; then - systemctl -q disable cups - systemctl -q cups stop /usr/sbin/groupdel lp &>/dev/null /usr/sbin/userdel lp &>/dev/null /usr/sbin/groupdel lpadmin &>/dev/null @@ -178,15 +179,16 @@ fi /sbin/ldconfig : +%postun +%systemd_postun_with_restart nfs-server +: + %posttrans if [ $1 -eq 1 ]; then [ -e %{_sysconfdir}/cups/printers.conf.rpmsave -a \ ! -e %{_sysconfdir}/cups/printers.conf ] && \ mv %{_sysconfdir}/cups/printers.conf.rpmsave %{_sysconfdir}/cups/printers.conf sed -i "s|/var/run|/run|" %{_sysconfdir}/cups/cupsd.conf - systemctl -q daemon-reload - systemctl -q enable cups - systemctl -q try-restart cups fi : @@ -194,7 +196,7 @@ fi %defattr(-,root,root) %{_sysconfdir}/dbus-1/system.d/cups.conf #%{_sysconfdir}/xinetd.d/cups-lpd -%{_sysconfdir}/init.d/cups +#%{_sysconfdir}/init.d/cups %attr(0775,root,lpadmin) %dir %{_sysconfdir}/cups %config(noreplace) %attr(-,root,lpadmin) %{_sysconfdir}/cups/* %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/pam.d/cups @@ -205,7 +207,7 @@ fi %{_bindir}/ipptool %{_bindir}/lp %{_bindir}/lpoptions -%attr(4755,lp,lp) %{_bindir}/lppasswd +#%attr(4755,lp,lp) %{_bindir}/lppasswd %{_bindir}/lpq %{_bindir}/lpr %{_bindir}/lprm @@ -229,11 +231,14 @@ fi %{_sbindir}/lpinfo %{_sbindir}/lpmove %{_sbindir}/reject -/lib/systemd/system/cups.path -/lib/systemd/system/cups.service -/lib/systemd/system/cups.socket -/lib/systemd/system/cups-lpd.socket -/lib/systemd/system/cups-lpd@.service +%{_unitdir}/org.cups.cupsd.path +%{_unitdir}/org.cups.cupsd.service +%{_unitdir}/org.cups.cupsd.socket +%{_unitdir}/cups.path +%{_unitdir}/cups.service +%{_unitdir}/cups.socket +%{_unitdir}/cups-lpd.socket +%{_unitdir}/cups-lpd@.service %{_datadir}/applications/cups.desktop %{_datadir}/icons/hicolor/*/apps/cups.png %dir %{_datadir}/cups @@ -244,10 +249,9 @@ fi %attr(0700,lp,root) %dir /var/spool/cups %attr(1700,lp,root) %dir /var/spool/cups/tmp %{_mandir}/man1/* -%{_mandir}/man7/backend.7.gz -#%{_mandir}/man7/drv.7.gz -%{_mandir}/man7/filter.7.gz -%{_mandir}/man7/notifier.7.gz +%{_mandir}/man7/backend.7* +%{_mandir}/man7/filter.7* +%{_mandir}/man7/notifier.7* %{_mandir}/man8/* %dir %{_datadir}/doc/cups %{_datadir}/doc/cups/* @@ -280,6 +284,9 @@ fi %doc CHANGES.txt README.txt %changelog +* Thu Oct 02 2014 Automatic Build System 2.0.0-1mamba +- automatic version update by autodist + * Thu Jul 31 2014 Automatic Build System 1.7.5-1mamba - automatic version update by autodist