From b381ea7bf231acd8c33cb026f016243b3afa8856 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Aug 01 2012 19:54:29 +0000 Subject: disable building of non-functional python3 subpackage (#761583) --- diff --git a/babel.spec b/babel.spec index a8ceeb0..a7fd0f3 100644 --- a/babel.spec +++ b/babel.spec @@ -1,10 +1,6 @@ -%if 0%{?fedora} > 12 || 0%{?rhel} > 5 -%global with_python3 1 -%endif - Name: babel Version: 0.9.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tools for internationalizing Python applications Group: Development/Languages @@ -21,13 +17,6 @@ BuildRequires: python-setuptools-devel Requires: python-babel Requires: python-setuptools -%if 0%{?with_python3} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -# needed for 2to3 -BuildRequires: python-tools -%endif - %description Babel is composed of two major parts: @@ -40,6 +29,9 @@ Babel is composed of two major parts: %package -n python-babel Summary: Library for internationalizing Python applications Group: Development/Languages +# previously Fedora shipped a broken subpackage python3-babel which is gone now +# (until upstream releases a version with Python 3 support) +Obsoletes: python3-babel < 0.9.6-3 %description -n python-babel Babel is composed of two major parts: @@ -50,51 +42,16 @@ Babel is composed of two major parts: providing access to various locale display names, localized number and date formatting, etc. -%if 0%{?with_python3} -%package -n python3-babel -Summary: Library for internationalizing Python applications -Group: Development/Languages - -%description -n python3-babel -Babel is composed of two major parts: - -* tools to build and work with gettext message catalogs - -* a Python interface to the CLDR (Common Locale Data Repository), - providing access to various locale display names, localized number - and date formatting, etc. -%endif - %prep %setup0 -q -n Babel-%{version} chmod a-x babel/messages/frontend.py doc/logo.png doc/logo_small.png %{__sed} -i -e '/^#!/,1d' babel/messages/frontend.py -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -r . %{py3dir} -2to3 --write --nobackup %{py3dir} -%endif - %build %{__python} setup.py build -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif - %install rm -rf %{buildroot} -# install python3 build before python2 build so executables from the former -# don't overwrite those from the latter -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install --skip-build --no-compile --root %{buildroot} -popd -%endif - %{__python} setup.py install --skip-build --no-compile --root %{buildroot} %clean @@ -111,15 +68,10 @@ rm -rf %{buildroot} %{python_sitelib}/Babel-%{version}-py*.egg-info %{python_sitelib}/babel -%if 0%{?with_python3} -%files -n python3-babel -%defattr(-,root,root,-) -%doc doc -%{python3_sitelib}/Babel-%{version}-py*.egg-info -%{python3_sitelib}/babel -%endif - %changelog +* Wed Aug 01 2012 Felix Schwarz - 0.9.6-3 +- disable building of non-functional python3 subpackage (#761583) + * Thu Jan 12 2012 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild