From f4d74faf034a2ca253952e119045ce7633e5f12a Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Aug 07 2019 09:57:34 +0000 Subject: Retired due dependency on python2 --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 5e4b25c..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/pkpgcounter-3.50.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..2cb324e --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Retired due dependency on python2 diff --git a/pkpgcounter-postscript-multiple-copies.patch b/pkpgcounter-postscript-multiple-copies.patch deleted file mode 100644 index 4f93c08..0000000 --- a/pkpgcounter-postscript-multiple-copies.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up pkpgcounter-3.50/pkpgpdls/postscript.py.multiple_copies pkpgcounter-3.50/pkpgpdls/postscript.py ---- pkpgcounter-3.50/pkpgpdls/postscript.py.multiple_copies 2007-12-09 15:26:22.000000000 +0100 -+++ pkpgcounter-3.50/pkpgpdls/postscript.py 2012-09-01 07:05:06.000000000 +0200 -@@ -101,7 +101,7 @@ class Parser(pdlparser.PDLParser) : - notinteger = 1 # It seems that sometimes it's not an integer but an EPS file name - else : - notinteger = 0 -- if newpagenum == oldpagenum : -+ if newpagenum <= oldpagenum : - proceed = 0 - else : - oldpagenum = newpagenum diff --git a/pkpgcounter.spec b/pkpgcounter.spec deleted file mode 100644 index 5551fa3..0000000 --- a/pkpgcounter.spec +++ /dev/null @@ -1,114 +0,0 @@ -Summary: Computes number of pages or quantity of ink needed to print documents -Name: pkpgcounter -Version: 3.50 -Release: 18%{?dist} -License: GPLv3+ -URL: http://www.pykota.com/software/pkpgcounter -Source0: http://www.pykota.com/software/pkpgcounter/download/tarballs/pkpgcounter-%{version}.tar.gz -Patch0: pkpgcounter-postscript-multiple-copies.patch - -BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-imaging -Requires: python2-imaging -Requires: ghostscript - -%description -pkpgcounter parses files and outputs the number of pages needed to print them. -It can also, for certain file formats, compute the percentage of ink colors -covering each page. It currently recognizes almost 20 Page Description Languages -or file formats, including the most used ones like Postscript, PDF, -the PCL family, DVI, OpenDocument, or even Microsoft Word, corresponding to -hundreds of different printer drivers. This utility and Python library is often -used as the PDL parsing engine in print accounting software like PyKota or -JASMine, but can of course be used independently. - -%prep -%setup -q - -# This change corrects the page count of postscript files when printed -# with multiple copies from the MS Office suite. Without this patch, every time -# that a user try to print a job using multiple copies from MS office it counts -# much more than the correct quantity of copies. -%patch0 -p1 -b .multiple_copies - -iconv -f iso-8859-1 -t utf-8 -o NEWS.tmp NEWS && mv NEWS.tmp NEWS -iconv -f iso-8859-1 -t utf-8 -o CREDITS.tmp CREDITS && mv CREDITS.tmp CREDITS - -# Remove shebang /usr/bin/env python -for file in pkpgpdls/*.py; do - sed -i '/\/usr\/bin\/env/d' ${file} -done - - -%build -%py2_build - -%install -%py2_install -rm -rf %{buildroot}%{_docdir}/pkpgcounter - - -%files -%doc BUGS COPYING CREDITS NEWS README -%{python2_sitelib}/pkpgpdls -%{python2_sitelib}/pkpgcounter*.egg-info -%{_bindir}/pkpgcounter -%{_mandir}/man1/pkpgcounter.1.gz - -%changelog -* Fri Jul 26 2019 Fedora Release Engineering - 3.50-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 3.50-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 3.50-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Feb 09 2018 Zdenek Dohnal - 3.50-15 -- removing old stuff - -* Fri Feb 09 2018 Fedora Release Engineering - 3.50-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Feb 07 2018 Iryna Shcherbina - 3.50-13 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Thu Jul 27 2017 Fedora Release Engineering - 3.50-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 3.50-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 3.50-10 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Thu Feb 04 2016 Fedora Release Engineering - 3.50-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Tue Aug 11 2015 Jiri Popelka - 3.50-8 -- %%py2_build && %%py2_install - -* Thu Jun 18 2015 Fedora Release Engineering - 3.50-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 3.50-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 3.50-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 3.50-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sat Sep 01 2012 Jiri Popelka 3.50-3 -- Correct page count of postscript files when printed - with multiple copies from the MS Office (#852410) - -* Sat Jul 21 2012 Fedora Release Engineering - 3.50-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Mon Jan 09 2012 Jiri Popelka 3.50-1 -- Initial RPM spec file. diff --git a/sources b/sources deleted file mode 100644 index 89995f9..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -564dd96e8a5433564c2e39319e65217e pkpgcounter-3.50.tar.gz