diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:18:03 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:18:03 +0000 |
commit | d328fe26e600315ca8abd7cef27878114327907a (patch) | |
tree | 1f2a42da82980c3a39e1b1238b417c2c72e412a0 | |
parent | 0d1400696e7201e79345968390bfcd21bc5f1feb (diff) |
automatic import of python-django-djconfigopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-djconfig.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-djconfig-0.11.0.tar.gz diff --git a/python-django-djconfig.spec b/python-django-djconfig.spec new file mode 100644 index 0000000..7058dab --- /dev/null +++ b/python-django-djconfig.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-djconfig +Version: 0.11.0 +Release: 1 +Summary: DjConfig is a Django app for storing dynamic configurations. +License: MIT License +URL: https://github.com/nitely/django-djconfig +Source0: https://mirrors.aliyun.com/pypi/web/packages/34/0b/215da8778c8d910b315529edea7c0a8ad41c52296a78b42764e5ba304b3e/django-djconfig-0.11.0.tar.gz +BuildArch: noarch + + +%description +For more info, go to: https://github.com/nitely/django-djconfig + +%package -n python3-django-djconfig +Summary: DjConfig is a Django app for storing dynamic configurations. +Provides: python-django-djconfig +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-djconfig +For more info, go to: https://github.com/nitely/django-djconfig + +%package help +Summary: Development documents and examples for django-djconfig +Provides: python3-django-djconfig-doc +%description help +For more info, go to: https://github.com/nitely/django-djconfig + +%prep +%autosetup -n django-djconfig-0.11.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-django-djconfig -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.11.0-1 +- Package Spec generated @@ -0,0 +1 @@ +5d8c34a7baadd59450439a3587f53d5e django-djconfig-0.11.0.tar.gz |