diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 03:29:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 03:29:13 +0000 |
commit | c11c0793d7f8ad12ac5c547823111baa62880e4b (patch) | |
tree | 2dbb63572967d94055433e9fb3d934e9ab6cbb8b | |
parent | fe670281091543568494dd5a816ae0b0f9b535cf (diff) |
automatic import of python-coala-utilsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-coala-utils.spec | 79 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -0,0 +1 @@ +/coala_utils-0.7.0.tar.gz diff --git a/python-coala-utils.spec b/python-coala-utils.spec new file mode 100644 index 0000000..156b87d --- /dev/null +++ b/python-coala-utils.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-coala_utils +Version: 0.7.0 +Release: 1 +Summary: A collection of coala utilities. +License: MIT License +URL: https://gitlab.com/coala/coala-utils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c6/11/42683cb55537c74c89b4527c096e5fe676de520c5226848d063d5676e577/coala_utils-0.7.0.tar.gz +BuildArch: noarch + +Requires: python3-appdirs +Requires: python3-pyprint +Requires: python3-testfixtures +Requires: python3-pyreadline + +%description +coala-utils holds a collection of useful utilities that are used +mainly by coala and can be used by outside sources as well. + +%package -n python3-coala_utils +Summary: A collection of coala utilities. +Provides: python-coala_utils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-coala_utils +coala-utils holds a collection of useful utilities that are used +mainly by coala and can be used by outside sources as well. + +%package help +Summary: Development documents and examples for coala_utils +Provides: python3-coala_utils-doc +%description help +coala-utils holds a collection of useful utilities that are used +mainly by coala and can be used by outside sources as well. + +%prep +%autosetup -n coala_utils-0.7.0 + +%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-coala_utils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.0-1 +- Package Spec generated @@ -0,0 +1 @@ +549aa62cf801b501f73035dbb43c4080 coala_utils-0.7.0.tar.gz |