[python-django-tastypie] Initial import (#804185)

Bohuslav Kabrda bkabrda at fedoraproject.org
Tue Mar 20 12:07:44 UTC 2012


commit 9d10047625b0efa261ec7b87610c1acfb90411b6
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Tue Mar 20 13:07:37 2012 +0100

    Initial import (#804185)

 .gitignore                  |    2 +
 python-django-tastypie.spec |  100 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    2 +
 3 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..325f913 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/django-tastypie-0.9.11.tar.gz
+/python-django-tastypie-tests.tgz
diff --git a/python-django-tastypie.spec b/python-django-tastypie.spec
new file mode 100644
index 0000000..8415647
--- /dev/null
+++ b/python-django-tastypie.spec
@@ -0,0 +1,100 @@
+%global pkgname django-tastypie
+%global docdir %{_docdir}/%{name}-%{version}
+
+Name:           python-django-tastypie
+Version:        0.9.11
+Release:        4%{?dist}
+Summary:        A flexible and capable API layer for Django
+
+Group:          Development/Languages
+License:        BSD
+URL:            http://pypi.python.org/pypi/django-tastypie
+Source0:        http://pypi.python.org/packages/source/d/django-tastypie/django-tastypie-%{version}.tar.gz
+# to get tests:
+# git clone https://github.com/toastdriven/django-tastypie.git && cd django-tastypie
+# git checkout v0.9.11
+# tar -czf python-django-tastypie-tests.tgz tests/
+Source1:        %{name}-tests.tgz
+
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-mimeparse >= 0.1.3
+BuildRequires:  python-dateutil >= 1.5
+BuildRequires:  python-dateutil < 2.0
+BuildRequires:  Django >= 1.2.0
+Requires:       python-mimeparse >= 0.1.3
+Requires:       python-dateutil >= 1.5
+Requires:       python-dateutil < 2.0
+Requires:       Django >= 1.2.0
+
+Provides:       %{pkgname} = %{version}-%{release}
+Obsoletes:      %{pkgname} < 0.9.11-3 
+
+%description
+Tastypie is an webservice API framework for Django. It provides a convenient, 
+yet powerful and highly customizable, abstraction for creating REST-style 
+interfaces.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation for %{name}.
+
+
+%prep 
+%setup -q -n django-tastypie-%{version}
+rm -rf *egg-info
+tar xzf %{SOURCE1}
+sed -i 's|django-admin.py|django-admin|' tests/run_all_tests.sh
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{docdir}
+cp -pr docs/_build/html $RPM_BUILD_ROOT%{docdir}
+cp -p LICENSE README.rst AUTHORS -t $RPM_BUILD_ROOT%{docdir}
+
+%check
+# note: the oauth tests will work once the proper module gets into rawhide
+# from the authors documentation it is now not very clear if it is
+# django-oauth or django-oauth-provider or django-oauth-plus
+# anyway, it is not a hard requirement
+pushd tests
+./run_all_tests.sh
+popd
+ 
+%files
+%doc README.rst AUTHORS LICENSE
+%dir %{python_sitelib}/tastypie
+%{python_sitelib}/django_tastypie*
+%{python_sitelib}/tastypie/*
+
+%files doc
+%doc %{docdir}
+%exclude %{docdir}/html/.buildinfo
+
+
+%changelog
+* Sun Mar 18 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.9.11-4
+- Bugfix in obsoletes
+
+* Sun Mar 18 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.9.11-3
+- Removing bundled .egg-info during prep
+
+* Sat Mar 17 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.9.11-2
+- Adding missing buildrequires
+- Adding info about renaming django-tastypie
+- Adding check section
+- Adding documentation subpackage
+
+* Wed Mar 02 2012 Cédric OLIVIER <cedric.olivier at free.fr> 0.9.11-1
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..36f074d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+711b29265917405c226f4594782e7e9b  django-tastypie-0.9.11.tar.gz
+e7dd2613d06db675375b693062cb3d5c  python-django-tastypie-tests.tgz


More information about the scm-commits mailing list