python-svg2rlg/python-svg2rlg.spec

49 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: python-svg2rlg
Version: 0.3
Release: 2mamba
Summary: Convert SVG to Reportlab drawing
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://code.google.com/p/svg2rlg/
Source: https://pypi.python.org/packages/source/s/svg2rlg/svg2rlg-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
Requires: python3 >= %python_version
Requires: python-reportlab-py3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch
%description
%{summary}.
%prep
%setup -q -n svg2rlg-%{version}
%build
CFLAGS="%{optflags}" %{__python3} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python3_inc}/python \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files -f %{name}.filelist
%defattr(-,root,root)
%changelog
* Wed Feb 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-2mamba
- rebuilt with python3
* Tue Jun 09 2015 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.3-1mamba
- package created using the webbuild interface