[python-django-dajax/f16] Initial import (#820845).

Jakub Filak jfilak at fedoraproject.org
Wed May 16 11:23:10 UTC 2012


commit e5ffd03d2cc97573a9030004ae1466d0aa228467
Author: Jakub Filak <jfilak at redhat.com>
Date:   Wed May 16 13:22:42 2012 +0200

    Initial import (#820845).

 .gitignore               |    1 +
 python-django-dajax.conf |    7 ++++
 python-django-dajax.spec |   83 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 4 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6b394e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-dajax-0.8.4.tar.gz
diff --git a/python-django-dajax.conf b/python-django-dajax.conf
new file mode 100644
index 0000000..eb98b2e
--- /dev/null
+++ b/python-django-dajax.conf
@@ -0,0 +1,7 @@
+Alias /js/dajax/ "/usr/share/django-dajax/js/"
+<Directory "/usr/share/django-dajax/js/">
+    Order allow,deny
+    Options Indexes
+    Allow from all
+    IndexOptions FancyIndexing
+</Directory>
diff --git a/python-django-dajax.spec b/python-django-dajax.spec
new file mode 100644
index 0000000..6d363c0
--- /dev/null
+++ b/python-django-dajax.spec
@@ -0,0 +1,83 @@
+%global lang_name  python
+%global lib_prefix django
+%global lib_name   dajax
+
+Name:          %{lang_name}-%{lib_prefix}-%{lib_name}
+Version:       0.8.4
+Release:       5%{?dist}
+Summary:       Library to create asynchronous presentation logic with Django and dajaxice
+
+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
+Source1:       python-django-dajax.conf
+
+BuildArch:     noarch
+BuildRequires: python2-devel, python-setuptools
+Requires:      httpd, python-django-dajaxice >= 0.1.2
+
+%global lib_datadir       %{_datadir}/%{lib_prefix}-%{lib_name}
+%global lib_jsdir         %{lib_datadir}/js
+%global lib_httpdconfddir %{_sysconfdir}/httpd/conf.d
+
+%description
+dajax is a powerful tool to easily and super-quickly develop asynchronous
+presentation logic in web applications using python and almost no JS code.
+
+It supports up to four of the most popular JS frameworks: Prototype, jQuery,
+Dojo and mootols.
+
+%prep
+%setup -q -n %{lib_prefix}-%{lib_name}-%{version}
+
+
+%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
+
+# move javascript files to js dir
+mkdir -p $RPM_BUILD_ROOT%{lib_jsdir}
+mv $RPM_BUILD_ROOT%{lib_datadir}/*.js $RPM_BUILD_ROOT%{lib_jsdir}/
+
+# install python-django-dajax httpd conf
+mkdir -p $RPM_BUILD_ROOT%{lib_httpdconfddir}
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{lib_httpdconfddir}/
+
+
+%files
+%doc CHANGELOG COPYING README
+%{python_sitelib}/%{lib_name}
+%{python_sitelib}/%{lib_prefix}_%{lib_name}-%{version}-py?.?.egg-info
+%{lib_datadir}
+%config(noreplace) %{lib_httpdconfddir}/%{lang_name}-%{lib_prefix}-%{lib_name}.conf
+
+
+%changelog
+* Mon May 16 2012 Jakub Filak <jfilak at redhat.com> - 0.8.4-5
+- Minor typo changes in spec file
+
+* Mon May 14 2012 Jakub Filak <jfilak at redhat.com> - 0.8.4-4
+- Do not rename package's data dir
+- Simplification of the install section
+- Add httpd to requires field
+
+* Mon May 14 2012 Jakub Filak <jfilak at redhat.com> - 0.8.4-3
+- Do not rename egg-info
+- Add python-setuptools to build requires field
+
+* Fri May 11 2012 Jakub Filak <jfilak at redhat.com> - 0.8.4-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.8.4-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..243b405 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+46b253e3671a2ff27eb475f963dfd550  django-dajax-0.8.4.tar.gz


More information about the scm-commits mailing list