30fb97b
%global pypi_name django-babel
30fb97b
30fb97b
Name:           python-%{pypi_name}
b1e75ed
1e466b3
Version:        0.6.2
3f93031
Release:        8%{?dist}
30fb97b
Summary:        Utilities for using Babel in Django
30fb97b
30fb97b
License:        BSD
1e466b3
URL:            http://github.com/python-babel/django-babel/
1e466b3
Source0:        https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
30fb97b
BuildArch:      noarch
30fb97b
30fb97b
%description
30fb97b
This package contains various utilities for integration of
30fb97b
Babel into the Django web framework:
30fb97b
30fb97b
* A message extraction plugin for Django templates.
30fb97b
* A middleware class that adds the Babel `Locale`_ object to requests.
30fb97b
 * A set
30fb97b
of template tags for date and number formatting.
30fb97b
30fb97b
30fb97b
%package -n python3-django-babel
30fb97b
Summary:        Utilities for using Babel in Django
30fb97b
30fb97b
%{?python_provide:%python_provide python3-%{pypi_name}}
30fb97b
30fb97b
BuildRequires:  python3-devel
ee2d239
BuildRequires:  python3-django
30fb97b
BuildRequires:  python3-setuptools
30fb97b
BuildRequires:  python3-sphinx
30fb97b
30fb97b
# test requirements
30fb97b
# BuildRequires:  python3-coverage
30fb97b
# BuildRequires:  python3-pytest
30fb97b
# BuildRequires:  python3-pytest-cov
30fb97b
# BuildRequires:  python3-pytest-flakes
30fb97b
# currently missing test dep:
30fb97b
# BuildRequires:  python3-coveralls
30fb97b
30fb97b
Requires:       python3-django
30fb97b
Requires:       python3-babel >= 1.3
30fb97b
Requires:       python3-setuptools
30fb97b
ee2d239
Obsoletes:      python-django-babel < 0.6.2-3
ee2d239
Obsoletes:      python2-django-babel < 0.6.2-3
ee2d239
30fb97b
%description -n python3-django-babel
30fb97b
This package contains various utilities for integration of
30fb97b
Babel into the Django web framework:
30fb97b
30fb97b
* A message extraction plugin for Django templates.
30fb97b
* A middleware class that adds the Babel `Locale`_ object to requests.
30fb97b
 * A set
30fb97b
of template tags for date and number formatting.
30fb97b
30fb97b
%prep
30fb97b
%setup -q -n %{pypi_name}-%{version}
30fb97b
30fb97b
30fb97b
30fb97b
%build
ee2d239
%py3_build
30fb97b
30fb97b
# generate html docs
30e3818
export PYTHONPATH=.:$PYTHONPATH
ee2d239
sphinx-build-3 docs html
30fb97b
# remove the sphinx-build leftovers
30fb97b
rm -rf html/.{doctrees,buildinfo}
30fb97b
30fb97b
30fb97b
30fb97b
30fb97b
%install
ee2d239
%py3_install
30fb97b
30fb97b
%check
30fb97b
# python-coveralls is missing test requirement
30fb97b
#%{__python3} setup.py test
e5047e9
30fb97b
%files -n python3-django-babel
30fb97b
%doc README.rst
ee2d239
%{python3_sitelib}/django_babel/
30fb97b
%{python3_sitelib}/django_babel-%{version}-py?.?.egg-info
30fb97b
30fb97b
%changelog
3f93031
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-8
3f93031
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f93031
0d2d1d2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-7
0d2d1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0d2d1d2
235a6f6
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
235a6f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
235a6f6
453c0cb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-5
453c0cb
- Rebuilt for Python 3.7
453c0cb
ee2d239
* Mon Feb 12 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-4
ee2d239
- Removed Python 2 subpackage for https://fedoraproject.org/wiki/Changes/Django20
ee2d239
- Run Python 3 version of Sphinx
ee2d239
- Use %%py3_... macros for build and install
ee2d239
- Make sure %%{python3_sitelib}/django_babel/ is a directory
ee2d239
8495bfe
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
8495bfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8495bfe
9d8318b
* Fri Jan 26 2018 Matthias Runge <mrunge@redhat.com> - 0.6.2-2
9d8318b
- fix python2 and python2-django requires
9d8318b
1e466b3
* Wed Dec 20 2017 Matthias Runge <mrunge@redhat.com> - 0.6.2-1
1e466b3
- update to 0.6.2 (rhbz#1445554)
1e466b3
ce6c65d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-5
ce6c65d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ce6c65d
26765ee
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-4
26765ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
26765ee
5f39a81
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.5.0-3
5f39a81
- Rebuild for Python 3.6
5f39a81
e29c7bd
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
e29c7bd
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e29c7bd
e5047e9
* Tue Mar 01 2016 Matthias Runge <mrunge@redhat.com> - 0.5.0-1
e5047e9
- update to 0.5.0, support django-1.9
e5047e9
bb11039
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
bb11039
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bb11039
316920a
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
316920a
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
316920a
30fb97b
* Thu Sep 10 2015 Matthias Runge <mrunge@redhat.com> - 0.4.0-2
30fb97b
- spec fixes, move docs creation to build (rhbz#1261042)
30fb97b
30fb97b
* Tue Sep 08 2015 Matthias Runge <mrunge@redhat.com> - 0.4.0-1
30fb97b
- Initial package.