[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
[3406] | 3 | %define ver 0.6 |
---|
[3444] | 4 | %define rel 2 |
---|
[521] | 5 | |
---|
| 6 | Summary: Python toolkit for generation of output for the web |
---|
| 7 | Name: python-genshi |
---|
| 8 | Version: %{ver} |
---|
| 9 | Release: %{rel}%{?_dist_release} |
---|
[3406] | 10 | Source0: http://ftp.edgewall.com/pub/genshi/Genshi-%{version}.tar.gz |
---|
[521] | 11 | License: modified BSD-style License |
---|
| 12 | Group: Development/Libraries |
---|
| 13 | URL: http://genshi.edgewall.org/ |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | Requires: python-babel >= 0.8 python-setuptools >= 0.6a2 |
---|
[3406] | 17 | BuildRequires: python-devel |
---|
[521] | 18 | BuildRequires: python-babel >= 0.8 python-setuptools >= 0.6a2 |
---|
[3444] | 19 | BuildArch: noarch |
---|
[521] | 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | 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. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n Genshi-%{version} |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | python setup.py build |
---|
| 33 | |
---|
| 34 | %install |
---|
| 35 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 36 | python setup.py install --root=${RPM_BUILD_ROOT} |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %files |
---|
| 44 | %defattr(-,root,root) |
---|
| 45 | %doc COPYING ChangeLog README.txt doc examples |
---|
[3444] | 46 | ##%{python_sitearch}/Genshi-*.egg-info |
---|
| 47 | ##%{python_sitearch}/genshi |
---|
| 48 | %{python_sitelib}/Genshi-*.egg-info |
---|
| 49 | %{python_sitelib}/genshi |
---|
[521] | 50 | |
---|
| 51 | |
---|
| 52 | %changelog |
---|
[3444] | 53 | * Wed Apr 13 2011 Shu KONNO <owa@bg.wakwak.com> 0.6-2 |
---|
| 54 | - fixed python path |
---|
| 55 | - added BuildArch: noarch |
---|
| 56 | |
---|
[3406] | 57 | * Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 0.6-1 |
---|
| 58 | - new upstream release |
---|
| 59 | - add BuildRequires: python-devel |
---|
| 60 | |
---|
[521] | 61 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.5.1-2 |
---|
| 62 | - rebuild with python-2.6 |
---|
| 63 | |
---|
| 64 | * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.5.1-1 |
---|
| 65 | - initial release |
---|
| 66 | |
---|