From 77fe2731b37778d6bf0b2a3ae2051bdab8bfd9ea Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 20:50:56 +0000 Subject: automatic import of python-time-machine --- python-time-machine.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 python-time-machine.spec (limited to 'python-time-machine.spec') diff --git a/python-time-machine.spec b/python-time-machine.spec new file mode 100644 index 0000000..1607a0e --- /dev/null +++ b/python-time-machine.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-time-machine +Version: 2.9.0 +Release: 1 +Summary: Travel through time in your tests. +License: MIT +URL: https://github.com/adamchainz/time-machine +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/68/e9/5629ec57af510e73e7016db727dc96b3827088ec3a593d18754cf407d1b4/time-machine-2.9.0.tar.gz + + +%description + + +%package -n python3-time-machine +Summary: Travel through time in your tests. +Provides: python-time-machine +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-time-machine + + +%package help +Summary: Development documents and examples for time-machine +Provides: python3-time-machine-doc +%description help + + +%prep +%autosetup -n time-machine-2.9.0 + +%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-time-machine -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 2.9.0-1 +- Package Spec generated -- cgit v1.2.3