From cfebe2d279fe041028e5858315c8ccf3a3deaedf Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64lebuilder0 Date: Wed, 13 May 2020 00:48:58 +0200 Subject: [PATCH] python-polib package update Signed-off-by: basebuilder_pel7ppc64lebuilder0 --- SPECS/python-polib.spec | 68 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 SPECS/python-polib.spec diff --git a/SPECS/python-polib.spec b/SPECS/python-polib.spec new file mode 100644 index 00000000..cefdc785 --- /dev/null +++ b/SPECS/python-polib.spec @@ -0,0 +1,68 @@ +%global srcname polib +%global sum A library to parse and manage gettext catalogs + +Name: python-%{srcname} +Version: 1.0.7 +Release: 10%{?dist} +Summary: %{sum} +License: MIT +URL: http://bitbucket.org/izi/polib/ +Source0: http://bitbucket.org/izi/polib/get/%{version}.tar.gz +BuildArch: noarch +%global desc \ +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. + + +%description +%{desc} + + +%package -n python2-%{srcname} +Summary: %{sum} +BuildRequires: python2-devel +%{?python_provide:%python_provide python2-%{srcname}} +%description -n python2-%{srcname} +%{desc} + + +%package -n python3-%{srcname} +Summary: %{sum} +BuildRequires: python3-devel +%description -n python3-%{srcname} +%{desc} + + +%prep +%autosetup -n izi-polib-d75ce6dbbc2a -p 1 + + +%build +%{__python2} setup.py build +%{__python3} setup.py build + + +%install +%{__python2} setup.py install --optimize=2 --root=%{buildroot} +%{__python3} setup.py install --optimize=2 --root=%{buildroot} + + +%files -n python2-%{srcname} +%doc README.rst +%license LICENSE +%{python2_sitelib}/* + + +%files -n python3-%{srcname} +%doc README.rst +%license LICENSE +%{python3_sitelib}/* + + +%changelog