diff --git a/Django-3.0.8.tar.gz b/Django-3.0.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..39f8dd85b3ab1b4995b29725ed8a16defc3757b4 Binary files /dev/null and b/Django-3.0.8.tar.gz differ diff --git a/python-django.spec b/python-django.spec new file mode 100644 index 0000000000000000000000000000000000000000..2fd9615b1f6c07fdf9e6e55b5c62a9aab7a98ef6 --- /dev/null +++ b/python-django.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django +Version: 3.0.8 +Release: 1 +Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design. +License: BSD +URL: https://www.djangoproject.com/ +Source0: https://files.pythonhosted.org/packages/c6/e0/19b529ca9c55fa0ee095edffa7135a8eff354490159d2d64d006928beb84/Django-3.0.8.tar.gz +BuildArch: noarch + +Requires: python3-pytz +Requires: python3-sqlparse +Requires: python3-asgiref +Requires: python3-argon2-cffi +Requires: python3-bcrypt + +%description +A high-level Python Web framework that encourages rapid development and clean, pragmatic design. + + +%package -n python3-django +Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design. +Provides: python-django +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-django +A high-level Python Web framework that encourages rapid development and clean, pragmatic design. + + +%package help +Summary: Development documents and examples for Django +Provides: python3-django-doc +%description help +A high-level Python Web framework that encourages rapid development and clean, pragmatic design. + + +%prep +%autosetup -n Django-3.0.8 + +%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 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Aug 01 2020 Python_Bot +- Package Spec generated