107 lines
3.0 KiB
RPMSpec
107 lines
3.0 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-tempora
|
|
Version: 5.1.0
|
|
Release: 1
|
|
Summary: Objects and routines pertaining to date and time (tempora)
|
|
License: MIT
|
|
URL: https://github.com/jaraco/tempora
|
|
Source0: https://files.pythonhosted.org/packages/a9/4e/41863232e77742b3a5b30a81e1398abd102aa0a67657bc86a53800966b8e/tempora-5.1.0.tar.gz
|
|
Patch0: 0001-add-setup.py.patch
|
|
BuildArch: noarch
|
|
|
|
Requires: python3-pytz
|
|
Requires: python3-sphinx
|
|
Requires: python3-pytest
|
|
Requires: python3-pytest-checkdocs
|
|
Requires: python3-pytest-flake8
|
|
Requires: python3-pytest-cov
|
|
Requires: python3-pytest-enabler
|
|
Requires: python3-freezegun
|
|
Requires: python3-pytest-freezegun
|
|
Requires: python3-types-freezegun
|
|
Requires: python3-types-pytz
|
|
Requires: python3-pytest-black
|
|
Requires: python3-pytest-mypy
|
|
|
|
%description
|
|
Objects and routines pertaining to date and time (tempora).
|
|
|
|
%package -n python3-tempora
|
|
Summary: Objects and routines pertaining to date and time (tempora)
|
|
Provides: python-tempora
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
BuildRequires: python3-toml
|
|
%description -n python3-tempora
|
|
Objects and routines pertaining to date and time (tempora).
|
|
|
|
%package help
|
|
Summary: Development documents and examples for tempora
|
|
Provides: python3-tempora-doc
|
|
%description help
|
|
Objects and routines pertaining to date and time (tempora).
|
|
|
|
%prep
|
|
%autosetup -n tempora-5.1.0
|
|
%patch0
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
pushd %{buildroot}
|
|
if [ -d usr/lib ]; then
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/lib64 ]; then
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/bin ]; then
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
if [ -d usr/sbin ]; then
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
fi
|
|
touch doclist.lst
|
|
if [ -d usr/share/man ]; then
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
fi
|
|
popd
|
|
mv %{buildroot}/filelist.lst .
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
%files -n python3-tempora -f filelist.lst
|
|
%dir %{python3_sitelib}/*
|
|
|
|
%files help -f doclist.lst
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Tue Dec 13 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 5.1.0-1
|
|
- update to 5.1.0
|
|
|
|
* Mon Oct 17 2022 liqiuyu <liqiuyu@kylinos.cn> - 5.0.2-2
|
|
- Fix the problem of incomplete providers
|
|
|
|
* Mon Aug 08 2022 liqiuyu <liqiuyu@kylinos.cn> - 5.0.2-1
|
|
- update to 5.0.2
|
|
|
|
* Sat Jan 15 2022 wulei <wulei80@huawei.com> - 5.0.0-1
|
|
- Package update
|
|
|
|
* Mon Mar 15 2021 lingsheng <lingsheng@huawei.com> - 4.0.1-3
|
|
- Add buildrequires python3-setuptools_scm to fix build
|
|
|
|
* Mon Jan 18 2021 wutao <wutao61@huawei.com> - 4.0.1-2
|
|
- add buildrequires to solve build error
|
|
|
|
* Mon Nov 16 2020 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package init
|