diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..32562ce86edc3ead7a8b0a33012047bc4b3a54b2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2010, Daniel Lindsley +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the tastypie nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL tastypie BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/python-django-tastypie.spec b/python-django-tastypie.spec new file mode 100644 index 0000000000000000000000000000000000000000..9497a35f59a3dc405631ab2f729ddc641eb3b37a --- /dev/null +++ b/python-django-tastypie.spec @@ -0,0 +1,57 @@ +Name: python-django-tastypie +Version: 0.14.3 +Release: 1 +Summary: A flexible and capable API layer for Django +License: BSD +URL: https://github.com/django-tastypie/django-tastypie/ +Source0: https://github.com/django-tastypie/django-tastypie/archive/refs/tags/v0.14.3.tar.gz +BuildArch: noarch +BuildRequires: python3-devel python3-setuptools python3-sphinx + +%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 help +Summary: Documentation for %{name} +Requires: python3-django-tastypie = %{version}-%{release} +Provides: python-django-tastypie-doc + +%description help +This package contains documentation for python-django-tastypie. + +%package -n python3-django-tastypie +Summary: A flexible and capable API layer for Django +%{?python_provide:%python_provide python3-django-tastypie} + +Requires: python3-dateutil python3-django python3-mimeparse +Obsoletes: django-tastypie < 0.9.11-3 +Obsoletes: python-django-tastypie <= 0.13.3-8 + +%description -n python3-django-tastypie +Tastypie is an webservice API framework for Django. It provides a convenient, +yet powerful and highly customizable, abstraction for creating REST-style interfaces. + +%prep +%setup -q -n django-tastypie-%{version} + +%build +sphinx-build-3 docs docs/_build/html +rm -rf docs/_build/html/.??* +%py3_build + +%install +%py3_install + +%files -n python3-django-tastypie +%doc README.rst AUTHORS LICENSE +%dir %{python3_sitelib}/tastypie +%{python3_sitelib}/django_tastypie* +%{python3_sitelib}/tastypie/* + +%files help +%doc docs/_build/html + +%changelog +* Mon Jul 05 2021 zhangzikang - 0.14.3-1 +- Package init diff --git a/v0.14.3.tar.gz b/v0.14.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a194810f1cbe8c15b7f71c897f5de100c1ca470f Binary files /dev/null and b/v0.14.3.tar.gz differ