python-polib/python-polib.spec

60 lines
1.6 KiB
RPMSpec
Raw Normal View History

2020-01-10 16:10:57 +08:00
Name: python-polib
2023-08-23 10:35:06 +08:00
Version: 1.2.0
2022-06-13 17:49:35 +08:00
Release: 1
2020-01-10 16:10:57 +08:00
Summary: A library to manipulate gettext files (po and mo files)
License: MIT
URL: https://pypi.org/project/polib/
2023-08-23 10:35:06 +08:00
Source0: https://pypi.python.org/packages/source/p/polib/polib-%{version}.tar.gz
2020-01-10 16:10:57 +08:00
2020-10-29 11:56:01 +08:00
BuildRequires: python3-devel
2020-01-10 16:10:57 +08:00
BuildArch: noarch
%description
polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load
existing files, iterate through its entries, add, modify entries, comments or metadata, etc… or
create new po files from scratch.
%package -n python3-polib
Summary: A library to manipulate gettext files (po and mo files)
%{?python_provide:%python_provide python3-polib}
%description -n python3-polib
polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load
existing files, iterate through its entries, add, modify entries, comments or metadata, etc… or
create new po files from scratch.
%prep
2023-08-23 10:35:06 +08:00
%autosetup -n polib-%{version} -p1
2020-01-10 16:10:57 +08:00
rm -rf polib.egg-info
%build
%py3_build
%install
%py3_install
%check
%{__python3} tests/tests.py
%files -n python3-polib
%doc README.rst
%license LICENSE
2023-08-23 10:35:06 +08:00
%{python3_sitelib}/*
2020-01-10 16:10:57 +08:00
%changelog
2023-08-23 10:35:06 +08:00
* Tue Aug 22 2023 wulei <wu_lei@hoperun.com> - 1.2.0-1
- Update to 1.2.0
2022-06-13 17:49:35 +08:00
* Thu Jun 09 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.1.1-1
- Upgrade to version 1.1.1
2020-10-29 11:56:01 +08:00
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 1.1.0-4
- drop python2 subpackage
2020-06-18 14:55:27 +08:00
* Thu Jun 18 2020 hanhui <hanhui15@huawei.com> - 1.1.0-3
- bugfix
- fix python3.8 can not find path
2020-01-10 16:10:57 +08:00
* Mon Jan 6 2020 lingsheng <lingsheng@huawei.com> - 1.1.0-2
- Package init