import babel-2.5.1-5.el8
This commit is contained in:
parent
a09d8b1990
commit
46c1faaedd
@ -17,7 +17,7 @@
|
||||
|
||||
Name: babel
|
||||
Version: 2.5.1
|
||||
Release: 3%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Tools for internationalizing Python applications
|
||||
|
||||
License: BSD
|
||||
@ -27,14 +27,14 @@ Patch0: babel-2.3.4-remove-pytz-version.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%if %{?rhel} <= 7
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-pytz
|
||||
BuildRequires: python2-pytest
|
||||
%endif
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: platform-python-setuptools
|
||||
%if !%{bootstrap}
|
||||
BuildRequires: python3-pytz
|
||||
BuildRequires: python3-pytest
|
||||
@ -50,7 +50,7 @@ BuildRequires: python2-sphinx
|
||||
BuildRequires: python3-sphinx
|
||||
%endif
|
||||
Requires: python3-babel
|
||||
Requires: python3-setuptools
|
||||
Requires: platform-python-setuptools
|
||||
%else
|
||||
BuildRequires: python2-sphinx
|
||||
Requires: python2-babel
|
||||
@ -87,7 +87,7 @@ Babel is composed of two major parts:
|
||||
%package -n python3-babel
|
||||
Summary: %sum
|
||||
|
||||
Requires: python3-setuptools
|
||||
Requires: platform-python-setuptools
|
||||
Requires: python3-pytz
|
||||
|
||||
%{?python_provide:%python_provide python3-babel}
|
||||
@ -114,7 +114,7 @@ Documentation for Babel
|
||||
%autosetup -n %{srcname}-%{version}
|
||||
|
||||
%build
|
||||
%if %{?rhel} <= 7
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%py2_build
|
||||
%endif
|
||||
%py3_build
|
||||
@ -135,7 +135,7 @@ rm -f "$BUILDDIR/html/.buildinfo"
|
||||
|
||||
%install
|
||||
%if %{default_python} >= 3
|
||||
%if %{?rhel} <= 7
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%py2_install
|
||||
%endif
|
||||
%py3_install
|
||||
@ -150,7 +150,7 @@ rm -f "$BUILDDIR/html/.buildinfo"
|
||||
rm tests/messages/test_frontend.py
|
||||
|
||||
export TZ=America/New_York
|
||||
%if %{?rhel} <= 7
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%{__python2} setup.py test
|
||||
%endif
|
||||
%if !%{bootstrap}
|
||||
@ -162,7 +162,7 @@ export TZ=America/New_York
|
||||
%license LICENSE
|
||||
%{_bindir}/pybabel
|
||||
|
||||
%if %{?rhel} <= 7
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
%files -n python2-babel
|
||||
%{python2_sitelib}/Babel-%{version}-py*.egg-info
|
||||
%{python2_sitelib}/babel
|
||||
@ -176,6 +176,12 @@ export TZ=America/New_York
|
||||
%doc built-docs/html/*
|
||||
|
||||
%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
|
||||
- Remove the freezegun dependency
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user