diff --git a/.cvsignore b/.cvsignore index e69de29..42ccf46 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +polib-0.4.0-r60.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..ef78e5a --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-polib-0_4_0-1_fc11_20080217svnr60:F-10:python-polib-0.4.0-1.fc11.20080217svnr60.src.rpm:1236174944 diff --git a/python-polib.spec b/python-polib.spec new file mode 100644 index 0000000..6ec73a0 --- /dev/null +++ b/python-polib.spec @@ -0,0 +1,52 @@ +%{!?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.4.0 +Release: 1%{?dist}.20080217svn%{alphatag} +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 +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}-%{alphatag} + +%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 CHANGELOG LICENSE README docs/ +%{python_sitelib}/* + +%changelog +* Wed Feb 18 2009 Ignacio Vazquez-Abrams 0.4.0-1.20080217svnr60 +- Initial RPM release + diff --git a/sources b/sources index e69de29..f6b3e6b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3ccfa697940893f48107689b5f0ddebf polib-0.4.0-r60.tar.gz