automatic version update by autodist [release 2.0.0-1mamba;Thu Oct 02 2014]
This commit is contained in:
parent
fa0f2d87f1
commit
b71b1b03ea
43
cups.spec
43
cups.spec
@ -6,7 +6,7 @@
|
|||||||
%define libname libcups
|
%define libname libcups
|
||||||
|
|
||||||
Name: cups
|
Name: cups
|
||||||
Version: 1.7.5
|
Version: 2.0.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: Common UNIX Printing System
|
Summary: Common UNIX Printing System
|
||||||
Group: System/Spooling
|
Group: System/Spooling
|
||||||
@ -48,6 +48,7 @@ Requires: ghostscript >= 8.57
|
|||||||
Requires: openssl
|
Requires: openssl
|
||||||
Requires(post):%{libname} = %{version}-%{release}
|
Requires(post):%{libname} = %{version}-%{release}
|
||||||
Requires: cups-filters
|
Requires: cups-filters
|
||||||
|
%systemd_requires
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%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
|
# cups installs .po files instead of .mo, so the find_lang macro won't work
|
||||||
> %{name}.lang
|
> %{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 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
|
echo "%lang($i) %{_datadir}/locale/$i/cups_$i.po" >> %{name}.lang
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -163,13 +164,13 @@ if [ $1 -gt 1 ]; then
|
|||||||
sed -i "s|ErrorPolicy stop-printer|ErrorPolicy retry-job|" %{_sysconfdir}/cups/printers.conf
|
sed -i "s|ErrorPolicy stop-printer|ErrorPolicy retry-job|" %{_sysconfdir}/cups/printers.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
%systemd_post nfs-server
|
||||||
:
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
# erase
|
# erase
|
||||||
|
%systemd_preun nfs-server
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
systemctl -q disable cups
|
|
||||||
systemctl -q cups stop
|
|
||||||
/usr/sbin/groupdel lp &>/dev/null
|
/usr/sbin/groupdel lp &>/dev/null
|
||||||
/usr/sbin/userdel lp &>/dev/null
|
/usr/sbin/userdel lp &>/dev/null
|
||||||
/usr/sbin/groupdel lpadmin &>/dev/null
|
/usr/sbin/groupdel lpadmin &>/dev/null
|
||||||
@ -178,15 +179,16 @@ fi
|
|||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
:
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart nfs-server
|
||||||
|
:
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
[ -e %{_sysconfdir}/cups/printers.conf.rpmsave -a \
|
[ -e %{_sysconfdir}/cups/printers.conf.rpmsave -a \
|
||||||
! -e %{_sysconfdir}/cups/printers.conf ] && \
|
! -e %{_sysconfdir}/cups/printers.conf ] && \
|
||||||
mv %{_sysconfdir}/cups/printers.conf.rpmsave %{_sysconfdir}/cups/printers.conf
|
mv %{_sysconfdir}/cups/printers.conf.rpmsave %{_sysconfdir}/cups/printers.conf
|
||||||
sed -i "s|/var/run|/run|" %{_sysconfdir}/cups/cupsd.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
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
@ -194,7 +196,7 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysconfdir}/dbus-1/system.d/cups.conf
|
%{_sysconfdir}/dbus-1/system.d/cups.conf
|
||||||
#%{_sysconfdir}/xinetd.d/cups-lpd
|
#%{_sysconfdir}/xinetd.d/cups-lpd
|
||||||
%{_sysconfdir}/init.d/cups
|
#%{_sysconfdir}/init.d/cups
|
||||||
%attr(0775,root,lpadmin) %dir %{_sysconfdir}/cups
|
%attr(0775,root,lpadmin) %dir %{_sysconfdir}/cups
|
||||||
%config(noreplace) %attr(-,root,lpadmin) %{_sysconfdir}/cups/*
|
%config(noreplace) %attr(-,root,lpadmin) %{_sysconfdir}/cups/*
|
||||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/pam.d/cups
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/pam.d/cups
|
||||||
@ -205,7 +207,7 @@ fi
|
|||||||
%{_bindir}/ipptool
|
%{_bindir}/ipptool
|
||||||
%{_bindir}/lp
|
%{_bindir}/lp
|
||||||
%{_bindir}/lpoptions
|
%{_bindir}/lpoptions
|
||||||
%attr(4755,lp,lp) %{_bindir}/lppasswd
|
#%attr(4755,lp,lp) %{_bindir}/lppasswd
|
||||||
%{_bindir}/lpq
|
%{_bindir}/lpq
|
||||||
%{_bindir}/lpr
|
%{_bindir}/lpr
|
||||||
%{_bindir}/lprm
|
%{_bindir}/lprm
|
||||||
@ -229,11 +231,14 @@ fi
|
|||||||
%{_sbindir}/lpinfo
|
%{_sbindir}/lpinfo
|
||||||
%{_sbindir}/lpmove
|
%{_sbindir}/lpmove
|
||||||
%{_sbindir}/reject
|
%{_sbindir}/reject
|
||||||
/lib/systemd/system/cups.path
|
%{_unitdir}/org.cups.cupsd.path
|
||||||
/lib/systemd/system/cups.service
|
%{_unitdir}/org.cups.cupsd.service
|
||||||
/lib/systemd/system/cups.socket
|
%{_unitdir}/org.cups.cupsd.socket
|
||||||
/lib/systemd/system/cups-lpd.socket
|
%{_unitdir}/cups.path
|
||||||
/lib/systemd/system/cups-lpd@.service
|
%{_unitdir}/cups.service
|
||||||
|
%{_unitdir}/cups.socket
|
||||||
|
%{_unitdir}/cups-lpd.socket
|
||||||
|
%{_unitdir}/cups-lpd@.service
|
||||||
%{_datadir}/applications/cups.desktop
|
%{_datadir}/applications/cups.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/cups.png
|
%{_datadir}/icons/hicolor/*/apps/cups.png
|
||||||
%dir %{_datadir}/cups
|
%dir %{_datadir}/cups
|
||||||
@ -244,10 +249,9 @@ fi
|
|||||||
%attr(0700,lp,root) %dir /var/spool/cups
|
%attr(0700,lp,root) %dir /var/spool/cups
|
||||||
%attr(1700,lp,root) %dir /var/spool/cups/tmp
|
%attr(1700,lp,root) %dir /var/spool/cups/tmp
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man7/backend.7.gz
|
%{_mandir}/man7/backend.7*
|
||||||
#%{_mandir}/man7/drv.7.gz
|
%{_mandir}/man7/filter.7*
|
||||||
%{_mandir}/man7/filter.7.gz
|
%{_mandir}/man7/notifier.7*
|
||||||
%{_mandir}/man7/notifier.7.gz
|
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
%dir %{_datadir}/doc/cups
|
%dir %{_datadir}/doc/cups
|
||||||
%{_datadir}/doc/cups/*
|
%{_datadir}/doc/cups/*
|
||||||
@ -280,6 +284,9 @@ fi
|
|||||||
%doc CHANGES.txt README.txt
|
%doc CHANGES.txt README.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 02 2014 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Thu Jul 31 2014 Automatic Build System <autodist@mambasoft.it> 1.7.5-1mamba
|
* Thu Jul 31 2014 Automatic Build System <autodist@mambasoft.it> 1.7.5-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user