You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.6 KiB
69 lines
1.6 KiB
5 years ago
|
%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
|