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