diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:32:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:32:22 +0000 |
commit | d3a877a1264bcf2ef1a1c8b15bb1f0d16a007047 (patch) | |
tree | dceed8f7071c10a31de44fc35999a613f6aa0222 /python-django-core.spec | |
parent | de5bed8599e156647b25c694d53c9d5ad88fc5bf (diff) |
automatic import of python-django-coreopeneuler20.03
Diffstat (limited to 'python-django-core.spec')
-rw-r--r-- | python-django-core.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-django-core.spec b/python-django-core.spec new file mode 100644 index 0000000..cbd57b6 --- /dev/null +++ b/python-django-core.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-core +Version: 1.4.1 +Release: 1 +Summary: A core set of tools for django applications. +License: MIT +URL: https://github.com/infoagetech/django-core +Source0: https://mirrors.aliyun.com/pypi/web/packages/3f/43/d6f322b8d100034655e4fb976c685f664597c8440803f3ea03fd8a1c229e/django-core-1.4.1.tar.gz +BuildArch: noarch + + +%description +django-core is a python tools module written for django. + +%package -n python3-django-core +Summary: A core set of tools for django applications. +Provides: python-django-core +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-core +django-core is a python tools module written for django. + +%package help +Summary: Development documents and examples for django-core +Provides: python3-django-core-doc +%description help +django-core is a python tools module written for django. + +%prep +%autosetup -n django-core-1.4.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-core -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.1-1 +- Package Spec generated |