14
0
forked from pool/python-PyICU

Accepting request 504936 from home:okurz:branches:devel:languages:python

Submission of version 1.9.7; dependency for python-vobject; clean dups with fdupes

OBS-URL: https://build.opensuse.org/request/show/504936
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=1
This commit is contained in:
Jan Matejek
2017-06-21 13:57:18 +00:00
committed by Git OBS Bridge
commit a50205aa6f
7 changed files with 286 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
PyICU-1.9.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db27cd1cc150b879c5465872bec7fdaf340eca140aa922be03891d5b9f855b61
size 183235

4
_service Normal file
View File

@@ -0,0 +1,4 @@
<services>
<service name="download_files" mode="disabled">
</service>
</services>

View File

@@ -0,0 +1,16 @@
Index: _icu.cpp
===================================================================
--- _icu.cpp.orig
+++ _icu.cpp
@@ -238,7 +238,11 @@ static PyObject *PyInit_icu(PyObject *m)
PyType_Ready(&ConstVariableDescriptorType);
Py_INCREF(&ConstVariableDescriptorType);
+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7)
+ ver = PyString_FromString("PYICU_VER");
+#else
ver = PyString_FromString(PYICU_VER);
+#endif
PyObject_SetAttrString(m, "VERSION", ver); Py_DECREF(ver);
ver = PyString_FromString(U_ICU_VERSION);

155
python-PyICU.changes Normal file
View File

@@ -0,0 +1,155 @@
-------------------------------------------------------------------
Thu Jun 8 14:48:36 UTC 2017 - okurz@suse.com
- Update to 1.9.7
* Remove dependency on deprecated and removed ICU LayoutEngine
-------------------------------------------------------------------
Tue May 12 07:54:33 UTC 2015 - lazy.kent@opensuse.org
- Update to 1.9.2 (excluding openSUSE 11.4).
* Added MANIFEST.in to ensure nothing's missing in the 'sdist'
package.
* Enabled -Wwrite-strings and fixed warnings.
* Added missing conditionals around uses of features in newer ICU
versions.
- Changes in 1.9.
* Fixed utf-8 conversion error position reporting.
* Fixed delete/delete[] bug in common.cpp.
* Added support for ICU 54.1 and ICU 55.1.
* Replaced UnicodeString idna methods with new uidna.h UTS #46
wrapper (55.1).
* Added wrapper for Char functions and related enums (from
* uchar.h).
* Added wrapper for Shape defines and shapeArabic() (from
ushape.h).
* Added wrapper for RelativeDateTimeFormatter.
- Drop the source and the patch for openSUSE 12.3.
-------------------------------------------------------------------
Sat Aug 2 15:37:37 UTC 2014 - lazy.kent@opensuse.org
- Update to 1.8 (excluding openSUSE 11.4 and 12.3).
* Added wrapper for Locale::getRoot().
* Added tp_hash implemention for Locale type based on
Locale::hashCode().
* Fixed bug 13112.
* Added support for building with PyPy.
* Added Locale(lcid) constructor calling uloc_getLocaleForLCID().
* Added wrapper for CompactDecimalFormat and its createInstance()
method.
- Changes in 1.7.
* Added missing #include for <unicode/uscript.h>.
* Fixed issues building against ICU 4.2.
* Added wrapper for Script.isRightToLeft().
* Added support for ICU 53.1.
* Added wrappers for other Script functions introduced in ICU 51.
- Changes in 1.6.
* Removed wrappers for some layoutengine.cpp internal flags.
* Added wrappers for ULocaleData functions.
* Added wrappers for uscript functions and UScriptCode enum.
* Added support for ICU 52.1.
* Added wrapper for Locale::setKeywordValue().
* Added Locale::removeKeywordValue().
* Added support for ListFormatter.
- Change BuildRequires: python-distribute -> python-setuptools.
-------------------------------------------------------------------
Fri Mar 15 08:07:37 UTC 2013 - lazy.kent@opensuse.org
- Update to 1.5 (excluding openSUSE 11.4 and 12.1).
* Added wrapper for MessageFormat::format(argumentNames,
arguments, ...).
* Fixed bug in t_transliterator_filteredTransliterate passing
UBool for int.
* Added wrapper for DateFormat::format(Calendar).
* Added wrapper for Calendar::set(UCalendarDateFields field,
value).
* Added wrappers for UnicodeString::toTitle() w/o iterator.
* Added support for ICU 50.1.
* Improved test_Collator's testGetSortKey().
* Added pypi classifiers to PyICU project info.
- Use pkgconfig(*) as build dependencies.
- Don't use "--record-rpm" during install; add to %files section.
-------------------------------------------------------------------
Wed Jul 18 08:38:02 UTC 2012 - lazy.kent@opensuse.org
- Fix suse_version for Factory (12.3).
-------------------------------------------------------------------
Wed Apr 18 05:07:42 UTC 2012 - lazy.kent@opensuse.org
- Update to 1.4.
* Added support for ICU 49.1.1.
* Added ScriptCode constants new in 49.0.
* Implemented wrapper for new NumberFormat.parseCurrency().
* Added wrapper for Transliterator::toRules().
* Added missing wrapper for
RuleBasedNumberFormat(URBNFRuleSetTag, Locale).
* Fixed bugs.
- Changes in 1.3.
* Added support for ICU 4.8.1.1.
* PyICU ready for Python 3.2.
* Added support for LEFontInstance and LayoutEngine.
* Fixed bugs.
- Refresh "quote_Version" patch.
- Run tests.
- Patch to fix running tests in openSUSE 11.4.
-------------------------------------------------------------------
Wed Nov 9 18:54:32 UTC 2011 - lazy.kent@opensuse.org
- Build reqiures python-setuptools or python-distribute (for
openSUSE >= 12.1).
- spec clean up.
-------------------------------------------------------------------
Wed Sep 21 14:22:37 UTC 2011 - lazy.kent@opensuse.org
- Update to 1.2.
* Fixed bugs.
- Dropped "linux3" patch (no need any more).
- Removed obsolete "clean" section and Authors from spec.
-------------------------------------------------------------------
Sat Jul 23 12:13:08 UTC 2011 - lazy.kent@opensuse.org
- Patch to fix compilation on linux3 platform.
- Use python-setuptools.
- Added LICENSE to docs.
-------------------------------------------------------------------
Mon May 30 18:32:32 UTC 2011 - lazy.kent@opensuse.org
- Renamed to python-PyICU.
-------------------------------------------------------------------
Sat May 28 13:38:50 UTC 2011 - lazy.kent@opensuse.org
- Update to 1.1.
- Dropped undefine_DATE patch.
- Refresh quote_Version patch.
- Provides PyICU.
-------------------------------------------------------------------
Thu Feb 17 13:15:31 CET 2011 - pth@suse.de
- pyconfig.h defines DATE which breaks ICU's calendar.h
- Fix quoting of PYICU_VER.
-------------------------------------------------------------------
Sun Oct 17 11:52:49 UTC 2010 - lazy.kent.suse@gmail.com
- Update to 1.0.1.
-------------------------------------------------------------------
Sat Sep 25 20:20:13 UTC 2010 - lazy.kent.suse@gmail.com
- Update to 1.0.
-------------------------------------------------------------------
Tue Apr 6 19:28:36 UTC 2010 - lazy.kent.suse@gmail.com
- Initial package created.

84
python-PyICU.spec Normal file
View File

@@ -0,0 +1,84 @@
#
# spec file for package python-PyICU
#
# Copyright (c) 2017 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global modname PyICU
Name: python-%{modname}
Version: 1.9.7
Release: 0
Summary: Python Extension Wrapping the ICU C++ API
License: MIT
Group: Development/Libraries/Python
Url: http://pyicu.osafoundation.org/
Source0: https://pypi.io/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz
Patch0: python-%{modname}-%{version}-quote_Version.patch
%{?python_provide:%python_provide python-%{modname}}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: gcc-c++
Provides: %{modname} = %{version}
Provides: python-ICU = %{version}
Obsoletes: python-ICU < 1.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1320
BuildRequires: %{python_module pytest}
%endif
%if 0%{?suse_version} >= 1210
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
%else
BuildRequires: libicu-devel
Requires: python = %{py_ver}
%endif
%python_subpackages
%description
Python extension wrapping IBM's International Components for Unicode C++
library (ICU).
%prep
%setup -q -n %{modname}-%{version}
%patch0
%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%if 0%{?suse_version} > 1320
%check
%python_exec setup.py test
%endif
%files %{python_files}
%defattr(-,root,root,-)
%if 0%{?suse_version} >= 1310
%doc CHANGES CREDITS LICENSE README.md
%else
%doc CHANGES CREDITS LICENSE README
%endif
%{python_sitearch}/*
%changelog