commit b89c470dae1cc8a65edcb573f94923e7429d745b
Author: Rahul Sundaram <sundaram(a)fedoraproject.org>
Date: Sun May 1 04:26:25 2011 +0530
initial spec
.gitignore | 1 +
django-robots.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a75892a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-robots-0.8.0.tar.gz
diff --git a/django-robots.spec b/django-robots.spec
new file mode 100644
index 0000000..d54e043
--- /dev/null
+++ b/django-robots.spec
@@ -0,0 +1,45 @@
+Name: django-robots
+Version: 0.8.0
+Release: 1%{?dist}
+Summary: Robots exclusion application for Django, complementing Sitemaps
+
+Group: Development/Languages
+License: BSD
+URL:
http://pypi.python.org/pypi/%{name}
+Source0:
http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python-setuptools-devel python-devel gettext
+Requires: Django
+
+%description
+Django application to manage robots.txt files following the robots exclusion
+protocol, complementing the Django Sitemap contrib app.
+
+%prep
+%setup -q
+# remove AppleDouble encoded Macintosh file. Informed upstream
+rm docs/._overview.txt
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+# Language files; not under /usr/share, need to be handled manually
+(cd $RPM_BUILD_ROOT && find . -name 'django.?o') | sed -e
's|^.||' | sed -e \
+ 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
+ >> %{name}.lang
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.rst docs/
+# list some files explicitly to avoid listing locale files twice
+%{python_sitelib}/robots/*.py*
+%{python_sitelib}/robots/templates/robots/rule_list.html
+%{python_sitelib}/django_robots*.egg-info
+
+%changelog
+* Thu Apr 14 2011 Rahul Sundaram <sundaram(a)fedoraproject.org> - 0.8.0-1
+- initial spec
diff --git a/sources b/sources
index e69de29..ffa610a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0e4d9bed5d9070173e25df1f6d0dc867 django-robots-0.8.0.tar.gz