diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-09 07:02:32 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-09 07:02:32 +0000 |
commit | 145bd97948b9b945530f0be1865ae7c47d7a8d69 (patch) | |
tree | 0d5dfdbcddb8383a1f2625ff1fd695620d1559df /python-django-database-url.spec | |
parent | b6d27f289b7050e4ae0022824192afb4920d31bb (diff) |
automatic import of python-django-database-url
Diffstat (limited to 'python-django-database-url.spec')
-rw-r--r-- | python-django-database-url.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-django-database-url.spec b/python-django-database-url.spec new file mode 100644 index 0000000..3becf1a --- /dev/null +++ b/python-django-database-url.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-database-url +Version: 1.0.3 +Release: 1 +Summary: Use Database URLs in your Django Application. +License: BSD +URL: https://github.com/tend/dj-database-url +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ca/3a/ae60cee85877e634b2e48807942bdc0959fe12f26db6b3da365a3f1d2c01/django-database-url-1.0.3.tar.gz +BuildArch: noarch + +Requires: python3-django + +%description +Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), +Oracle, Oracle (GIS), Redshift, and SQLite. + +%package -n python3-django-database-url +Summary: Use Database URLs in your Django Application. +Provides: python-django-database-url +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-database-url +Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), +Oracle, Oracle (GIS), Redshift, and SQLite. + +%package help +Summary: Development documents and examples for django-database-url +Provides: python3-django-database-url-doc +%description help +Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), +Oracle, Oracle (GIS), Redshift, and SQLite. + +%prep +%autosetup -n django-database-url-1.0.3 + +%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-database-url -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.3-1 +- Package Spec generated |