Репозитории ALT
S: | 3.0.1-alt2 |
5.1: | 2.4.5-alt2 |
4.1: | 2.4.5-alt2 |
4.0: | 2.4.5-alt2 |
Другие репозитории
Upstream: | 2.4.6 |
Группа :: Издательство
Пакет: cups-pdf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: cups-pdf
Version: 3.0.1
Release: alt2
Summary: Extension for creating pdf-Files with CUPS
Summary(ru_RU.UTF-8): п═п╟я│я┬п╦я─п╣п╫п╦я▐ п╢п╩я▐ я│п╬п╥п╢п╟п╫п╦я▐ PDF я└п╟п╧п╩п╬п╡ я│ п©п╬п╪п╬я┴я▄я▌ CUPS
License: GPLv2+
Group: Publishing
Url: http://www.cups-pdf.de
# Source-url: http://www.cups-pdf.de/src/cups-pdf_%version.tar.gz
Source: %name-%version.tar
Source1: cups-pdf.sh
Source2: cups-pdf-firsttime.service
Patch1: cups-pdf-conf.patch
Patch2: cups-pdf-desktop.patch
Patch3: cups-pdf-setpdfwrite.patch
Patch4: cups-pdf-build.patch
Patch5: cups-pdf-title.patch
Requires(pre): cups
Requires: ghostscript
BuildRequires: perl-MIME-Lite perl-MailTools perl-MIME-tools libcups-devel
BuildRequires: libcups-devel
# Drop systemctl fro Requires:
# it is not needed on sysvinit.
%filter_from_requires /^\/sbin\/systemctl/d
%description
"cups-pdf" is a backend script for use with CUPS - the "Common UNIX Printing System"
(see more for CUPS under http://www.cups.org/). "cups-pdf" uses the ghostscript pdfwrite
device to produce PDF Files.
%prep
%setup
%patch1 -p0 -b .oldconf
%patch2 -p0 -b .desktop
%patch3 -p0
%patch4 -p0
%patch5 -p0
%build
cc %optflags -D_FILE_OFFSET_BITS=64 -o cups-pdf src/cups-pdf.c -lcups
%install
install -D -m 700 cups-pdf %buildroot%_libexecdir/cups/backend/cups-pdf
install -D -m 644 extra/cups-pdf.conf %buildroot%_sysconfdir/cups/cups-pdf.conf
# Note: also noopt there
install -D -m644 extra/CUPS-PDF_opt.ppd %buildroot%_datadir/cups/model/CUPS-PDF.ppd
#mv contrib/cups-pdf-dispatch-0.1/README README.dispatch
mkdir -p %buildroot%_spooldir/cups-pdf
mkdir -p %buildroot%_spooldir/cups-pdf/SPOOL
install -D -m 755 %SOURCE1 %buildroot%_sysconfdir/firsttime.d/cups-pdf
install -D -m 644 %SOURCE2 %buildroot%_unitdir/cups-pdf-firsttime.service
touch %buildroot%_sysconfdir/cups-pdf-firsttime.flag
%post
# First install : create the printer if cupsd is running
if [ "$1" -eq "1" ]; then
SYSTEMCTL=systemctl
service cups status >/dev/null 2>&1
if [ $? -eq 0 ]; then
/usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E >/dev/null 2>&1 ||:
/usr/sbin/lpadmin -d Cups-PDF >/dev/null 2>&1 ||:
else
# We can't use sd_booted here because the package installation can be during
# an image installation/creation, so just check systemctl existance.
if type "$SYSTEMCTL" >/dev/null 2>&1; then
"$SYSTEMCTL" -q daemon-reload >/dev/null 2>&1 ||:
# Use cups-pdf-firsttime.service to add Cups-PDF printer
touch %_sysconfdir/cups-pdf-firsttime.flag ||:
"$SYSTEMCTL" -q enable cups-pdf-firsttime.service ||:
else
if service cups start >/dev/null 2>&1; then
/usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E >/dev/null 2>&1 ||:
/usr/sbin/lpadmin -d Cups-PDF >/dev/null 2>&1 ||:
service cups stop >/dev/null 2>&1 ||:
fi
fi
fi
fi
%preun
if [ "$1" -eq "0" ]; then
# Ensure that cups-pdf-firsttime.service is disabled
SYSTEMCTL=systemctl
if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
"$SYSTEMCTL" --no-reload -q disable cups-pdf-firsttime.service ||:
fi
# Delete the printer
/usr/sbin/lpadmin -x Cups-PDF >/dev/null 2>&1 || :
fi
%files
%doc ChangeLog COPYING README
%ghost %_sysconfdir/cups-pdf-firsttime.flag
%_unitdir/cups-pdf-firsttime.service
%_sysconfdir/firsttime.d/cups-pdf
%_libexecdir/cups/backend/cups-pdf
%config(noreplace) %_sysconfdir/cups/cups-pdf.conf
%_datadir/cups/model/CUPS-PDF.ppd
%dir %_spooldir/cups-pdf
%dir %_spooldir/cups-pdf/SPOOL
%changelog
…
Полный changelog можно просмотреть здесь
Version: 3.0.1
Release: alt2
Summary: Extension for creating pdf-Files with CUPS
Summary(ru_RU.UTF-8): п═п╟я│я┬п╦я─п╣п╫п╦я▐ п╢п╩я▐ я│п╬п╥п╢п╟п╫п╦я▐ PDF я└п╟п╧п╩п╬п╡ я│ п©п╬п╪п╬я┴я▄я▌ CUPS
License: GPLv2+
Group: Publishing
Url: http://www.cups-pdf.de
# Source-url: http://www.cups-pdf.de/src/cups-pdf_%version.tar.gz
Source: %name-%version.tar
Source1: cups-pdf.sh
Source2: cups-pdf-firsttime.service
Patch1: cups-pdf-conf.patch
Patch2: cups-pdf-desktop.patch
Patch3: cups-pdf-setpdfwrite.patch
Patch4: cups-pdf-build.patch
Patch5: cups-pdf-title.patch
Requires(pre): cups
Requires: ghostscript
BuildRequires: perl-MIME-Lite perl-MailTools perl-MIME-tools libcups-devel
BuildRequires: libcups-devel
# Drop systemctl fro Requires:
# it is not needed on sysvinit.
%filter_from_requires /^\/sbin\/systemctl/d
%description
"cups-pdf" is a backend script for use with CUPS - the "Common UNIX Printing System"
(see more for CUPS under http://www.cups.org/). "cups-pdf" uses the ghostscript pdfwrite
device to produce PDF Files.
%prep
%setup
%patch1 -p0 -b .oldconf
%patch2 -p0 -b .desktop
%patch3 -p0
%patch4 -p0
%patch5 -p0
%build
cc %optflags -D_FILE_OFFSET_BITS=64 -o cups-pdf src/cups-pdf.c -lcups
%install
install -D -m 700 cups-pdf %buildroot%_libexecdir/cups/backend/cups-pdf
install -D -m 644 extra/cups-pdf.conf %buildroot%_sysconfdir/cups/cups-pdf.conf
# Note: also noopt there
install -D -m644 extra/CUPS-PDF_opt.ppd %buildroot%_datadir/cups/model/CUPS-PDF.ppd
#mv contrib/cups-pdf-dispatch-0.1/README README.dispatch
mkdir -p %buildroot%_spooldir/cups-pdf
mkdir -p %buildroot%_spooldir/cups-pdf/SPOOL
install -D -m 755 %SOURCE1 %buildroot%_sysconfdir/firsttime.d/cups-pdf
install -D -m 644 %SOURCE2 %buildroot%_unitdir/cups-pdf-firsttime.service
touch %buildroot%_sysconfdir/cups-pdf-firsttime.flag
%post
# First install : create the printer if cupsd is running
if [ "$1" -eq "1" ]; then
SYSTEMCTL=systemctl
service cups status >/dev/null 2>&1
if [ $? -eq 0 ]; then
/usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E >/dev/null 2>&1 ||:
/usr/sbin/lpadmin -d Cups-PDF >/dev/null 2>&1 ||:
else
# We can't use sd_booted here because the package installation can be during
# an image installation/creation, so just check systemctl existance.
if type "$SYSTEMCTL" >/dev/null 2>&1; then
"$SYSTEMCTL" -q daemon-reload >/dev/null 2>&1 ||:
# Use cups-pdf-firsttime.service to add Cups-PDF printer
touch %_sysconfdir/cups-pdf-firsttime.flag ||:
"$SYSTEMCTL" -q enable cups-pdf-firsttime.service ||:
else
if service cups start >/dev/null 2>&1; then
/usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF.ppd -E >/dev/null 2>&1 ||:
/usr/sbin/lpadmin -d Cups-PDF >/dev/null 2>&1 ||:
service cups stop >/dev/null 2>&1 ||:
fi
fi
fi
fi
%preun
if [ "$1" -eq "0" ]; then
# Ensure that cups-pdf-firsttime.service is disabled
SYSTEMCTL=systemctl
if sd_booted && "$SYSTEMCTL" --version >/dev/null 2>&1; then
"$SYSTEMCTL" --no-reload -q disable cups-pdf-firsttime.service ||:
fi
# Delete the printer
/usr/sbin/lpadmin -x Cups-PDF >/dev/null 2>&1 || :
fi
%files
%doc ChangeLog COPYING README
%ghost %_sysconfdir/cups-pdf-firsttime.flag
%_unitdir/cups-pdf-firsttime.service
%_sysconfdir/firsttime.d/cups-pdf
%_libexecdir/cups/backend/cups-pdf
%config(noreplace) %_sysconfdir/cups/cups-pdf.conf
%_datadir/cups/model/CUPS-PDF.ppd
%dir %_spooldir/cups-pdf
%dir %_spooldir/cups-pdf/SPOOL
%changelog
…
Полный changelog можно просмотреть здесь