[python-django-dajaxice] Initial import (#820841).

Jakub Filak jfilak at fedoraproject.org
Wed May 16 08:48:00 UTC 2012


commit cd1ffce2aabd1edfe42a1bb26c3ca7130a36e057
Author: Jakub Filak <jfilak at redhat.com>
Date:   Wed May 16 10:48:29 2012 +0200

    Initial import (#820841).

 .gitignore                                 |    1 +
 python-django-dajaxice-0.1.8.1-empty.patch |   40 ++++++++++++++++
 python-django-dajaxice.spec                |   67 ++++++++++++++++++++++++++++
 sources                                    |    1 +
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..94f28ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-dajaxice-0.2.tar.gz
diff --git a/python-django-dajaxice-0.1.8.1-empty.patch b/python-django-dajaxice-0.1.8.1-empty.patch
new file mode 100644
index 0000000..28e5ac2
--- /dev/null
+++ b/python-django-dajaxice-0.1.8.1-empty.patch
@@ -0,0 +1,40 @@
+diff -rupN django-dajaxice-0.1.8.1.orig/dajaxice/management/commands/__init__.py django-dajaxice-0.1.8.1/dajaxice/management/commands/__init__.py
+--- django-dajaxice-0.1.8.1.orig/dajaxice/management/commands/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/dajaxice/management/commands/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/dajaxice/management/__init__.py django-dajaxice-0.1.8.1/dajaxice/management/__init__.py
+--- django-dajaxice-0.1.8.1.orig/dajaxice/management/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/dajaxice/management/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/dajaxice/templatetags/__init__.py django-dajaxice-0.1.8.1/dajaxice/templatetags/__init__.py
+--- django-dajaxice-0.1.8.1.orig/dajaxice/templatetags/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/dajaxice/templatetags/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/dajaxice/tests/submodules/__init__.py django-dajaxice-0.1.8.1/dajaxice/tests/submodules/__init__.py
+--- django-dajaxice-0.1.8.1.orig/dajaxice/tests/submodules/__init__.py	2010-09-20 17:01:37.000000000 +0200
++++ django-dajaxice-0.1.8.1/dajaxice/tests/submodules/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/examples/complex/__init__.py django-dajaxice-0.1.8.1/examples/complex/__init__.py
+--- django-dajaxice-0.1.8.1.orig/examples/complex/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/examples/complex/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/examples/complex/second/__init__.py django-dajaxice-0.1.8.1/examples/complex/second/__init__.py
+--- django-dajaxice-0.1.8.1.orig/examples/complex/second/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/examples/complex/second/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/examples/__init__.py django-dajaxice-0.1.8.1/examples/__init__.py
+--- django-dajaxice-0.1.8.1.orig/examples/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/examples/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
+diff -rupN django-dajaxice-0.1.8.1.orig/examples/simple/__init__.py django-dajaxice-0.1.8.1/examples/simple/__init__.py
+--- django-dajaxice-0.1.8.1.orig/examples/simple/__init__.py	2010-07-06 23:08:18.000000000 +0200
++++ django-dajaxice-0.1.8.1/examples/simple/__init__.py	2012-05-09 15:14:24.832944462 +0200
+@@ -0,0 +1 @@
++# empty
diff --git a/python-django-dajaxice.spec b/python-django-dajaxice.spec
new file mode 100644
index 0000000..ee66858
--- /dev/null
+++ b/python-django-dajaxice.spec
@@ -0,0 +1,67 @@
+%global lang_name  python
+%global lib_prefix django
+%global lib_name   dajaxice
+
+Name:          %{lang_name}-%{lib_prefix}-%{lib_name}
+Version:       0.2
+Release:       1%{?dist}
+Summary:       Agnostic and easy to use AJAX library for Django
+
+Group:         Development/Libraries
+License:       BSD with advertising
+URL:           http://www.dajaxproject.com/
+Source0:       http://cloud.github.com/downloads/jorgebastida/%{lib_prefix}-%{lib_name}/%{lib_prefix}-%{lib_name}-%{version}.tar.gz
+# fill empty __init__.py files with '# empty' comment line
+# Sent upstream via email 20120510
+Patch0:        python-django-dajaxice-0.1.8.1-empty.patch
+
+BuildArch:     noarch
+BuildRequires: python2-devel, python-setuptools
+Requires:      Django
+
+%description
+Easy to use AJAX library for Django, all the presentation logic resides outside
+the views and doesn't require any JS framework. dajaxice uses the unobtrusive
+standard-compliant (W3C) XMLHttpRequest 1.0 object.
+
+%prep
+%setup -q -n %{lib_prefix}-%{lib_name}-%{version}
+%patch0 -p1
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
+
+# remove empty source files and bytecompiled files
+find $RPM_BUILD_ROOT -type f -size 0 -name "*.py" -exec rm '{}'{,c,o} \;
+
+# remove remaining empty files
+find $RPM_BUILD_ROOT -type f -size 0 -delete
+
+
+%files
+%doc CHANGELOG COPYING README 
+%{python_sitelib}/%{lib_name}
+%{python_sitelib}/%{lib_prefix}_%{lib_name}-%{version}-py?.?.egg-info
+
+
+%changelog
+* Mon May 14 2012 Jakub Filak <jfilak at redhat.com> - 0.2-1
+- Updated to version 0.2
+- Simplification of the install section
+- Removed unused global lib_datadir
+
+* Mon May 14 2012 Jakub Filak <jfilak at redhat.com> - 0.1.8.1-3
+- Do not rename egg-info
+- Add python-setuptools to build requires field
+
+* Fri May 11 2012 Jakub Filak <jfilak at redhat.com> - 0.1.8.1-2
+- The spec file corrected to be compliant with the fedora packaging guidlines
+- The package name prefixed with the string "python-"
+
+* Mon May 07 2012 Jakub Filak <jfilak at redhat.com> - 0.1.8.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..6e16621 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1070266f8dde102d9ca1819def440dc8  django-dajaxice-0.2.tar.gz


More information about the scm-commits mailing list