[8113] | 1 | %{?filter_setup: |
---|
| 2 | %filter_provides_in %{python_sitearch}/.*\.so$ |
---|
| 3 | %filter_setup |
---|
| 4 | } |
---|
| 5 | |
---|
[12469] | 6 | Summary: Python bindings for CUPS |
---|
| 7 | Name: python-cups |
---|
| 8 | Version: 2.0.1 |
---|
| 9 | Release: 1%{?_dist_release} |
---|
| 10 | Group: programming |
---|
| 11 | Vendor: Project Vine |
---|
| 12 | Distribution: Vine Linux |
---|
[8113] | 13 | |
---|
[12469] | 14 | License: GPLv2+ |
---|
| 15 | URL: https://github.com/OpenPrinting/pycups |
---|
| 16 | Source: https://github.com/OpenPrinting/pycups/releases/download/v%{version}/pycups-%{version}.tar.gz |
---|
[8113] | 17 | |
---|
[12469] | 18 | BuildRequires: cups-devel |
---|
| 19 | BuildRequires: python3-rpm-macros |
---|
| 20 | BuildRequires: python3-devel |
---|
[8113] | 21 | |
---|
| 22 | %description |
---|
| 23 | This package provides Python bindings for CUPS API, |
---|
| 24 | known as pycups. It was written for use with |
---|
| 25 | system-config-printer, but can be put to other uses as well. |
---|
| 26 | |
---|
[12469] | 27 | |
---|
[8113] | 28 | %package -n python3-cups |
---|
[12469] | 29 | Summary: Python3 bindings for CUPS API, known as pycups. |
---|
| 30 | Group: programming |
---|
[8113] | 31 | |
---|
| 32 | %description -n python3-cups |
---|
| 33 | This package provides Python bindings for CUPS API, |
---|
| 34 | known as pycups. It was written for use with |
---|
| 35 | system-config-printer, but can be put to other uses as well. |
---|
| 36 | |
---|
| 37 | This is a ported release for python 3 |
---|
| 38 | |
---|
| 39 | %package doc |
---|
| 40 | Summary: Documentation for python-cups |
---|
[12469] | 41 | Group: documentation |
---|
| 42 | BuildArch: noarch |
---|
[8113] | 43 | |
---|
| 44 | %description doc |
---|
| 45 | Documentation for python-cups. |
---|
| 46 | |
---|
| 47 | %prep |
---|
| 48 | %setup -q -n pycups-%{version} |
---|
| 49 | |
---|
[12469] | 50 | sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py |
---|
[8113] | 51 | |
---|
[12469] | 52 | |
---|
[8113] | 53 | %build |
---|
[12469] | 54 | %py3_build |
---|
[8113] | 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
[12469] | 58 | make install-rpmhook DESTDIR="%{buildroot}" |
---|
| 59 | %py3_install |
---|
[8113] | 60 | |
---|
[12469] | 61 | %ifarch x86_64 |
---|
| 62 | export PYTHONPATH=%{buildroot}%{python3_sitearch} |
---|
| 63 | %{__python3} -m pydoc -w cups |
---|
| 64 | rm -rf html |
---|
| 65 | mkdir html |
---|
| 66 | mv cups.html html |
---|
| 67 | %endif |
---|
[8113] | 68 | |
---|
| 69 | |
---|
| 70 | %files -n python3-cups |
---|
[12056] | 71 | %license COPYING |
---|
| 72 | %doc README NEWS |
---|
[8113] | 73 | %{python3_sitearch}/cups.cpython-3*.so |
---|
| 74 | %{python3_sitearch}/pycups*.egg-info |
---|
| 75 | %{_rpmconfigdir}/fileattrs/psdriver.attr |
---|
| 76 | %{_rpmconfigdir}/postscriptdriver.prov |
---|
| 77 | |
---|
[12469] | 78 | %ifarch x86_64 |
---|
[8113] | 79 | %files doc |
---|
| 80 | %doc examples html |
---|
[12469] | 81 | %endif |
---|
[8113] | 82 | |
---|
[12469] | 83 | |
---|
[8113] | 84 | %changelog |
---|
[12469] | 85 | * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.1-1 |
---|
| 86 | - new upstream release. |
---|
| 87 | - built with python3 only. |
---|
| 88 | |
---|
[12056] | 89 | * Wed Apr 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.74-1 |
---|
| 90 | - new upstream release. |
---|
| 91 | |
---|
[11909] | 92 | * Sat Nov 17 2018 Toshiaki Ara <ara_t@384.jp> 1.9.72-1 |
---|
| 93 | - new upstream release. |
---|
| 94 | |
---|
[8113] | 95 | * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.66-1 |
---|
| 96 | - new upstream release. |
---|
| 97 | |
---|
| 98 | * Sat Sep 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.58-1 |
---|
| 99 | - new upstream release. |
---|
| 100 | - built for Vine Linux. |
---|
| 101 | |
---|
| 102 | * Thu Jun 9 2011 Tim Waugh <twaugh@redhat.com> - 1.9.57-1 |
---|
| 103 | - 1.9.57. Fixes rpm provides script (bug #712027). |
---|
| 104 | |
---|
| 105 | * Sun Mar 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.55-1 |
---|
| 106 | - 1.9.55. Support for IPP "resolution" type. |
---|
| 107 | |
---|
| 108 | * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.54-1 |
---|
| 109 | - 1.9.54. The rpm hook is now upstream. |
---|
| 110 | |
---|
| 111 | * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-5 |
---|
| 112 | - Use rpmconfigdir macro throughout. |
---|
| 113 | |
---|
| 114 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.53-4 |
---|
| 115 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 116 | |
---|
| 117 | * Tue Jan 25 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-3 |
---|
| 118 | - Fixed typo in psdriver.attr that prevented PPD files from being |
---|
| 119 | scanned when generating postscriptdriver tags. |
---|
| 120 | |
---|
| 121 | * Thu Jan 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-2 |
---|
| 122 | - Moved postscriptdriver RPM tagging machinery here. Fixed |
---|
| 123 | leading/trailing whitespace in tags as well. |
---|
| 124 | |
---|
| 125 | * Wed Dec 15 2010 Tim Waugh <twaugh@redhat.com> - 1.9.53-1 |
---|
| 126 | - 1.9.53 fixing a thread-local storage issue (bug #662805). |
---|
| 127 | |
---|
| 128 | * Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-2 |
---|
| 129 | - Fixed rpmlint errors/warnings (#648986) |
---|
| 130 | - doc subpackage |
---|
| 131 | |
---|
| 132 | * Mon Nov 01 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-1 |
---|
| 133 | - Initial RPM spec file |
---|