[packages/cups-backend-pdf] - updated to 3.0.1

qboosh qboosh at pld-linux.org
Sat Jun 8 16:47:15 CEST 2024


commit 5ea0704aaf1ef0a44bdb86f259d7ff812e38e933
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 8 16:12:30 2024 +0200

    - updated to 3.0.1

 cups-backend-pdf.spec | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/cups-backend-pdf.spec b/cups-backend-pdf.spec
index 32d9b09..1068c6c 100644
--- a/cups-backend-pdf.spec
+++ b/cups-backend-pdf.spec
@@ -5,21 +5,21 @@
 Summary:	CUPS PDF driver
 Summary(pl.UTF-8):	Sterownik CUPS-PDF
 Name:		cups-backend-pdf
-Version:	2.6.1
+Version:	3.0.1
 Release:	1
 License:	GPL v2
-Group:		Applications
-Source0:	http://www.cups-pdf.de/src/cups-pdf_%{version}.tar.gz
-# Source0-md5:	65f3fd525c4a9b1d736b91594b3166d5
-URL:		http://www.cups-pdf.de/
+Group:		Applications/Printing
+Source0:	https://www.cups-pdf.de/src/cups-pdf_%{version}.tar.gz
+# Source0-md5:	5071bf192b9c6eb5ada4337b6917b939
+URL:		https://www.cups-pdf.de/
 BuildRequires:	cups-devel
 Requires:	cups
 Requires:	ghostscript
-Obsoletes:	cups-pdf
+Obsoletes:	cups-pdf < 2.5.1
 Conflicts:	ghostscript-esp < 8.15.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_libdir	%(cups-config --serverbin 2>/dev/null)
+%define		cupslibdir	%(cups-config --serverbin 2>/dev/null)
 
 %description
 CUPS-PDF is designed to produce PDF files in a heterogeneous network
@@ -34,14 +34,14 @@ poprzez udostępnienie drukarki PDF na centralnym serwerze plików.
 
 %build
 cd src
-%{__cc} %{rpmldflags} %{rpmcflags} %{rpmcppflags} -o cups-pdf cups-pdf.c
+%{__cc} %{rpmldflags} %{rpmcflags} %{rpmcppflags} -o cups-pdf cups-pdf.c -lcups
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir}/backend,%{_sysconfdir}/cups,%{_datadir}/cups/model,%{_var}/spool/cups-pdf/SPOOL}
-cp -a src/cups-pdf $RPM_BUILD_ROOT%{_libdir}/backend
+install -d $RPM_BUILD_ROOT{%{cupslibdir}/backend,%{_sysconfdir}/cups,%{_datadir}/cups/model,%{_var}/spool/cups-pdf/SPOOL}
+cp -a src/cups-pdf $RPM_BUILD_ROOT%{cupslibdir}/backend
 cp -a extra/cups-pdf.conf  $RPM_BUILD_ROOT%{_sysconfdir}/cups
-cp -a extra/CUPS-PDF.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
+cp -a extra/*.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,7 +58,8 @@ fi
 %defattr(644,root,root,755)
 %doc ChangeLog README
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/cups-pdf.conf
-%attr(700,root,root) %{_libdir}/backend/cups-pdf
-%{_datadir}/cups/model/CUPS-PDF.ppd
+%attr(700,root,root) %{cupslibdir}/backend/cups-pdf
+%{_datadir}/cups/model/CUPS-PDF_noopt.ppd
+%{_datadir}/cups/model/CUPS-PDF_opt.ppd
 %dir %{_var}/spool/cups-pdf
 %dir %attr(751,root,lp) %{_var}/spool/cups-pdf/SPOOL
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cups-backend-pdf.git/commitdiff/5ea0704aaf1ef0a44bdb86f259d7ff812e38e933



More information about the pld-cvs-commit mailing list