added python3 subpackage [release 3.1.44-2mamba;Sat May 16 2015]

This commit is contained in:
Silvan Calarco 2024-01-05 16:34:24 +01:00
parent 4ecefdf535
commit 8a70c8ce21

View File

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