import babel-2.5.1-5.el8
This commit is contained in:
parent
a09d8b1990
commit
46c1faaedd
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
Name: babel
|
Name: babel
|
||||||
Version: 2.5.1
|
Version: 2.5.1
|
||||||
Release: 3%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Tools for internationalizing Python applications
|
Summary: Tools for internationalizing Python applications
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
|
@ -27,14 +27,14 @@ Patch0: babel-2.3.4-remove-pytz-version.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%if %{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
BuildRequires: python2-pytz
|
BuildRequires: python2-pytz
|
||||||
BuildRequires: python2-pytest
|
BuildRequires: python2-pytest
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: platform-python-setuptools
|
||||||
%if !%{bootstrap}
|
%if !%{bootstrap}
|
||||||
BuildRequires: python3-pytz
|
BuildRequires: python3-pytz
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
|
@ -50,7 +50,7 @@ BuildRequires: python2-sphinx
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
%endif
|
%endif
|
||||||
Requires: python3-babel
|
Requires: python3-babel
|
||||||
Requires: python3-setuptools
|
Requires: platform-python-setuptools
|
||||||
%else
|
%else
|
||||||
BuildRequires: python2-sphinx
|
BuildRequires: python2-sphinx
|
||||||
Requires: python2-babel
|
Requires: python2-babel
|
||||||
|
@ -87,7 +87,7 @@ Babel is composed of two major parts:
|
||||||
%package -n python3-babel
|
%package -n python3-babel
|
||||||
Summary: %sum
|
Summary: %sum
|
||||||
|
|
||||||
Requires: python3-setuptools
|
Requires: platform-python-setuptools
|
||||||
Requires: python3-pytz
|
Requires: python3-pytz
|
||||||
|
|
||||||
%{?python_provide:%python_provide python3-babel}
|
%{?python_provide:%python_provide python3-babel}
|
||||||
|
@ -114,7 +114,7 @@ Documentation for Babel
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%py2_build
|
%py2_build
|
||||||
%endif
|
%endif
|
||||||
%py3_build
|
%py3_build
|
||||||
|
@ -135,7 +135,7 @@ rm -f "$BUILDDIR/html/.buildinfo"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{default_python} >= 3
|
%if %{default_python} >= 3
|
||||||
%if %{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%py2_install
|
%py2_install
|
||||||
%endif
|
%endif
|
||||||
%py3_install
|
%py3_install
|
||||||
|
@ -150,7 +150,7 @@ rm -f "$BUILDDIR/html/.buildinfo"
|
||||||
rm tests/messages/test_frontend.py
|
rm tests/messages/test_frontend.py
|
||||||
|
|
||||||
export TZ=America/New_York
|
export TZ=America/New_York
|
||||||
%if %{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%{__python2} setup.py test
|
%{__python2} setup.py test
|
||||||
%endif
|
%endif
|
||||||
%if !%{bootstrap}
|
%if !%{bootstrap}
|
||||||
|
@ -162,7 +162,7 @@ export TZ=America/New_York
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/pybabel
|
%{_bindir}/pybabel
|
||||||
|
|
||||||
%if %{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%files -n python2-babel
|
%files -n python2-babel
|
||||||
%{python2_sitelib}/Babel-%{version}-py*.egg-info
|
%{python2_sitelib}/Babel-%{version}-py*.egg-info
|
||||||
%{python2_sitelib}/babel
|
%{python2_sitelib}/babel
|
||||||
|
@ -176,6 +176,12 @@ export TZ=America/New_York
|
||||||
%doc built-docs/html/*
|
%doc built-docs/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 28 2019 Nils Philippsen <nils@redhat.com> - 2.5.1-5
|
||||||
|
- make spec file work without %%rhel being defined
|
||||||
|
|
||||||
|
* Tue Mar 26 2019 Nils Philippsen <nils@redhat.com> - 2.5.1-4
|
||||||
|
- depend on platform-python-setuptools rather than python3-setuptools (#1650487)
|
||||||
|
|
||||||
* Mon Jun 18 2018 Petr Viktorin <pviktori@redhat.com> - 2.5.1-3
|
* Mon Jun 18 2018 Petr Viktorin <pviktori@redhat.com> - 2.5.1-3
|
||||||
- Remove the freezegun dependency
|
- Remove the freezegun dependency
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue