drop python2 subpackage
This commit is contained in:
parent
74750cc6da
commit
85e18f5593
@ -1,12 +1,12 @@
|
|||||||
Name: python-polib
|
Name: python-polib
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A library to manipulate gettext files (po and mo files)
|
Summary: A library to manipulate gettext files (po and mo files)
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.org/project/polib/
|
URL: https://pypi.org/project/polib/
|
||||||
Source0: https://pypi.python.org/packages/source/p/polib/polib-1.1.0.tar.gz
|
Source0: https://pypi.python.org/packages/source/p/polib/polib-1.1.0.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -14,19 +14,6 @@ polib is a library to manipulate, create, modify gettext files (pot, po and mo f
|
|||||||
existing files, iterate through it’s entries, add, modify entries, comments or metadata, etc… or
|
existing files, iterate through it’s entries, add, modify entries, comments or metadata, etc… or
|
||||||
create new po files from scratch.
|
create new po files from scratch.
|
||||||
|
|
||||||
polib supports out of the box any version of python ranging from 2.5 to latest 3.X version.
|
|
||||||
|
|
||||||
%package -n python2-polib
|
|
||||||
Summary: A library to manipulate gettext files (po and mo files)
|
|
||||||
%{?python_provide:%python_provide python2-polib}
|
|
||||||
|
|
||||||
%description -n python2-polib
|
|
||||||
polib is a library 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 supports out of the box any version of python ranging from 2.5 to latest 3.X version.
|
|
||||||
|
|
||||||
%package -n python3-polib
|
%package -n python3-polib
|
||||||
Summary: A library to manipulate gettext files (po and mo files)
|
Summary: A library to manipulate gettext files (po and mo files)
|
||||||
%{?python_provide:%python_provide python3-polib}
|
%{?python_provide:%python_provide python3-polib}
|
||||||
@ -36,30 +23,19 @@ polib is a library to manipulate, create, modify gettext files (pot, po and mo f
|
|||||||
existing files, iterate through it’s entries, add, modify entries, comments or metadata, etc… or
|
existing files, iterate through it’s entries, add, modify entries, comments or metadata, etc… or
|
||||||
create new po files from scratch.
|
create new po files from scratch.
|
||||||
|
|
||||||
polib supports out of the box any version of python ranging from 2.5 to latest 3.X version.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n polib-1.1.0 -p1
|
%autosetup -n polib-1.1.0 -p1
|
||||||
rm -rf polib.egg-info
|
rm -rf polib.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} tests/tests.py
|
|
||||||
%{__python3} tests/tests.py
|
%{__python3} tests/tests.py
|
||||||
|
|
||||||
%files -n python2-polib
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/polib-1.1.0-py2.7.egg-info
|
|
||||||
%{python2_sitelib}/polib.{py,pyc,pyo}
|
|
||||||
|
|
||||||
%files -n python3-polib
|
%files -n python3-polib
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -68,6 +44,9 @@ rm -rf polib.egg-info
|
|||||||
%{python3_sitelib}/__pycache__/polib.cpython-3*.pyc
|
%{python3_sitelib}/__pycache__/polib.cpython-3*.pyc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.1.0-4
|
||||||
|
- drop python2 subpackage
|
||||||
|
|
||||||
* Thu Jun 18 2020 hanhui <hanhui15@huawei.com> - 1.1.0-3
|
* Thu Jun 18 2020 hanhui <hanhui15@huawei.com> - 1.1.0-3
|
||||||
- bugfix
|
- bugfix
|
||||||
- fix python3.8 can not find path
|
- fix python3.8 can not find path
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user