remove python2 subpackage
This commit is contained in:
parent
dea7593165
commit
a9ca438688
@ -6,7 +6,7 @@
|
|||||||
Summary: Python bindings for CUPS
|
Summary: Python bindings for CUPS
|
||||||
Name: python-cups
|
Name: python-cups
|
||||||
Version: 1.9.72
|
Version: 1.9.72
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
URL: http://cyberelk.net/tim/software/pycups/
|
URL: http://cyberelk.net/tim/software/pycups/
|
||||||
Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
|
Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -15,7 +15,7 @@ License: GPLv2+
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
BuildRequires: python2-devel python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: epydoc
|
BuildRequires: epydoc
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -23,19 +23,10 @@ This package provides Python bindings for CUPS API,
|
|||||||
known as pycups. It was written for use with
|
known as pycups. It was written for use with
|
||||||
system-config-printer, but can be put to other uses as well.
|
system-config-printer, but can be put to other uses as well.
|
||||||
|
|
||||||
%package -n python2-cups
|
%package -n python3-cups
|
||||||
Summary: Python2 bindings for CUPS API, known as pycups.
|
|
||||||
# defined in /usr/lib/rpm/macros.d/macros.python
|
# defined in /usr/lib/rpm/macros.d/macros.python
|
||||||
# if python_provide() is defined, call python_provide(python2-cups)
|
# if python_provide() is defined, call python_provide(python2-cups)
|
||||||
# which may eventually add Provides: ... (see the function definition)
|
# which may eventually add Provides: ... (see the function definition)
|
||||||
%{?python_provide:%python_provide python2-cups}
|
|
||||||
|
|
||||||
%description -n python2-cups
|
|
||||||
This package provides Python 2 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.
|
Summary: Python3 bindings for CUPS API, known as pycups.
|
||||||
%{?python_provide:%python_provide python3-cups}
|
%{?python_provide:%python_provide python3-cups}
|
||||||
|
|
||||||
@ -56,22 +47,14 @@ Documentation for python-cups.
|
|||||||
sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py
|
sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
rm -rf html
|
rm -rf html
|
||||||
epydoc -v -o html --html build/lib*/*cups.so
|
#epydoc -v -o html --html build/lib*/cups*.so
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install-rpmhook DESTDIR="%{buildroot}"
|
make install-rpmhook DESTDIR="%{buildroot}"
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%files -n python2-cups
|
|
||||||
%doc README NEWS TODO
|
|
||||||
%license COPYING
|
|
||||||
%{python2_sitearch}/cups.so
|
|
||||||
%{python2_sitearch}/pycups*.egg-info
|
|
||||||
|
|
||||||
%files -n python3-cups
|
%files -n python3-cups
|
||||||
%doc README NEWS TODO
|
%doc README NEWS TODO
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -81,9 +64,12 @@ make install-rpmhook DESTDIR="%{buildroot}"
|
|||||||
%{_rpmconfigdir}/postscriptdriver.prov
|
%{_rpmconfigdir}/postscriptdriver.prov
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc examples html
|
%doc examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.9.72-17
|
||||||
|
- remove python2 subpackage
|
||||||
|
|
||||||
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.9.72-16
|
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.9.72-16
|
||||||
- gcc is no longer in buildroot by default
|
- gcc is no longer in buildroot by default
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user