python-genshi/python-genshi.spec

91 lines
3.0 KiB
RPMSpec

Name: python-genshi
Epoch: 1
Version: 0.7.7
Release: 2mamba
Summary: Python toolkit for generation of output for the web
Group: System/Libraries/Python
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://genshi.edgewall.org/
Source: https://pypi.debian.net/Genshi/Genshi-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(six)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%description
Genshi is a Python library that provides an integrated set of components for parsing, generating, and processing HTML, XML or other textual content for output generation on the web. The major feature is a template language, which is heavily inspired by Kid.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n Genshi-%{version}
find examples -type f -exec chmod a-x '{}' ';'
%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} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/Genshi-%{version}-py*.egg-info
%{python_sitearch}/Genshi-%{version}-py*.egg-info/*
%doc COPYING
%changelog
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 0.7.7-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sat Apr 23 2022 Automatic Build System <autodist@mambasoft.it> 0.7.7-1mamba
- automatic version update by autodist
* Thu Feb 10 2022 Automatic Build System <autodist@mambasoft.it> 0.7.6-1mamba
- automatic version update by autodist
* Sat Apr 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.5-2mamba
- rebuilt with distdeps
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 0.7.5-1mamba
- automatic version update by autodist
* Fri Nov 13 2020 Automatic Build System <autodist@mambasoft.it> 0.7.4-1mamba
- automatic version update by autodist
* Fri Nov 15 2019 Automatic Build System <autodist@mambasoft.it> 0.7.3-1mamba
- automatic version update by autodist
* Tue Sep 11 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.1-1mamba
- update to 0.7.1
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 0.7-1mamba
- automatic update by autodist
* Sun Nov 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6-3mamba
- python 2.7 rebuild and roll-back from 0.7 beta version bumping epoch up
* Wed Oct 13 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.6-2mamba
- package renamed from python-Genshi to python-genshi
* Fri May 14 2010 gil <puntogil@libero.it> 0.6-1mamba
- package created by autospec