1 | %{?filter_setup: |
---|
2 | %filter_provides_in %{python_sitearch}/.*\.so$ |
---|
3 | %filter_setup |
---|
4 | } |
---|
5 | |
---|
6 | %define py3dir %{_builddir}/python3-%{name}-%{version}-%{release} |
---|
7 | %define __python3 /usr/bin/python3 |
---|
8 | %define python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1))") |
---|
9 | %define python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(0))") |
---|
10 | |
---|
11 | Summary: Python bindings for CUPS |
---|
12 | Name: python-cups |
---|
13 | Version: 1.9.66 |
---|
14 | Release: 1%{?_dist_release} |
---|
15 | URL: http://cyberelk.net/tim/software/pycups/ |
---|
16 | Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2 |
---|
17 | License: GPLv2+ |
---|
18 | Group: Development/Languages |
---|
19 | BuildRequires: cups-devel |
---|
20 | BuildRequires: python-devel |
---|
21 | BuildRequires: python3-devel |
---|
22 | BuildRequires: epydoc |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | Packager: tomop |
---|
27 | |
---|
28 | %description |
---|
29 | This package provides Python bindings for CUPS API, |
---|
30 | known as pycups. It was written for use with |
---|
31 | system-config-printer, but can be put to other uses as well. |
---|
32 | |
---|
33 | %package -n python3-cups |
---|
34 | Summary: Python3 bindings for CUPS API, known as pycups. |
---|
35 | Group: Development/Languages |
---|
36 | |
---|
37 | %description -n python3-cups |
---|
38 | This package provides Python bindings for CUPS API, |
---|
39 | known as pycups. It was written for use with |
---|
40 | system-config-printer, but can be put to other uses as well. |
---|
41 | |
---|
42 | This is a ported release for python 3 |
---|
43 | |
---|
44 | %package doc |
---|
45 | Summary: Documentation for python-cups |
---|
46 | Group: Documentation |
---|
47 | |
---|
48 | %description doc |
---|
49 | Documentation for python-cups. |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -q -n pycups-%{version} |
---|
53 | |
---|
54 | rm -rf %{py3dir} |
---|
55 | cp -a . %{py3dir} |
---|
56 | |
---|
57 | %build |
---|
58 | make CFLAGS="%{optflags} -fno-strict-aliasing" |
---|
59 | make doc |
---|
60 | |
---|
61 | pushd %{py3dir} |
---|
62 | CFLAGS="%{optflags}" %{__python3} setup.py build |
---|
63 | popd |
---|
64 | |
---|
65 | |
---|
66 | %install |
---|
67 | make install DESTDIR="%{buildroot}" |
---|
68 | |
---|
69 | pushd %{py3dir} |
---|
70 | %{__python3} setup.py install -O1 --skip-build --root %{buildroot} |
---|
71 | chmod 755 %{buildroot}%{python3_sitearch}/cups*.so |
---|
72 | popd |
---|
73 | |
---|
74 | %files |
---|
75 | %doc COPYING ChangeLog README NEWS TODO |
---|
76 | %{python_sitearch}/cups.so |
---|
77 | %{python_sitearch}/pycups*.egg-info |
---|
78 | %{_rpmconfigdir}/fileattrs/psdriver.attr |
---|
79 | %{_rpmconfigdir}/postscriptdriver.prov |
---|
80 | |
---|
81 | %files -n python3-cups |
---|
82 | %doc COPYING README NEWS |
---|
83 | %{python3_sitearch}/cups.cpython-3*.so |
---|
84 | %{python3_sitearch}/pycups*.egg-info |
---|
85 | %{_rpmconfigdir}/fileattrs/psdriver.attr |
---|
86 | %{_rpmconfigdir}/postscriptdriver.prov |
---|
87 | |
---|
88 | %files doc |
---|
89 | %doc examples html |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.66-1 |
---|
93 | - new upstream release. |
---|
94 | |
---|
95 | * Sat Sep 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.58-1 |
---|
96 | - new upstream release. |
---|
97 | - built for Vine Linux. |
---|
98 | |
---|
99 | * Thu Jun 9 2011 Tim Waugh <twaugh@redhat.com> - 1.9.57-1 |
---|
100 | - 1.9.57. Fixes rpm provides script (bug #712027). |
---|
101 | |
---|
102 | * Sun Mar 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.55-1 |
---|
103 | - 1.9.55. Support for IPP "resolution" type. |
---|
104 | |
---|
105 | * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.54-1 |
---|
106 | - 1.9.54. The rpm hook is now upstream. |
---|
107 | |
---|
108 | * Wed Feb 23 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-5 |
---|
109 | - Use rpmconfigdir macro throughout. |
---|
110 | |
---|
111 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.53-4 |
---|
112 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
113 | |
---|
114 | * Tue Jan 25 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-3 |
---|
115 | - Fixed typo in psdriver.attr that prevented PPD files from being |
---|
116 | scanned when generating postscriptdriver tags. |
---|
117 | |
---|
118 | * Thu Jan 20 2011 Tim Waugh <twaugh@redhat.com> - 1.9.53-2 |
---|
119 | - Moved postscriptdriver RPM tagging machinery here. Fixed |
---|
120 | leading/trailing whitespace in tags as well. |
---|
121 | |
---|
122 | * Wed Dec 15 2010 Tim Waugh <twaugh@redhat.com> - 1.9.53-1 |
---|
123 | - 1.9.53 fixing a thread-local storage issue (bug #662805). |
---|
124 | |
---|
125 | * Wed Nov 17 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-2 |
---|
126 | - Fixed rpmlint errors/warnings (#648986) |
---|
127 | - doc subpackage |
---|
128 | |
---|
129 | * Mon Nov 01 2010 Jiri Popelka <jpopelka@redhat.com> - 1.9.52-1 |
---|
130 | - Initial RPM spec file |
---|