65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
|
Name: python-genshi
|
||
|
Epoch: 1
|
||
|
Version: 0.6
|
||
|
Release: 3mamba
|
||
|
Summary: Python toolkit for generation of output for the web
|
||
|
Group: System/Libraries/Python
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://genshi.edgewall.org/
|
||
|
Source: http://ftp.edgewall.com/pub/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
|
||
|
BuildArch: noarch
|
||
|
|
||
|
%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 "\,\.egg-info/,d;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
|
||
|
* 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
|