%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} #%define alphatag r60 Name: python-polib Version: 0.5.1 Release: 3%{?dist} Summary: A library to parse and manage gettext catalogs Group: Development/Languages License: MIT URL: http://code.google.com/p/polib/ # svn export -r60 http://polib.googlecode.com/svn/trunk/ polib-0.4.0-r60 # tar zcf polib-0.4.0-r60.tar.gz polib-0.4.0-r60 #Source0: polib-%{version}-%{alphatag}.tar.gz Source0: http://polib.googlecode.com/files/polib-0.5.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel %description polib allows you to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch. polib provides a simple and pythonic API, exporting only three convenience functions 'pofile', 'mofile' and 'detect_encoding', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries. %prep %setup -q -n polib-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README %{python_sitelib}/* %changelog * Tue Feb 08 2011 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Dec 14 2009 Diego Búrigo Zacarão - 0.5.1-1 - Updated to 0.5.1 release * Wed Aug 19 2009 Diego Búrigo Zacarão - 0.4.2-1 - Updated to 0.4.2 release * Sun Jul 26 2009 Fedora Release Engineering - 0.4.0-2.20080217svnr60 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 18 2009 Ignacio Vazquez-Abrams 0.4.0-1.20080217svnr60 - Initial RPM release