diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:50:56 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:50:56 +0000 |
| commit | 77fe2731b37778d6bf0b2a3ae2051bdab8bfd9ea (patch) | |
| tree | 9e25c64b0c0cd27907311a1c1e8f6f06d8d9cc62 /python-time-machine.spec | |
| parent | 638f934efcbd1e32b23a829f143175dc8c07eb64 (diff) | |
automatic import of python-time-machine
Diffstat (limited to 'python-time-machine.spec')
| -rw-r--r-- | python-time-machine.spec | 74 |
1 files changed, 74 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 2.9.0-1 +- Package Spec generated |
