]> git.pld-linux.org Git - packages/pnm2ppa.git/commitdiff
- updated to 1.13
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 17 Nov 2018 20:56:53 +0000 (21:56 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 17 Nov 2018 20:56:53 +0000 (21:56 +0100)
- removed obsolete destdir patch

pnm2ppa-destdir.patch [deleted file]
pnm2ppa.spec

diff --git a/pnm2ppa-destdir.patch b/pnm2ppa-destdir.patch
deleted file mode 100644 (file)
index 9aea982..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -Nur pnm2ppa-1.10pre1.orig/Makefile pnm2ppa-1.10pre1/Makefile
---- pnm2ppa-1.10pre1.orig/Makefile     Mon Feb 11 16:49:11 2002
-+++ pnm2ppa-1.10pre1/Makefile  Tue Jun 11 23:19:56 2002
-@@ -5,9 +5,9 @@
- # paths to locations where the pnm2ppa binary, the configuration file,
- # and the man page should be installed.   On some systems (like Solaris)
- # the install command requires the syntax BINDIR="-f /usr/local/bin".
--BINDIR="/usr/local/bin"
--CONFDIR="/etc"
--MANDIR="/usr/local/man/man1"
-+#BINDIR="/usr/local/bin"
-+#CONFDIR="/etc"
-+#MANDIR="/usr/local/man/man1"
- #compiler and linker options:
- CC=gcc
index cfaedde444fda9ed64a962ddc403a7dbe46202cd..8ecd808e84a59c643cda13d3c172d6fabf69e2e0 100644 (file)
@@ -1,19 +1,18 @@
 Summary:       Drivers for printing to HP PPA printers
 Summary(pl.UTF-8):     Sterowniki do drukarek HP PPA
 Name:          pnm2ppa
-Version:       1.12
-Release:       2
-License:       GPL
+Version:       1.13
+Release:       1
+License:       GPL v2+
 Group:         Applications/Publishing
-Source0:       http://dl.sourceforge.net/pnm2ppa/%{name}-%{version}.tar.gz
-# Source0-md5: effd8c42bbe7c970e70fa7d9d991275b
+Source0:       http://downloads.sourceforge.net/pnm2ppa/%{name}-%{version}.tar.gz
+# Source0-md5: 5354e54ade6de7a35370e5b47030274c
 Source1:       ppa-0.8.6.tar.gz
 # Source1-md5: fb40576435d5979db64fbea305ec224b
 Source2:       %{name}-filters.tar.gz
 # Source2-md5: c73c6d86ef7e143f8464ba40c4dfa9bb
 Patch0:                pbm2ppa-20000205.diff
 Patch1:                %{name}-pld.patch
-Patch2:                %{name}-destdir.patch
 URL:           http://pnm2ppa.sourceforge.net/
 Requires:      ghostscript
 Requires:      mpage
@@ -21,17 +20,14 @@ Obsoletes:  ppa
 Obsoletes:     pbm2ppa
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                lpfiltersdir    %{_libdir}/lpfilters
+
 %description
 pnm2ppa is a color driver for HP PPA host-based printers such as the
 HP710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse, and 1000Cxi. It
 accepts ghostscript output in PNM formats, and sends it to the printer
 in PPA format. The older (black only) driver pbm2ppa is also included.
 
-Install pnm2ppa if you have a PPA printer and need to print.
-
-For further information, see the pnm2ppa project homepage at
-<http://pnm2ppa.sourceforge.net/>.
-
 %description -l pl.UTF-8
 pnm2ppa to obsługujący kolor sterownik do drukarek HP PPA, takich jak
 HP710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse, 1000Cxi. Przyjmuje
@@ -39,18 +35,15 @@ wyjście ghostscripta w formacie PNM, wysyła je na drukarkę w formacie
 PPA. Załączona jest też starsza (obsługująca tylko czerń) wersja
 sterownika o nazwie pbm2ppa.
 
-Więcej informacji znajduje się na stronie projektu.
-
 %prep
 %setup -q -a1 -a2
 %patch0 -p0
 %patch1 -p1
-%patch2 -p1
 
 %build
-%{__make} \
-       CC="%{__cc}" \
-       CFLAGS="%{rpmcflags} -Wall -pedantic -DLANG_\$(LANG)"
+%configure
+
+%{__make}
 
 %{__make} -C pbm2ppa-0.8.6 \
        CC="%{__cc}" \
@@ -58,23 +51,23 @@ Więcej informacji znajduje się na stronie projektu.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_mandir}/man1,%{_libdir}/lpfilters}
+install -d $RPM_BUILD_ROOT%{lpfiltersdir}
 
 %{__make} install \
-       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
-       CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
-       MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
+       DESTDIR=$RPM_BUILD_ROOT
 
 install utils/Linux/detect_ppa $RPM_BUILD_ROOT%{_bindir}
 install utils/Linux/test_ppa $RPM_BUILD_ROOT%{_bindir}
+
 install pbm2ppa-0.8.6/pbm2ppa $RPM_BUILD_ROOT%{_bindir}
 install pbm2ppa-0.8.6/pbmtpg $RPM_BUILD_ROOT%{_bindir}
-install pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
-install pbm2ppa-0.8.6/pbm2ppa.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install pnm2ppa-filters/pnm2ppa-filter-bw $RPM_BUILD_ROOT%{_libdir}/lpfilters
-install pnm2ppa-filters/pnm2ppa-filter-bw-eco $RPM_BUILD_ROOT%{_libdir}/lpfilters
-install pnm2ppa-filters/pnm2ppa-filter-color $RPM_BUILD_ROOT%{_libdir}/lpfilters
-install pnm2ppa-filters/pnm2ppa-filter-color-eco $RPM_BUILD_ROOT%{_libdir}/lpfilters
+cp -p pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p pbm2ppa-0.8.6/pbm2ppa.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+install pnm2ppa-filters/pnm2ppa-filter-bw $RPM_BUILD_ROOT%{lpfiltersdir}
+install pnm2ppa-filters/pnm2ppa-filter-bw-eco $RPM_BUILD_ROOT%{lpfiltersdir}
+install pnm2ppa-filters/pnm2ppa-filter-color $RPM_BUILD_ROOT%{lpfiltersdir}
+install pnm2ppa-filters/pnm2ppa-filter-color-eco $RPM_BUILD_ROOT%{lpfiltersdir}
 
 install -d pbm2ppa
 for file in CALIBRATION CREDITS README ; do
@@ -86,16 +79,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc docs/en/{CREDITS,INSTALL,README,RELEASE-NOTES,TODO,COLOR.txt,CALIBRATION.txt}
-%doc test.ps pbm2ppa
+%doc docs/en/{CREDITS,INSTALL,README,RELEASE-NOTES,TODO,COLOR.txt,CALIBRATION.txt} test.ps pbm2ppa
 %lang(pl) %doc docs/pl/{AUTORZY,CZYTAJ.TO,INSTALACJA,KALIBRACJA}
-%attr(755,root,root) %{_bindir}/pnm2ppa
+%attr(755,root,root) %{_bindir}/calibrate_ppa
+%attr(755,root,root) %{_bindir}/detect_ppa
 %attr(755,root,root) %{_bindir}/pbm2ppa
 %attr(755,root,root) %{_bindir}/pbmtpg
-%attr(755,root,root) %{_bindir}/calibrate_ppa
+%attr(755,root,root) %{_bindir}/pnm2ppa
 %attr(755,root,root) %{_bindir}/test_ppa
-%attr(755,root,root) %{_bindir}/detect_ppa
-%{_mandir}/man1/*.1*
-%attr(755,root,root) %{_libdir}/lpfilters/pnm2ppa-filter-*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pnm2ppa.conf
+%{_mandir}/man1/pbm2ppa.1*
+%{_mandir}/man1/pnm2ppa.1*
+%attr(755,root,root) %{lpfiltersdir}/pnm2ppa-filter-*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pbm2ppa.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pnm2ppa.conf
This page took 0.054518 seconds and 4 git commands to generate.