diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:57:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:57:00 +0000 |
commit | eabbd1c9af5525f4dc90328f31756601f18091ba (patch) | |
tree | 796ad34a3018bbda64bcfa30c7c28bdf875d973e | |
parent | 14d0495538e23129987271bd4386bf8fac6fd29a (diff) |
automatic import of python-ambition-utils
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ambition-utils.spec | 98 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 100 insertions, 0 deletions
@@ -0,0 +1 @@ +/ambition-utils-3.1.0.tar.gz diff --git a/python-ambition-utils.spec b/python-ambition-utils.spec new file mode 100644 index 0000000..d85c2f8 --- /dev/null +++ b/python-ambition-utils.spec @@ -0,0 +1,98 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ambition-utils +Version: 3.1.0 +Release: 1 +Summary: Various utility packages used across Ambition projects. +License: MIT +URL: https://github.com/ambitioninc/ambition-utils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/d5/cbdbd8876bcdab9ac5058acec72d24174f053b7cd09f2496fd4c83faa323/ambition-utils-3.1.0.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-django-manager-utils +Requires: python3-django-timezone-field +Requires: python3-fleming +Requires: python3-pandas +Requires: python3-dateutil +Requires: python3-pytz +Requires: python3-six +Requires: python3-sqlparse +Requires: python3-tdigest +Requires: python3-wrapt +Requires: python3-celery +Requires: python3-coverage +Requires: python3-coveralls +Requires: python3-django-dynamic-fixture +Requires: python3-django-nose +Requires: python3-flake8 +Requires: python3-freezegun +Requires: python3-mock +Requires: python3-psycopg2 + +%description +* Python 3.6+ +* Django 1.11+ +* Postgres 9.5+ + +%package -n python3-ambition-utils +Summary: Various utility packages used across Ambition projects. +Provides: python-ambition-utils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ambition-utils +* Python 3.6+ +* Django 1.11+ +* Postgres 9.5+ + +%package help +Summary: Development documents and examples for ambition-utils +Provides: python3-ambition-utils-doc +%description help +* Python 3.6+ +* Django 1.11+ +* Postgres 9.5+ + +%prep +%autosetup -n ambition-utils-3.1.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-ambition-utils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +eac2281b25bedd21ba8a70597b88468c ambition-utils-3.1.0.tar.gz |