added python3 subpackage [release 3.1.44-2mamba;Sat May 16 2015]
This commit is contained in:
parent
4ecefdf535
commit
8a70c8ce21
@ -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 <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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user