[python-cups] 1.9.66 - Python 3 support.

Jiří Popelka jpopelka at fedoraproject.org
Wed Nov 27 14:39:06 UTC 2013


commit 0c0fe632436ecea240a43d9fbcba4c656ec6fa6d
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Wed Nov 27 15:12:49 2013 +0100

    1.9.66 - Python 3 support.

 .gitignore       |    1 +
 python-cups.spec |   42 +++++++++++++++++++++++++++++++++++++++---
 sources          |    2 +-
 3 files changed, 41 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 55660bd..5f24f4d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
 /pycups-1.9.62.tar.bz2
 /pycups-1.9.63.tar.bz2
 /pycups-1.9.65.tar.bz2
+/pycups-1.9.66.tar.bz2
diff --git a/python-cups.spec b/python-cups.spec
index 98322dd..7aec94c 100644
--- a/python-cups.spec
+++ b/python-cups.spec
@@ -5,21 +5,32 @@
 
 Summary:       Python bindings for CUPS
 Name:          python-cups
-Version:       1.9.65
+Version:       1.9.66
 Release:       1%{?dist}
 URL:           http://cyberelk.net/tim/software/pycups/
 Source:        http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
 License:       GPLv2+
 Group:         Development/Languages
 BuildRequires: cups-devel
-BuildRequires: python2-devel
+BuildRequires: python2-devel python3-devel
 BuildRequires: epydoc
 
 %description
-This package provides Python bindings for the CUPS API,
+This package provides Python bindings for CUPS API,
 known as pycups. It was written for use with
 system-config-printer, but can be put to other uses as well.
 
+%package -n python3-cups
+Summary:       Python3 bindings for CUPS API, known as pycups.
+Group:         Development/Languages
+
+%description -n python3-cups
+This package provides Python bindings for CUPS API,
+known as pycups. It was written for use with
+system-config-printer, but can be put to other uses as well.
+
+This is a ported release for python 3
+
 %package doc
 Summary:       Documentation for python-cups
 Group:         Documentation
@@ -30,13 +41,28 @@ Documentation for python-cups.
 %prep
 %setup -q -n pycups-%{version}
 
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+
 %build
 make CFLAGS="%{optflags} -fno-strict-aliasing"
 make doc
 
+pushd %{py3dir}
+CFLAGS="%{optflags}" %{__python3} setup.py build
+popd
+
+
 %install
 make install DESTDIR="%{buildroot}"
 
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+chmod 755 %{buildroot}%{python3_sitearch}/cups*.so
+popd
+
+
+
 %files
 %doc COPYING ChangeLog README NEWS TODO
 %{python_sitearch}/cups.so
@@ -44,10 +70,20 @@ make install DESTDIR="%{buildroot}"
 %{_rpmconfigdir}/fileattrs/psdriver.attr
 %{_rpmconfigdir}/postscriptdriver.prov
 
+%files -n python3-cups
+%doc COPYING README NEWS
+%{python3_sitearch}/cups.cpython-3*.so
+%{python3_sitearch}/pycups*.egg-info
+%{_rpmconfigdir}/fileattrs/psdriver.attr
+%{_rpmconfigdir}/postscriptdriver.prov
+
 %files doc
 %doc examples html
 
 %changelog
+* Wed Nov 27 2013 Jiri Popelka <jpopelka at redhat.com> - 1.9.66-1
+- 1.9.66 - Python 3 support.
+
 * Wed Nov 27 2013 Tim Waugh <twaugh at redhat.com> - 1.9.65-1
 - 1.9.65.
 
diff --git a/sources b/sources
index 362bb21..3771ee4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aa6a181c5b60801ad2434adda6441ea3  pycups-1.9.65.tar.bz2
+a6cc4d40ac908dd9182ed93739b4bb79  pycups-1.9.66.tar.bz2


More information about the scm-commits mailing list