This commit is contained in:
caodongxia 2020-12-14 17:19:47 +08:00
parent c67174cd20
commit a63e2d190d
3 changed files with 89 additions and 0 deletions

85
python-tempora.spec Normal file
View File

@ -0,0 +1,85 @@
%global _empty_manifest_terminate_build 0
Name: python-tempora
Version: 4.0.1
Release: 1
Summary: Objects and routines pertaining to date and time (tempora)
License: MIT
URL: https://pypi.org/project/tempora
Source0: https://files.pythonhosted.org/packages/6b/be/f7d754a6119781cd4840c426faf439ac7bd238c4c5d1572dda7029d17c19/tempora-4.0.1.tar.gz
BuildArch: noarch
Recommends: %{name}-help = %{version}-%{release}
Requires: python3-pytz
Requires: python3-sphinx
Requires: python3-pytest
Requires: python3-pytest-checkdocs
Requires: python3-pytest-flake8
Requires: python3-pytest-cov
Requires: python3-freezegun
Requires: python3-pytest-freezegun
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
%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-4.0.1
%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
* Mon Nov 16 2020 Python_Bot <Python_Bot@openeuler.org>
- Package init

4
python-tempora.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: pypi
src_repo: tempora
tag_prefix: "^v"
separator: "."

BIN
tempora-4.0.1.tar.gz Normal file

Binary file not shown.