diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:37:24 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:37:24 +0000 |
| commit | e58909195594260afb6649d922971420f62f5f70 (patch) | |
| tree | 14bea9e7a87ce2a3d92125190ed507954dd9b745 /python-logilab-common.spec | |
| parent | f107c028a1b2383b753b31d198ed3e4db7af8bbc (diff) | |
automatic import of python-logilab-common
Diffstat (limited to 'python-logilab-common.spec')
| -rw-r--r-- | python-logilab-common.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-logilab-common.spec b/python-logilab-common.spec new file mode 100644 index 0000000..4d4c9d8 --- /dev/null +++ b/python-logilab-common.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-logilab-common +Version: 1.9.8 +Release: 1 +Summary: collection of low-level Python packages and modules used by Logilab projects +License: LGPL +URL: http://www.logilab.org/project/logilab-common +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0e/e9/799401d7785ebeeb7a0088c56ac59a870fcc7004294431bfd7f6c68d85ba/logilab-common-1.9.8.tar.gz +BuildArch: noarch + +Requires: python3-setuptools +Requires: python3-mypy-extensions +Requires: python3-typing-extensions +Requires: python3-importlib-metadata + +%description + + +%package -n python3-logilab-common +Summary: collection of low-level Python packages and modules used by Logilab projects +Provides: python-logilab-common +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-logilab-common + + +%package help +Summary: Development documents and examples for logilab-common +Provides: python3-logilab-common-doc +%description help + + +%prep +%autosetup -n logilab-common-1.9.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-logilab-common -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.9.8-1 +- Package Spec generated |
