[python-django-tracking] initial import for fedora

Matthias Runge mrunge at fedoraproject.org
Mon Mar 19 20:10:15 UTC 2012


commit 291379c28a56474f1056c20720aeddb2b2ae335f
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Mon Mar 19 21:09:56 2012 +0100

    initial import for fedora

 .gitignore                  |    1 +
 python-django-tracking.spec |   76 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c52d03a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-tracking-0.3.7.hge9a498ccef73.tar.bz2
diff --git a/python-django-tracking.spec b/python-django-tracking.spec
new file mode 100644
index 0000000..4155881
--- /dev/null
+++ b/python-django-tracking.spec
@@ -0,0 +1,76 @@
+%global pkgname django-tracking
+
+Summary:	Django site visitor tracking, including basic blacklisting
+Name:		python-django-tracking
+Version:	0.3.7
+Release:	7%{?dist}
+License:	MIT
+Group:		Development/Libraries
+URL:		https://bitbucket.org/codekoala/django-tracking/
+# there's just a tag on bitbucket, no official release
+# wget -O django-tracking-0.3.7.hge9a498ccef73.tar.bz2 \
+#    https://bitbucket.org/codekoala/django-tracking/get/e9a498ccef73.tar.bz2
+Source:		django-tracking-0.3.7.hge9a498ccef73.tar.bz2
+BuildArch:	noarch
+
+BuildRequires:	python2-devel 
+BuildRequires:	python-setuptools
+Requires:		Django 
+Requires:		python-imaging
+
+Provides:		%{pkgname} = %{version}-%{release}
+Obsoletes:		%{pkgname} < 0.3.7-7
+
+%description
+django-tracking is a simple attempt at keeping track of visitors to 
+Django-powered Web sites.  It also offers basic blacklisting capabilities.
+
+%prep
+%setup -q -n codekoala-django-tracking-e9a498ccef73
+
+# remove demo application
+rm -rf demo
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
+
+
+# Handling locale files
+# This is adapted from the %%find_lang macro, which cannot be directly
+# used since Django locale files are not located in %%{_datadir}
+#
+# The rest of the packaging guideline still apply -- do not list
+# locale files by hand!
+(cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | %{__sed} -e 's|^.||' |
+%{__sed} -e \
+   's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
+   >> %{pkgname}.lang
+
+%files -f %{pkgname}.lang
+%doc AUTHORS CHANGES LICENSE README.rst README
+%{python_sitelib}/tracking
+%{python_sitelib}/django_tracking-0.4.0-py2.?.egg-info
+
+%changelog
+* Wed Mar 14 2012 Matthias Runge <mrunge at matthias-runge.de> - 0.3.7-7
+- handle language file properly
+
+* Fri Mar 09 2012 Matthias Runge <mrunge at matthias-runge.de> - 0.3.7-6
+- spec cleanup and source file rename
+
+* Mon Mar 05 2012 Matthias Runge <mrunge at matthias-runge.de> - 0.3.7-5
+- rename package to python-django-tracking
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.7-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Sat Jul 23 2011 Clint Savage <herlo at fedoraproject.org> - 0.3.7-2
+- Added requires for Django and python-imaging
+* Sat Jul 23 2011 Clint Savage <herlo at fedoraproject.org> - 0.3.7-1
+- Updated to new release that fixes fedora simplejson imports
+* Wed Oct 20 2010 Dave Riches <david.r at ultracar.co.uk> - 0.2.7-1
+- Packaged for Fedora
+
diff --git a/sources b/sources
index e69de29..bbbf442 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d9d3198e464d0cb89aa94d18696c4d0e  django-tracking-0.3.7.hge9a498ccef73.tar.bz2


More information about the scm-commits mailing list