Compare commits

..

No commits in common. "682fb6e795a47cc353c55e4e412c71e676fe55dc" and "a1a94c2e3f3cca2706ecaffc4a2c35f7c14ba895" have entirely different histories.

4 changed files with 60 additions and 28 deletions

25
0001-add-setup.py.patch Normal file
View File

@ -0,0 +1,25 @@
From b0129def51fede481dcb639373de3614b38f3130 Mon Sep 17 00:00:00 2001
From: liqiuyu123 <liqiuyu@kylinos.cn>
Date: Mon, 8 Aug 2022 14:30:17 +0800
Subject: [PATCH] add setup.py
---
setup.py | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 setup.py
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..bac24a4
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import setuptools
+
+if __name__ == "__main__":
+ setuptools.setup()
--
2.37.1.windows.1

View File

@ -1,20 +1,21 @@
%global _empty_manifest_terminate_build 0
Name: python-tempora
Version: 5.5.0
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/c9/dc/97d90b9f64dbe4f599023e19602b33a2cced68462db67a3d4805a77cf784/tempora-5.5.0.tar.gz
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-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-pytest-enabler
Requires: python3-freezegun
Requires: python3-pytest-freezegun
Requires: python3-types-freezegun
@ -27,9 +28,9 @@ 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 = %{version}-%{release}
Provides: python-tempora
BuildRequires: python3-devel
BuildRequires: python3-pip python3-wheel python3-flit
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-toml
%description -n python3-tempora
@ -42,41 +43,47 @@ Provides: python3-tempora-doc
Objects and routines pertaining to date and time (tempora).
%prep
%autosetup -n tempora-%{version} -p1
%autosetup -n tempora-5.1.0
%patch0
%build
%pyproject_build
%py3_build
%install
%pyproject_install tempora==%{version}
%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
%{python3_sitelib}/*
%{_bindir}/calc-prorate
%files -n python3-tempora -f filelist.lst
%dir %{python3_sitelib}/*
%files help
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jul 11 2023 niuyaru <niuyaru@kylinos.cn> - 5.5.0-1
- Update package to version 5.5.0
* Thu Apr 27 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 5.2.2-2
- Use pyproject to compile package
* Tue Apr 11 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 5.2.2-1
- Update package to version 5.2.2
* Mon Feb 27 2023 yaoxin <yaoxin30@h-partners.com> - 5.2.1-2
- Fix installation conflicts between python3-tempora and python3-jaraco-classes
* Tue Feb 7 2023 wubijie <wubijie@kylinos.cn> - 5.2.1-1
- update to 5.2.1
* Tue Dec 13 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 5.1.0-1
- update to 5.1.0

BIN
tempora-5.1.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.