From 29ca9bc14903941593c295f4c17b9e23c60aa5a7 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Apr 25 2018 05:59:29 +0000 Subject: adding docs back --- diff --git a/python-cups.spec b/python-cups.spec index 75a9e4f..324de43 100644 --- a/python-cups.spec +++ b/python-cups.spec @@ -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 - 1.9.72-20 +- adding docs back + * Thu Apr 12 2018 Zdenek Dohnal - 1.9.72-19 - fixing statement