python-genshi/python-genshi.spec

73 lines
2.3 KiB
RPMSpec
Raw Normal View History

Name: python-genshi
Epoch: 1
Version: 0.7.3
Release: 1mamba
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: http://genshi.edgewall.org/
Source: https://pypi.debian.net/Genshi/Genshi-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
Requires: python >= %python_version
Requires: python-babel
Provides: python-Genshi
Obsoletes: python-Genshi
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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.
%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 "s,.*/man/.*,&.gz," %{name}.filelist
#%check
#{__python} setup.py test
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc COPYING
#%doc ChangeLog doc examples README.txt
%changelog
* 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