diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:26:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:26:17 +0000 |
commit | e48b3c6fdfcee5f1b90659f63bd57e0456635539 (patch) | |
tree | bc7442f48386db5313e2ce57a9da8c575fc34dd4 | |
parent | 143697b9efca6059c027377ac7bb369859ea04a9 (diff) |
automatic import of python-django-fluent-utilsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-fluent-utils.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-fluent-utils-3.0.1.tar.gz diff --git a/python-django-fluent-utils.spec b/python-django-fluent-utils.spec new file mode 100644 index 0000000..a7977fe --- /dev/null +++ b/python-django-fluent-utils.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-fluent-utils +Version: 3.0.1 +Release: 1 +Summary: Internal utilities for code sharing between django-fluent modules +License: Apache 2.0 +URL: https://github.com/edoburu/django-fluent-utils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/22/7fd785f82a540a67aff83732ad0b6ef3946fb0121302b021263f6ccb6eeb/django-fluent-utils-3.0.1.tar.gz +BuildArch: noarch + + +%description +This module is mainly used internally between other django-fluent apps. +For the whole list of apps, see http://django-fluent.org/ +This module provides: +* Stubs to make integration with third-party apps optional +* Django compatibility code +* Shared code for fluent apps ("Don't repeat yourself") + +%package -n python3-django-fluent-utils +Summary: Internal utilities for code sharing between django-fluent modules +Provides: python-django-fluent-utils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-fluent-utils +This module is mainly used internally between other django-fluent apps. +For the whole list of apps, see http://django-fluent.org/ +This module provides: +* Stubs to make integration with third-party apps optional +* Django compatibility code +* Shared code for fluent apps ("Don't repeat yourself") + +%package help +Summary: Development documents and examples for django-fluent-utils +Provides: python3-django-fluent-utils-doc +%description help +This module is mainly used internally between other django-fluent apps. +For the whole list of apps, see http://django-fluent.org/ +This module provides: +* Stubs to make integration with third-party apps optional +* Django compatibility code +* Shared code for fluent apps ("Don't repeat yourself") + +%prep +%autosetup -n django-fluent-utils-3.0.1 + +%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-django-fluent-utils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +fec88d57bd6ad5bcd372f6ffbded3624 django-fluent-utils-3.0.1.tar.gz |