diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:11:55 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:11:55 +0000 |
| commit | 40b3ed0e1ec559a1a8b39e526788eafdd661d3b2 (patch) | |
| tree | 23567f5fea8752f07adce7bc1f90a3508d0c71ed /python-targ.spec | |
| parent | 40ff1164283d9d64a8f2b546b28ee1171d4f361f (diff) | |
automatic import of python-targopeneuler20.03
Diffstat (limited to 'python-targ.spec')
| -rw-r--r-- | python-targ.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-targ.spec b/python-targ.spec new file mode 100644 index 0000000..724b684 --- /dev/null +++ b/python-targ.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-targ +Version: 0.3.8 +Release: 1 +Summary: Build a Python CLI for your app, just using type hints and docstrings. +License: MIT +URL: https://github.com/piccolo-orm/targ/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/81/1e/f4b0a66fa21781719afffe05cad3e4205f2f8d91dbb434cfbf0869d35fb2/targ-0.3.8.tar.gz +BuildArch: noarch + +Requires: python3-colorama +Requires: python3-docstring-parser +Requires: python3-typing-inspect + +%description +Add the two numbers. + +%package -n python3-targ +Summary: Build a Python CLI for your app, just using type hints and docstrings. +Provides: python-targ +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-targ +Add the two numbers. + +%package help +Summary: Development documents and examples for targ +Provides: python3-targ-doc +%description help +Add the two numbers. + +%prep +%autosetup -n targ-0.3.8 + +%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-targ -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.8-1 +- Package Spec generated |
