diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:00:57 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 04:00:57 +0000 |
| commit | 66fc3771f4eb47c448ab9c08b77e40949bb29975 (patch) | |
| tree | 7be2b11e491631816b0400dfa2e5225cbb4d3b71 /python-tasklogger.spec | |
| parent | 3790c489401f362f18b46890512245fa751f0e0b (diff) | |
automatic import of python-tasklogger
Diffstat (limited to 'python-tasklogger.spec')
| -rw-r--r-- | python-tasklogger.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/python-tasklogger.spec b/python-tasklogger.spec new file mode 100644 index 0000000..ec89695 --- /dev/null +++ b/python-tasklogger.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tasklogger +Version: 1.2.0 +Release: 1 +Summary: tasklogger +License: GNU General Public License Version 2 +URL: https://github.com/scottgigante/tasklogger +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/08/49/284c99df2cbe3a0d6df5a3d5010dfc5d425bb332f5b04739af469703f9f5/tasklogger-1.2.0.tar.gz +BuildArch: noarch + +Requires: python3-Deprecated +Requires: python3-nose2 +Requires: python3-numpy +Requires: python3-coverage +Requires: python3-coveralls + +%description + + +%package -n python3-tasklogger +Summary: tasklogger +Provides: python-tasklogger +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tasklogger + + +%package help +Summary: Development documents and examples for tasklogger +Provides: python3-tasklogger-doc +%description help + + +%prep +%autosetup -n tasklogger-1.2.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-tasklogger -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1 +- Package Spec generated |
