15
0
forked from pool/python-Babel

Accepting request 357119 from home:TheBlackCat:branches:devel:languages:python

update to version 2.2.0

OBS-URL: https://build.opensuse.org/request/show/357119
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=24
This commit is contained in:
Todd R
2016-02-01 11:54:16 +00:00
committed by Git OBS Bridge
parent 3985f1ae8f
commit c62ad5967a
8 changed files with 139 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Babel
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,17 @@
Name: python-Babel
Version: 1.3
Version: 2.2.0
Release: 0
Url: http://babel.edgewall.org/
Url: http://babel.pocoo.org/
Summary: Internationalization utilities
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/B/Babel/Babel-%{version}.tar.gz
# FIX-BUILD-OPENSUSE 0001-disable_timezone_tests.patch sfalken@opensuse.org -- disable failing timezone tests
Patch0: 0001-disable_timezone_tests.patch
# PATCH-FIX-OPENSUSE fix-timezone-test.patch (taken from upstream)
Patch0: fix-timezone-test.patch
# PATCH-FIX-OPENSUSE skip-dst-tests.patch -- drop DST related tests (#156)
Patch1: skip-dst-tests.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
@@ -53,7 +55,8 @@ A collection of tools for internationalizing Python applications.
%prep
%setup -q -n Babel-%{version}
%patch0 -p1
%patch0 -p0
%patch1 -p1
sed -i "s/pybabel =/pybabel-%{py_ver} =/" setup.py
%build
@@ -77,7 +80,7 @@ TZ=UTC LC_ALL=C py.test tests
[ -h %{_bindir}/pybabel ] || rm -f %{_bindir}/pybabel
%post
update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py_ver} 20
update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py_ver} 30
%postun
if [ $1 -eq 0 ] ; then
@@ -86,7 +89,7 @@ fi
%files
%defattr(-,root,root,-)
%doc LICENSE CHANGES README
%doc LICENSE CHANGES
%ghost %{_sysconfdir}/alternatives/pybabel
%{_bindir}/pybabel
%{_bindir}/pybabel-%{py_ver}