diff options
Diffstat (limited to 'python-pyglib.spec')
| -rw-r--r-- | python-pyglib.spec | 81 |
1 files changed, 81 insertions, 0 deletions
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 |
