|
|
30fb97b |
%global pypi_name django-babel
|
|
|
30fb97b |
|
|
|
30fb97b |
%if 0%{?fedora}
|
|
|
30fb97b |
%global with_python3 1
|
|
|
30fb97b |
%endif
|
|
|
30fb97b |
|
|
|
30fb97b |
Name: python-%{pypi_name}
|
|
|
b1e75ed |
|
|
|
e5047e9 |
Version: 0.5.0
|
|
|
ce6c65d |
Release: 5%{?dist}
|
|
|
30fb97b |
Summary: Utilities for using Babel in Django
|
|
|
30fb97b |
|
|
|
30fb97b |
License: BSD
|
|
|
30fb97b |
URL: http://github.com/graingert/django-babel/
|
|
|
30fb97b |
Source0: https://pypi.python.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 python2-%{pypi_name}
|
|
|
30fb97b |
Summary: Utilities for using Babel in Django
|
|
|
30fb97b |
|
|
|
30fb97b |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
30fb97b |
|
|
|
30fb97b |
BuildRequires: python2-devel
|
|
|
30fb97b |
BuildRequires: python-setuptools
|
|
|
30fb97b |
BuildRequires: python-sphinx
|
|
|
30fb97b |
|
|
|
30fb97b |
# test requirements
|
|
|
30fb97b |
#BuildRequires: python-coverage
|
|
|
30fb97b |
#BuildRequires: pytest
|
|
|
30fb97b |
#BuildRequires: python-pytest-cov
|
|
|
30fb97b |
#BuildRequires: python-pytest-flakes
|
|
|
30fb97b |
# currently missing dep:
|
|
|
30fb97b |
# BuildRequires: python-coveralls
|
|
|
30fb97b |
|
|
|
30fb97b |
Requires: python-django >= 1.4
|
|
|
e5047e9 |
Requires: python-django
|
|
|
30fb97b |
Requires: python-babel >= 1.3
|
|
|
30fb97b |
Requires: python-setuptools
|
|
|
30fb97b |
|
|
|
30fb97b |
%description -n python2-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 |
%if 0%{?with_python3}
|
|
|
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
|
|
|
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 |
|
|
|
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 |
%endif
|
|
|
30fb97b |
|
|
|
30fb97b |
%prep
|
|
|
30fb97b |
%setup -q -n %{pypi_name}-%{version}
|
|
|
30fb97b |
|
|
|
30fb97b |
|
|
|
30fb97b |
|
|
|
30fb97b |
%build
|
|
|
30fb97b |
%{__python2} setup.py build
|
|
|
30fb97b |
|
|
|
30fb97b |
%if 0%{?with_python3}
|
|
|
e5047e9 |
%{__python3} setup.py build
|
|
|
30fb97b |
%endif
|
|
|
30fb97b |
|
|
|
30fb97b |
# generate html docs
|
|
|
30e3818 |
export PYTHONPATH=.:$PYTHONPATH
|
|
|
30fb97b |
sphinx-build docs html
|
|
|
30fb97b |
# remove the sphinx-build leftovers
|
|
|
30fb97b |
rm -rf html/.{doctrees,buildinfo}
|
|
|
30fb97b |
|
|
|
30fb97b |
|
|
|
30fb97b |
|
|
|
30fb97b |
|
|
|
30fb97b |
%install
|
|
|
30fb97b |
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
30fb97b |
|
|
|
30fb97b |
%if 0%{?with_python3}
|
|
|
30fb97b |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
30fb97b |
%endif
|
|
|
30fb97b |
|
|
|
30fb97b |
%check
|
|
|
30fb97b |
# python-coveralls is missing test requirement
|
|
|
30fb97b |
#%{__python2} setup.py test
|
|
|
30fb97b |
#%if 0%{?with_python3}
|
|
|
30fb97b |
#%{__python3} setup.py test
|
|
|
30fb97b |
#%endif
|
|
|
e5047e9 |
|
|
|
30fb97b |
%files -n python2-django-babel
|
|
|
30fb97b |
%doc html README.rst
|
|
|
30fb97b |
%{python2_sitelib}/django_babel
|
|
|
30fb97b |
%{python2_sitelib}/django_babel-%{version}-py?.?.egg-info
|
|
|
30fb97b |
|
|
|
30fb97b |
%if 0%{?with_python3}
|
|
|
30fb97b |
%files -n python3-django-babel
|
|
|
30fb97b |
%doc README.rst
|
|
|
30fb97b |
%{python3_sitelib}/django_babel
|
|
|
30fb97b |
%{python3_sitelib}/django_babel-%{version}-py?.?.egg-info
|
|
|
30fb97b |
%endif
|
|
|
30fb97b |
|
|
|
30fb97b |
%changelog
|
|
|
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.
|