diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:29:43 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:29:43 +0000 |
| commit | 1344de48e7c1cd58bd0c04a1f013339f8182a198 (patch) | |
| tree | b3c5b0e5402cfd637a0da3c5e27d55801225d25c | |
| parent | a8ff0a2521916e918e1066067f5aba1054884495 (diff) | |
automatic import of python-pyglib
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyglib.spec | 81 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyglib-0.1.tar.gz diff --git a/python-pyglib.spec b/python-pyglib.spec new file mode 100644 index 0000000..721a88d --- /dev/null +++ b/python-pyglib.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyglib +Version: 0.1 +Release: 1 +Summary: Opinionated but handy app startup wrapper. +License: BSD +URL: https://github.com/benley/pyglib +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e8/b2/1d8f675bf1fbb894b190315eb3aa3c4bfb164fb8417ca33028e11a3fceb7/pyglib-0.1.tar.gz +BuildArch: noarch + + +%description +pyglib provides a clean, consistent setup for writing commandline +scripts and applications in Python. It makes use of python-gflags and +python-glog, and adds an app startup helper that deals with +initialization boilerplate so you don't have to think about it. + +%package -n python3-pyglib +Summary: Opinionated but handy app startup wrapper. +Provides: python-pyglib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyglib +pyglib provides a clean, consistent setup for writing commandline +scripts and applications in Python. It makes use of python-gflags and +python-glog, and adds an app startup helper that deals with +initialization boilerplate so you don't have to think about it. + +%package help +Summary: Development documents and examples for pyglib +Provides: python3-pyglib-doc +%description help +pyglib provides a clean, consistent setup for writing commandline +scripts and applications in Python. It makes use of python-gflags and +python-glog, and adds an app startup helper that deals with +initialization boilerplate so you don't have to think about it. + +%prep +%autosetup -n pyglib-0.1 + +%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-pyglib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +3203a34549986f0bed305823ae5fafda pyglib-0.1.tar.gz |
