2024-01-05 16:44:33 +01:00
|
|
|
Name: python-svg2rlg
|
|
|
|
Version: 0.3
|
2024-01-05 16:44:33 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 16:44:33 +01:00
|
|
|
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
|
2024-01-05 16:44:33 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 16:44:33 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:44:33 +01:00
|
|
|
Requires: python3 >= %python_version
|
|
|
|
Requires: python-reportlab-py3
|
2024-01-05 16:44:33 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n svg2rlg-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-05 16:44:33 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2024-01-05 16:44:33 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:44:33 +01:00
|
|
|
%{__python3} setup.py install \
|
2024-01-05 16:44:33 +01:00
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
2024-01-05 16:44:33 +01:00
|
|
|
--install-headers=%{python3_inc}/python \
|
|
|
|
--install-lib=%{python3_sitearch} \
|
2024-01-05 16:44:33 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:44:33 +01:00
|
|
|
* Wed Feb 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
2024-01-05 16:44:33 +01:00
|
|
|
* Tue Jun 09 2015 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.3-1mamba
|
|
|
|
- package created using the webbuild interface
|