diff --git a/python-reportlab.spec b/python-reportlab.spec index 14905bd..ece513c 100644 --- a/python-reportlab.spec +++ b/python-reportlab.spec @@ -1,6 +1,6 @@ Name: python-reportlab Version: 3.1.44 -Release: 1mamba +Release: 2mamba Summary: An Open Source Python library for generating PDFs and graphics Group: System/Libraries/Python Vendor: openmamba @@ -32,9 +32,12 @@ Requires: %{name} = %{?epoch:epoch:}%{version}-%{release} %description doc An Open Source Python library for generating PDFs and graphics. - This package contains the documentation files. +%if "%{?with_pyver}" +%pyver_package +%endif + %prep %setup -q -n reportlab-%{version} %{__unzip} -qo -d src/reportlab/fonts/ %{S:1} @@ -43,8 +46,10 @@ find src -name '*.py' -exec sed -i -e '\,^#!/,d' '{}' ';' %build CFLAGS="%{optflags}" %{__python} setup.py build +%if "%{?with_pyver}" == "" # make documentation PYTHONPATH="$(pwd)/$(ls -d build/lib*)" %{__python} docs/genAll.py +%endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -63,15 +68,22 @@ rm -rf demos/tests %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%doc CHANGES.txt LICENSE.txt README.txt +%doc LICENSE.txt +%if "%{?with_pyver}" == "" %files doc %defattr(-,root,root) -%doc docs/*.pdf demos tools LICENSE.txt +%doc docs/*.pdf +%doc demos tools +%doc CHANGES.txt README.txt +%endif %changelog +* Sat May 16 2015 Silvan Calarco 3.1.44-2mamba +- added python3 subpackage + * Wed Feb 18 2015 Automatic Build System 3.1.44-1mamba - automatic version update by autodist