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