[python-django-select2] Initial import python-django-select2 (BZ#880964)

Eduardo Javier Echeverria Alvarado echevemaster at fedoraproject.org
Tue Dec 4 04:56:06 UTC 2012


commit dd98d0986c9779eaea7eb901ff9a605126041cf2
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date:   Tue Dec 4 00:23:16 2012 -0430

    Initial import python-django-select2 (BZ#880964)

 .gitignore                 |    1 +
 python-django-select2.spec |   59 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..592466c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Django-Select2-3.1.4.tar.gz
diff --git a/python-django-select2.spec b/python-django-select2.spec
new file mode 100644
index 0000000..2f446fc
--- /dev/null
+++ b/python-django-select2.spec
@@ -0,0 +1,59 @@
+%global pkgname Django-Select2
+Name:		python-django-select2		
+Version:	3.1.4
+Release:	1%{?dist}
+Summary:	Select2 option fields for Django
+
+Group:		Development/Languages		
+License:	BSD
+URL:		https://github.com/applegrew/django-select2
+Source0:	http://pypi.python.org/packages/source/D/%{pkgname}/%{pkgname}-%{version}.tar.gz
+BuildArch:	noarch
+BuildRequires:	python2-devel
+BuildRequires:	python-setuptools	
+
+%if 0%{?fedora} >= 18
+Requires:	python-django
+BuildRequires:	python-django
+%else
+Requires:	Django
+BuildRequires:	Django
+%endif
+
+
+%description
+Django includes basic select widget, which just generates
+<select><option>…</option>…</select> tags.  Although their 
+‘looks’ can be improved using basic CSS, but we hit a usability
+problem when there are too many options to select from. 
+This is where Django-Select2 comes into picture.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+# Remove bundled egg-info
+rm -rf Django_Select2.egg-info
+# Remove calls to nonexistent files in the template MANIFEST.in
+sed -i -e '3d' -i -e '5,7d' MANIFEST.in
+
+%build
+python setup.py build
+
+
+%install
+python setup.py install --skip-build --root %{buildroot}
+
+for file in `find %{buildroot}/%{python_sitelib}/django_select2 -type f -perm /a+x ! -name '*.py'`; do
+	chmod -vR a-x $file
+done
+
+
+%files
+%doc README PKG-INFO LICENSE.txt
+%{python_sitelib}/django_select2
+%{python_sitelib}/Django_Select2-*.egg-info
+
+
+%changelog
+* Wed Nov 28 2012 Eduardo Echeverria  <echevemaster at gmail.com> - 3.1.4-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..8c2382f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+788d098b76fe8a3ffda491b59b10cbc7  Django-Select2-3.1.4.tar.gz


More information about the scm-commits mailing list