|
@@ -1,15 +1,17 @@
|
|
|
Name: cups-pdf
|
|
|
-Version: 3.0.1
|
|
|
-Release: 1%{?_dist_release}
|
|
|
Summary: Extension for creating pdf-Files with CUPS
|
|
|
Summary(ja): CUPS を用いた仮想 PDF プリンター
|
|
|
+Version: 3.0.1
|
|
|
+Release: 2%{?_dist_release}
|
|
|
+Group: publishing
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
-Group: Applications/Publishing
|
|
|
-URL: http://www.cups-pdf.de/
|
|
|
License: GPLv2+
|
|
|
-
|
|
|
-Source0: http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/%{name}_%{version}.tar.gz
|
|
|
+URL: https://www.cups-pdf.de/
|
|
|
+Source0: https://www.cups-pdf.de/src/%{name}_%{version}.tar.gz
|
|
|
Source1: INSTALL.cups-pdf
|
|
|
+
|
|
|
Patch0: cups-pdf-conf-vine.patch
|
|
|
# Handle ${DESKTOP} from config
|
|
|
Patch2: cups-pdf-desktop.patch
|
|
@@ -19,9 +21,8 @@ Patch3: cups-pdf-title.patch
|
|
|
Patch4: cups-pdf-build.patch
|
|
|
# Report error/success in log
|
|
|
Patch5: cups-pdf-result.patch
|
|
|
-
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
+# Replace removed gs .setpdfwrite option
|
|
|
+Patch6: cups-pdf-setpdfwrite.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: cups-devel
|
|
@@ -61,6 +62,9 @@ cups-pdf は PDF ファイルを生成するために Ghostscript の pdfwrite
|
|
|
CUPS が動作しているときに %{name} をインストールすると、自動的に "CUPS-PDF Printer" として CUPS の設定を行います。
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -n %{name}-%{version}
|
|
|
%patch0 -p1 -b .vine
|
|
@@ -68,14 +72,17 @@ CUPS が動作しているときに %{name} をインストールすると、自
|
|
|
%patch3 -p0 -b .title
|
|
|
%patch4 -p0 -b .build
|
|
|
%patch5 -p0 -b .result
|
|
|
+%patch6 -p0 -b .setpdfwrite
|
|
|
|
|
|
cp -p %{SOURCE1} INSTALL.RPM
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
pushd src
|
|
|
%{__cc} $RPM_OPT_FLAGS -lcups -o cups-pdf cups-pdf.c
|
|
|
popd
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
%__rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
@@ -125,7 +132,11 @@ fi
|
|
|
%config(noreplace) %{ETCCUPS}/cups-pdf.conf
|
|
|
%{_datadir}/cups/model/CUPS-PDF*.ppd
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Sun Jul 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.1-2
|
|
|
+- imported Patch6 from rawhide for newer ghostscript.
|
|
|
+
|
|
|
* Tue May 28 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.1-1
|
|
|
- new upstream release.
|
|
|
- updated Patch2-5.
|