dfc41d0
%global pypi_name django-tastypie
471c150
%global sum A flexible and capable API layer for Django
dfc41d0
Name:           python-%{pypi_name}
6ba5369
Version:        0.13.3
8ed2b77
Release:        14%{?dist}
471c150
Summary:        %{sum}
9d10047
9d10047
License:        BSD
dfc41d0
URL:            https://github.com/toastdriven/django-tastypie/
c3f3a69
c31293e
# Release version doesn't include tests
6ba5369
Source0:        https://github.com/%{pypi_name}/%{pypi_name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
e8fd1e7
9d10047
BuildArch:      noarch
dfc41d0
# Let's keep Requires and BuildRequires sorted alphabetically
f6790a7
BuildRequires:  python3-devel
f6790a7
BuildRequires:  python3-sphinx
9d10047
9d10047
%description
9d10047
Tastypie is an webservice API framework for Django. It provides a convenient, 
9d10047
yet powerful and highly customizable, abstraction for creating REST-style 
9d10047
interfaces.
9d10047
9d10047
%package doc
9d10047
Summary: Documentation for %{name}
9d10047
f6790a7
Requires: python3-%{pypi_name} = %{version}-%{release}
9d10047
9d10047
%description doc
9d10047
This package contains documentation for %{name}.
9d10047
471c150
%package -n python3-%{pypi_name}
471c150
Summary:        %{sum}
471c150
%{?python_provide:%python_provide python3-%{pypi_name}}
471c150
f6790a7
Requires:       python3-dateutil
f6790a7
Requires:       python3-django
f6790a7
Requires:       python3-mimeparse
f6790a7
f6790a7
Obsoletes:      %{pypi_name} < 0.9.11-3
f6790a7
Obsoletes:      python-%{pypi_name} <= 0.13.3-8
f6790a7
Obsoletes:      python2-%{pypi_name} <= 0.13.3-8
f6790a7
471c150
%description -n python3-%{pypi_name}
471c150
Tastypie is an webservice API framework for Django. It provides a convenient, 
471c150
yet powerful and highly customizable, abstraction for creating REST-style 
471c150
interfaces.
9d10047
9d10047
%prep 
c31293e
%setup -q -n %{pypi_name}-%{version}
5df5c7d
f6790a7
f6790a7
%build
dfc41d0
# (re)generate the documentation
cf88290
#pushd docs
f6790a7
sphinx-build-3 docs docs/_build/html
cf88290
#make html
cf88290
#popd
0be4205
rm -rf docs/_build/html/.??*
dfc41d0
f6790a7
%py3_build
471c150
9d10047
9d10047
%install
f6790a7
%py3_install
471c150
471c150
%files -n python3-%{pypi_name}
471c150
%doc README.rst AUTHORS LICENSE
7cd7704
%dir %{python3_sitelib}/tastypie
471c150
%{python3_sitelib}/django_tastypie*
471c150
%{python3_sitelib}/tastypie/*
9d10047
9d10047
%files doc
0be4205
%doc docs/_build/html
9d10047
9d10047
%changelog
8ed2b77
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.3-14
8ed2b77
- Rebuilt for Python 3.8
8ed2b77
49d2434
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-13
49d2434
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
49d2434
3bd6190
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-12
3bd6190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3bd6190
7ed9d60
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-11
7ed9d60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7ed9d60
e26751f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.3-10
e26751f
- Rebuilt for Python 3.7
e26751f
317e2a9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-9
317e2a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
317e2a9
f6790a7
* Tue Dec 05 2017 Miro Hrončok <mhroncok@redhat.com>
f6790a7
- Remove Python 2 subpackage (#1494761)
f6790a7
- Remove Groups
f6790a7
- Use Python 3 for documentation
f6790a7
- Move docs build into %%build
f6790a7
- Use modern Python build+install macros
f6790a7
- Remove RHEL conditionals
f6790a7
19641df
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-7
19641df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
19641df
3c4a236
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.3-6
3c4a236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3c4a236
0350205
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.13.3-5
0350205
- Rebuild for Python 3.6
0350205
7cd7704
* Sun Jul 31 2016 Petr Viktorin <pviktori@redhat.com> - 0.13.3-4
7cd7704
- Fix Python sitelib directories
7cd7704
0f53cb9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13.3-3
0f53cb9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0f53cb9
471c150
* Sat Feb 27 2016 Cédric OLIVIER <cedric.olivier@free.fr> - 0.13.3-2
471c150
- provide python3 subpackage (rhbz#1312325)
471c150
6ba5369
* Thu Feb 18 2016 Cédric OLIVIER <cedric.olivier@free.fr> - 0.13.3-1
6ba5369
- Update to 0.13.3 (rhbz#1308500)
6ba5369
5e876e4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-2
5e876e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5e876e4
cf88290
* Tue Jan 26 2016 Cédric OLIVIER <cedric.olivier@free.fr> - 0.13.1-1
cf88290
- Update to 0.13.1 (rhbz#1244039)
cf88290
2a3ce36
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
2a3ce36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2a3ce36
1db9006
* Mon Oct 27 2014 Cédric OLIVIER <cedric.olivier@free.fr> - 0.12.1-1
1db9006
- Update to 0.12.1 (rhbz#1142992)
1db9006
bd93d9c
* Thu Aug 07 2014 Matthias Runge <mrunge@redhat.com> - 0.11.1-4
bd93d9c
- Fix python-dateutil requires
bd93d9c
f8dd573
* Wed Aug 06 2014 Jon Ciesla <limburgher@gmail.com> - 0.11.1-3
f8dd573
- Fix python-dateutil Requires.
f8dd573
79d7a93
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-2
79d7a93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
79d7a93
0a6baf2
* Mon May 26 2014 Matthias Runge <mrunge@redhat.com> - 0.11.1-1
0a6baf2
- update to 0.11.1 (rhbz#1100733)
0a6baf2
5df5c7d
* Mon May 19 2014 Matthias Runge <mrunge@redhat.com> - 0.11.0-1
5df5c7d
- update to 0.11.0 (rhbz#959137)
5df5c7d
- remove check section :-(, upstream does not provide tests in tarballs
5df5c7d
0be4205
* Tue Aug 27 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.14-4
0be4205
- Fix unversioned docdir issue (rhbz#1001252).
0be4205
- Fix bogus changelog entry.
0be4205
builder 4ecd277
* Sun Aug 11 2013 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.14-3
builder 4ecd277
- Change Docdir to Unversioned Docdir
builder 4ecd277
5f3d0ea
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
5f3d0ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5f3d0ea
c3f3a69
* Tue Mar 26 2013 Miro Hrončok <mhroncok@redhat.com> - 0.9.14-1
c31293e
- New version
c31293e
- Using new GitHub rule to get archive with tests
c31293e
- Run tests manually
c31293e
- Added BR python-defusedxml
c31293e
- Dropped dance around release and development versioning
e8fd1e7
- Added patch for Django 1.5
c31293e
29a920c
* Mon Mar 25 2013 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.12-1
29a920c
- Updated to upstream 0.9.12
29a920c
4d466b0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.12-0.2.alpha
4d466b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4d466b0
dfc41d0
* Tue Aug 14 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.12-0.1.alpha
dfc41d0
- Updated to upstream version 0.9.12-alpha.
dfc41d0
- Adapted the specfile to prerelease versioning.
dfc41d0
- Add some BuildRequires, so that more tests are run (these
dfc41d0
are soft requirements, so they aren't in Requires)
dfc41d0
- Fixed URL to point to upstream, not PyPI.
dfc41d0
- Made the spec compatible with EPEL6.
dfc41d0
440f44c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11-5
440f44c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
440f44c
9d10047
* Sun Mar 18 2012 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.11-4
9d10047
- Bugfix in obsoletes
9d10047
9d10047
* Sun Mar 18 2012 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.11-3
9d10047
- Removing bundled .egg-info during prep
9d10047
9d10047
* Sat Mar 17 2012 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.11-2
9d10047
- Adding missing buildrequires
9d10047
- Adding info about renaming django-tastypie
9d10047
- Adding check section
9d10047
- Adding documentation subpackage
9d10047
0be4205
* Fri Mar 02 2012 Cédric OLIVIER <cedric.olivier@free.fr> 0.9.11-1
9d10047
- Initial version of the package