2024-01-05 16:46:07 +01:00
|
|
|
Name: python-tinycss
|
2024-01-05 16:46:07 +01:00
|
|
|
Version: 0.4
|
2024-01-05 16:46:07 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 16:46:07 +01:00
|
|
|
Summary: tinycss is a complete yet simple CSS parser for Python
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://pypi.python.org/pypi/tinycss
|
2024-01-05 16:46:07 +01:00
|
|
|
Source: https://pypi.debian.net/tinycss/tinycss-%{version}.tar.gz
|
2024-01-05 16:46:07 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 16:46:07 +01:00
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 16:46:07 +01:00
|
|
|
BuildRequires: libpython-devel
|
2024-01-05 16:46:07 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:46:07 +01:00
|
|
|
BuildRequires: libpython3-devel >= 3.7.4
|
2024-01-05 16:46:07 +01:00
|
|
|
Requires: python >= %python_version
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%if "%{?with_pyver}"
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tinycss-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
2024-01-05 16:46:07 +01:00
|
|
|
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-05 16:46:07 +01:00
|
|
|
|
2024-01-05 16:46:07 +01:00
|
|
|
%if "%{?pyver}" == "3"
|
|
|
|
sed -i "/speedups.cpython-3.m/d" %{name}.filelist
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2024-01-05 16:46:07 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:46:07 +01:00
|
|
|
* Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-2mamba
|
|
|
|
- rebuilt with python3 3.7.4
|
|
|
|
|
2024-01-05 16:46:07 +01:00
|
|
|
* Mon Oct 17 2016 Automatic Build System <autodist@mambasoft.it> 0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:46:07 +01:00
|
|
|
* Mon Jun 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-1mamba
|
|
|
|
- package created using the webbuild interface
|