diff --git a/README.md b/README.md index 73882d6..4b8d685 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-genshi +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. + diff --git a/python-genshi.spec b/python-genshi.spec new file mode 100644 index 0000000..131957a --- /dev/null +++ b/python-genshi.spec @@ -0,0 +1,64 @@ +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 +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 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 0.6-2mamba +- package renamed from python-Genshi to python-genshi + +* Fri May 14 2010 gil 0.6-1mamba +- package created by autospec