[python-django-longerusername] Add requirements on python-django and python-django-south.

Ralph Bean ralph at fedoraproject.org
Thu Feb 7 20:55:45 UTC 2013


commit 9c4013e4b8a10dbd15017b65341701af224be3fa
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Feb 7 15:55:28 2013 -0500

    Add requirements on python-django and python-django-south.

 .gitignore                        |    1 +
 python-django-longerusername.spec |   64 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5146944 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-longer-username-e4e85d7d29b2ba4fdd7937aa76c02e0098516406.tar.gz
diff --git a/python-django-longerusername.spec b/python-django-longerusername.spec
new file mode 100644
index 0000000..45ee865
--- /dev/null
+++ b/python-django-longerusername.spec
@@ -0,0 +1,64 @@
+%global modname longerusername
+
+%global longhash e4e85d7d29b2ba4fdd7937aa76c02e0098516406
+%global shorthash e4e85d7d
+%global gitdate 20130204
+
+Name:               python-django-longerusername
+Version:            0.4
+Release:            2.%{gitdate}git%{shorthash}%{?dist}
+Summary:            Make django auth.user username field longer
+Group:              Development/Libraries
+License:            BSD
+URL:                https://github.com/GoodCloud/django-longer-username
+
+# We *would* use pypi as the URL and Source values, but upstream doesn't ship
+# all the information we need there, see
+# https://github.com/GoodCloud/django-longer-username/pull/16
+
+# Source acquired from
+# https://github.com/GoodCloud/django-longer-username/archive/%{longhash}.tar.gz
+Source0:            django-longer-username-%{longhash}.tar.gz
+
+BuildArch:          noarch
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+
+%if 0%{?rhel}
+Requires:           Django
+Requires:           Django-south
+%else
+Requires:           python-django
+Requires:           python-django-south
+%endif
+
+%description
+django-longerusername provides a migration and a monkeypatch to make
+the django auth.user username field longer, instead of the arbitrarily
+short 30 characters.
+
+It's designed to be a simple include-and-forget project that makes a
+little headache go away.
+
+%prep
+%setup -q -n django-longer-username-%{longhash}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+
+%files
+%doc README.md LICENSE
+%{python_sitelib}/%{modname}/
+%{python_sitelib}/%{modname}-%{version}*
+
+%changelog
+* Thu Feb 07 2013 Ralph Bean <rbean at redhat.com> - 0.4-2.20130204gite4e85d7d
+- Added requirements on python-django and python-django-south
+  as per review.
+
+* Mon Feb 04 2013 Ralph Bean <rbean at redhat.com> - 0.4-1.20130204gite4e85d7d
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..acea9c3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+38146ce714691bc7ddc54bf5adc0bfa4  django-longer-username-e4e85d7d29b2ba4fdd7937aa76c02e0098516406.tar.gz


More information about the scm-commits mailing list