1.9.66 - Python 3 support.
This commit is contained in:
parent
e51d2a3302
commit
0c0fe63243
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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@redhat.com> - 1.9.66-1
|
||||
- 1.9.66 - Python 3 support.
|
||||
|
||||
* Wed Nov 27 2013 Tim Waugh <twaugh@redhat.com> - 1.9.65-1
|
||||
- 1.9.65.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user