Browse Source

python-polib package update

Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64lebuilder0 4 years ago
parent
commit
cfebe2d279
  1. 68
      SPECS/python-polib.spec

68
SPECS/python-polib.spec

@ -0,0 +1,68 @@ @@ -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
Loading…
Cancel
Save