[python-django-database-url] Initial import (#1170069).
Juan Orti
jorti at fedoraproject.org
Mon Mar 23 18:52:17 UTC 2015
commit 8c88f7963b592a1cc7226799adaafb173af53b8e
Author: Juan Orti Alcaine <juan.orti at miceliux.com>
Date: Mon Mar 23 19:51:45 2015 +0100
Initial import (#1170069).
.gitignore | 1 +
python-django-database-url.spec | 89 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 91 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ba3018b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dj-database-url-c9c933f1bd3087cdbbf9d6abfd26b91f4fa8f8cb.tar.gz
diff --git a/python-django-database-url.spec b/python-django-database-url.spec
new file mode 100644
index 0000000..74d4b3f
--- /dev/null
+++ b/python-django-database-url.spec
@@ -0,0 +1,89 @@
+%global with_python3 1
+%global pkgname dj_database_url
+%global commit c9c933f1bd3087cdbbf9d6abfd26b91f4fa8f8cb
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: python-django-database-url
+Version: 0.3.0
+Release: 3%{?dist}
+Summary: Use Database URLs in your Django Application
+
+Group: Development/Languages
+License: BSD
+URL: https://github.com/kennethreitz/dj-database-url
+Source0: https://github.com/kennethreitz/dj-database-url/archive/%{commit}/dj-database-url-%{commit}.tar.gz
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+%endif
+Requires: python-django
+
+%description
+This simple Django utility allows you to utilize the 12factor inspired
+DATABASE_URL environment variable to configure your Django application.
+
+%if 0%{?with_python3}
+%package -n python3-django-database-url
+Summary: Use Database URLs in your Django Application
+Group: Development/Languages
+
+Requires: python3-django
+
+%description -n python3-django-database-url
+This simple Django utility allows you to utilize the 12factor inspired
+DATABASE_URL environment variable to configure your Django application.
+
+%endif
+
+%prep
+%setup -qn dj-database-url-%{commit}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python2} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+%check
+make test
+
+%files
+%doc LICENSE README.rst
+%{python2_sitelib}/%{pkgname}.py*
+%{python2_sitelib}/%{pkgname}-%{version}-py*.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-django-database-url
+%doc LICENSE README.rst
+%{python3_sitelib}/%{pkgname}.py*
+%{python3_sitelib}/__pycache__/%{pkgname}.cpython-*.py*
+%{python3_sitelib}/%{pkgname}-%{version}-py*.egg-info
+%endif
+
+%changelog
+* Thu Dec 11 2014 Juan Orti <jorti at fedoraproject.org> - 0.3.0-3
+- Add Python3 support
+- Change Source0 to GitHub
+- Run tests
+
+* Wed Dec 03 2014 Juan Orti <jorti at fedoraproject.org> - 0.3.0-2
+- Spec file cleanup
+
+* Mon May 26 2014 Didier Fabert <didier.fabert at gmail.com> 0.3.0-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..efda4a1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ae1ed74157304652d527554491f30194 dj-database-url-c9c933f1bd3087cdbbf9d6abfd26b91f4fa8f8cb.tar.gz
More information about the scm-commits
mailing list