diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:41:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 13:41:04 +0000 |
commit | 2a7edddb5ce8ee46ab7035fad44f9e129c4f5459 (patch) | |
tree | 32bb0e48a7bdeb2b591a06746cb3c02121a429cf | |
parent | b34a80abc4f22c75956263d3225a6fa6713092be (diff) |
automatic import of python-littleutils
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-littleutils.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/littleutils-0.2.2.tar.gz diff --git a/python-littleutils.spec b/python-littleutils.spec new file mode 100644 index 0000000..704598e --- /dev/null +++ b/python-littleutils.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-littleutils +Version: 0.2.2 +Release: 1 +Summary: Small personal collection of python utility functions +License: MIT +URL: https://github.com/alexmojaki/littleutils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4e/b1/bb4e06f010947d67349f863b6a2ad71577f85590180a935f60543f622652/littleutils-0.2.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-littleutils +Summary: Small personal collection of python utility functions +Provides: python-littleutils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-littleutils + + +%package help +Summary: Development documents and examples for littleutils +Provides: python3-littleutils-doc +%description help + + +%prep +%autosetup -n littleutils-0.2.2 + +%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-littleutils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +e6199893c6d139c9d9dc1aeac7fa38e0 littleutils-0.2.2.tar.gz |