Compare commits
10 Commits
a1a94c2e3f
...
682fb6e795
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
682fb6e795 | ||
|
|
85bee1f80a | ||
|
|
f6b6b8f2f9 | ||
|
|
c7a14b4d1d | ||
|
|
2a1865781a | ||
|
|
80b89b2533 | ||
|
|
d5ca8c8de4 | ||
|
|
8eee27c537 | ||
|
|
4c04d90af3 | ||
|
|
0cc93dd781 |
@ -1,25 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
@ -1,21 +1,20 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-tempora
|
Name: python-tempora
|
||||||
Version: 5.1.0
|
Version: 5.5.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Objects and routines pertaining to date and time (tempora)
|
Summary: Objects and routines pertaining to date and time (tempora)
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jaraco/tempora
|
URL: https://github.com/jaraco/tempora
|
||||||
Source0: https://files.pythonhosted.org/packages/a9/4e/41863232e77742b3a5b30a81e1398abd102aa0a67657bc86a53800966b8e/tempora-5.1.0.tar.gz
|
Source0: https://files.pythonhosted.org/packages/c9/dc/97d90b9f64dbe4f599023e19602b33a2cced68462db67a3d4805a77cf784/tempora-5.5.0.tar.gz
|
||||||
Patch0: 0001-add-setup.py.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-pytz
|
Requires: python3-pytz
|
||||||
Requires: python3-sphinx
|
Requires: python3-sphinx
|
||||||
Requires: python3-pytest
|
Requires: python3-pytest
|
||||||
Requires: python3-pytest-checkdocs
|
Requires: python3-pytest-checkdocs
|
||||||
Requires: python3-pytest-flake8
|
Requires: python3-pytest-flake8
|
||||||
Requires: python3-pytest-cov
|
Requires: python3-pytest-cov
|
||||||
Requires: python3-pytest-enabler
|
Requires: python3-pytest-enabler
|
||||||
Requires: python3-freezegun
|
Requires: python3-freezegun
|
||||||
Requires: python3-pytest-freezegun
|
Requires: python3-pytest-freezegun
|
||||||
Requires: python3-types-freezegun
|
Requires: python3-types-freezegun
|
||||||
@ -28,9 +27,9 @@ Objects and routines pertaining to date and time (tempora).
|
|||||||
|
|
||||||
%package -n python3-tempora
|
%package -n python3-tempora
|
||||||
Summary: Objects and routines pertaining to date and time (tempora)
|
Summary: Objects and routines pertaining to date and time (tempora)
|
||||||
Provides: python-tempora
|
Provides: python-tempora = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-pip python3-wheel python3-flit
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
BuildRequires: python3-toml
|
BuildRequires: python3-toml
|
||||||
%description -n python3-tempora
|
%description -n python3-tempora
|
||||||
@ -43,47 +42,41 @@ Provides: python3-tempora-doc
|
|||||||
Objects and routines pertaining to date and time (tempora).
|
Objects and routines pertaining to date and time (tempora).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n tempora-5.1.0
|
%autosetup -n tempora-%{version} -p1
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install tempora==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{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 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
|
%files -n python3-tempora
|
||||||
%dir %{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
%{_bindir}/calc-prorate
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 13 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 5.1.0-1
|
||||||
- update to 5.1.0
|
- update to 5.1.0
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
tempora-5.5.0.tar.gz
Normal file
BIN
tempora-5.5.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user