adding docs back

This commit is contained in:
Zdenek Dohnal 2018-04-25 07:59:29 +02:00
parent 5f9cb66f17
commit 29ca9bc149

View File

@ -6,7 +6,7 @@
Summary: Python bindings for CUPS
Name: python-cups
Version: 1.9.72
Release: 19%{?dist}
Release: 20%{?dist}
URL: http://cyberelk.net/tim/software/pycups/
Source: http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
License: GPLv2+
@ -19,7 +19,6 @@ BuildRequires: cups-devel
BuildRequires: python2-devel
%endif
BuildRequires: python3-devel
BuildRequires: epydoc
%description
This package provides Python bindings for CUPS API,
@ -65,10 +64,6 @@ sed -i '/^#!\/usr\/bin\/python/d' examples/cupstree.py
%py2_build
%endif
%py3_build
rm -rf html
%if 0%{?rhel} <= 7
epydoc -v -o html --html build/lib*/*cups.so
%endif
%install
make install-rpmhook DESTDIR="%{buildroot}"
@ -76,6 +71,10 @@ make install-rpmhook DESTDIR="%{buildroot}"
%py2_install
%endif
%py3_install
export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{_bindir}/pydoc3 -w cups
%{_bindir}/mkdir html
%{_bindir}/mv cups.html html
%if 0%{?rhel} <= 7
%files -n python2-cups
@ -94,12 +93,12 @@ make install-rpmhook DESTDIR="%{buildroot}"
%{_rpmconfigdir}/postscriptdriver.prov
%files doc
%doc examples
%if 0%{?rhel} <= 7
%doc html
%endif
%doc examples html
%changelog
* Fri Apr 20 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.9.72-20
- adding docs back
* Thu Apr 12 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.9.72-19
- fixing statement