diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:17:30 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-18 05:17:30 +0000 |
| commit | 8a0d6f84e7934c6535c33d6df22489c9d8edcbd5 (patch) | |
| tree | eadbf613af486f7a71c04c42319d10c4165e96b6 /python-croud.spec | |
| parent | 0968763aa83733f0cd2483ccc515f91725bcf9fa (diff) | |
automatic import of python-croud
Diffstat (limited to 'python-croud.spec')
| -rw-r--r-- | python-croud.spec | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/python-croud.spec b/python-croud.spec new file mode 100644 index 0000000..2d1f75f --- /dev/null +++ b/python-croud.spec @@ -0,0 +1,89 @@ +%global _empty_manifest_terminate_build 0 +Name: python-croud +Version: 1.3.0 +Release: 1 +Summary: A command line interface for CrateDB Cloud +License: Apache Software License +URL: https://github.com/crate/croud +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/65/87/1f109f591167cec982071824688f6aedb809d130922660a29cbdb3b0253f/croud-1.3.0.tar.gz +BuildArch: noarch + +Requires: python3-appdirs +Requires: python3-bitmath +Requires: python3-certifi +Requires: python3-colorama +Requires: python3-marshmallow +Requires: python3-pyyaml +Requires: python3-requests +Requires: python3-tabulate +Requires: python3-yarl +Requires: python3-halo +Requires: python3-shtab +Requires: python3-black +Requires: python3-flake8 +Requires: python3-isort +Requires: python3-mypy +Requires: python3-tox +Requires: python3-pytest-freezegun + +%description + + +%package -n python3-croud +Summary: A command line interface for CrateDB Cloud +Provides: python-croud +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-croud + + +%package help +Summary: Development documents and examples for croud +Provides: python3-croud-doc +%description help + + +%prep +%autosetup -n croud-1.3.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-croud -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.0-1 +- Package Spec generated |
