[django-tastypie] Initial import (#771171)

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Jan 9 06:32:15 UTC 2012


commit 2a59619a024ab6450f3cd5672a1d32b3f743a6d8
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 9 07:32:08 2012 +0100

    Initial import (#771171)

 .gitignore           |    2 +
 django-tastypie.spec |   94 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    2 +
 3 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5035cf4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/django-tastypie-0.9.11.tar.gz
+/django-tastypie-tests.tgz
diff --git a/django-tastypie.spec b/django-tastypie.spec
new file mode 100644
index 0000000..d15a815
--- /dev/null
+++ b/django-tastypie.spec
@@ -0,0 +1,94 @@
+%global docdir %{_docdir}/%{name}-%{version}
+%global tmpdir %{_tmppath}/%{name}-tests
+
+
+Name:           django-tastypie
+Version:        0.9.11
+Release:        2%{?dist}
+Summary:        Tastypie is an webservice API framework for Django
+
+Group:          Development/Languages
+License:        BSD
+URL:            http://django-tastypie.readthedocs.org/en/latest/index.html
+Source0:        http://pypi.python.org/packages/source/d/django-tastypie/%{name}-%{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 django-tastypie-tests.tgz tests/
+Source1:        %{name}-tests.tgz
+
+Requires:       python-mimeparse >= 0.1.3
+Requires:       python-dateutil >= 1.5
+Requires:       python-dateutil < 2.0
+Requires:       Django >= 1.2.0
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+# for tests
+BuildRequires:  python-mimeparse >= 0.1.3
+BuildRequires:  python-dateutil >= 1.5
+BuildRequires:  python-dateutil < 2.0
+BuildRequires:  Django >= 1.2.0
+# this is only an optional dependency, but we want to test it during build
+BuildRequires:  python-lxml
+
+%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
+# move the tests into place
+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 %{buildroot}
+mkdir -p %{buildroot}%{docdir}
+cp -pr docs/_build/html %{buildroot}%{docdir}
+cp -p LICENSE README.rst AUTHORS -t %{buildroot}%{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 %{docdir}/LICENSE
+%{python_sitelib}/*
+
+%files doc
+%doc %{docdir}
+%exclude %{docdir}/html/.buildinfo
+
+%changelog
+* Fri Jan 06 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.9.11-2
+- Excluded the .buildinfo from html dir.
+- Fixed specfile permissions.
+- Removed unneeded PYTHONPATH setup during tests.
+- Fixed the mixed spaces/tabs rpmlint warning.
+- Removed the rm -rf in install section.
+
+* Thu Dec 22 2011 Bohuslav Kabrda <bkabrda at redhat.com> - 0.9.11-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..132c354 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+711b29265917405c226f4594782e7e9b  django-tastypie-0.9.11.tar.gz
+0e7372f4994b39d7951a3846696a972f  django-tastypie-tests.tgz


More information about the scm-commits mailing list