Blob Blame History Raw
%{!?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:        2%{?dist}
Summary:        A library to parse and manage gettext catalogs

Group:          Development/Languages
License:        MIT
# svn export -r60 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
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel

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

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.

%setup -q -n polib-%{version}

%{__python} build

%{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT



* Thu Jul 22 2010 David Malcolm <> - 0.5.1-2
- Rebuilt for

* 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

* Wed Feb 18 2009 Ignacio Vazquez-Abrams <> 0.4.0-1.20080217svnr60
- Initial RPM release