SHA256
1
0
forked from pool/icu

Accepting request 157691 from X11:common:Factory

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/157691
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/icu?expand=0&rev=37
This commit is contained in:
Stephan Kulow 2013-03-12 05:54:38 +00:00 committed by Git OBS Bridge
commit cafbf65d1b
7 changed files with 90 additions and 64 deletions

View File

@ -1,4 +1,4 @@
libicu49 libicu50
libicu-devel libicu-devel
requires -libicu-<targettype> requires -libicu-<targettype>
requires "libicu49-<targettype> = <version>" requires "libicu50-<targettype> = <version>"

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Fri Jan 25 09:26:17 UTC 2013 - cfarrell@suse.com
- license update: X11
official spdx.org license list now contains an entry for X11
-------------------------------------------------------------------
Sat Jan 19 11:39:50 UTC 2013 - idonmez@suse.com
- Update to version 50.1.2
* Fix an ABI regression introduced in 50.1, icu bug#9826
-------------------------------------------------------------------
Wed Nov 14 18:09:09 UTC 2012 - jengelh@inai.de
- Update to new upstream release 50
* Unicode 6.2: Turkish Lira Sign, improved word & line segmentation
(BreakIterator) for symbols
* CLDR 22.1: Data coverage & quality improved across all major
languages; new short width type for weekday names; new zhuyin
(Bopomofo) collation for Chinese; improved data for
CompactDecimalFormat & RBNF
* Time zone data: 2012h
* Ordinal-number support in MessageFormat & PluralRules
* Deprecate setLocale(locale) in PluralFormat
* Dictionary-based break iterators (word segmentation)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 11 21:35:12 UTC 2012 - jengelh@inai.de Wed Jul 11 21:35:12 UTC 2012 - jengelh@inai.de

111
icu.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package icu # spec file for package icu
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,20 +17,21 @@
Name: icu Name: icu
%define lname libicu49 %define lname libicu50
Version: 49.1 Version: 50.1.2
Release: 0 Release: 0
%define aversion 50_1_2
Summary: International Components for Unicode Summary: International Components for Unicode
License: SUSE-XFree86-1.0 License: X11
Group: System/Libraries Group: System/Libraries
Url: http://ibm.com/software/globalization/icu Url: http://ibm.com/software/globalization/icu
Source0: icu4c-49_1-src.tgz Source0: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-src.tgz
Source1: icu4c-49_1-docs.zip Source1: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-docs.zip
# PATCH-FIX-UPSTREAM icu-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808 # PATCH-FIX-UPSTREAM icu-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808
Patch1: icu-rpmlint.diff Patch1: icu-rpmlint.diff
# PATCH-FIX-OPENSUSE icu-remove-datetime.patch vuntz@novell.com -- Do not put date/time in icu-config (needed for build-compare) # PATCH-FIX-OPENSUSE icu-remove-datetime.patch vuntz@novell.com -- Do not put date/time in icu-config (needed for build-compare)
Patch99: icu-remove-datetime.patch Patch99: icu-remove-datetime.patch
BuildRequires: automake #BuildRequires: automake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: unzip BuildRequires: unzip
@ -53,6 +54,8 @@ contain any of the data files needed at runtime and present in the icu
and icu-locales packages. and icu-locales packages.
%package -n %lname %package -n %lname
# Splitting this package is of no significant benefit:
# icudata (largest part) is always needed.
Summary: International Components for Unicode (development files) Summary: International Components for Unicode (development files)
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
# bug437293 # bug437293
@ -79,7 +82,7 @@ Group: Development/Libraries/C and C++
Obsoletes: libicu-devel-64bit Obsoletes: libicu-devel-64bit
%endif %endif
# #
Requires: %lname = %{version} Requires: %lname = %version
%description -n libicu-devel %description -n libicu-devel
ICU is a C++ and C library that provides robust and full-featured ICU is a C++ and C library that provides robust and full-featured
@ -96,7 +99,7 @@ Unicode support. This package contains the html documentation.
%package data %package data
Summary: International Components for Unicode (Sources for the Data in ICU) Summary: International Components for Unicode (Sources for the Data in ICU)
Group: System/Libraries Group: System/Libraries
Requires: %lname >= %{version} Requires: %lname >= %version
%description data %description data
ICU is a C++ and C library that provides robust and full-featured ICU is a C++ and C library that provides robust and full-featured
@ -113,36 +116,36 @@ the "%lname" package.
%setup -q -n icu %setup -q -n icu
mkdir html mkdir html
pushd html pushd html
unzip %{SOURCE1} unzip -qq %{S:1}
popd popd
%patch1 -p1 %patch1 -p1
%patch99 -p1 %patch99 -p1
%build %build
cd source cd source
export CFLAGS="%{optflags}" export CXXFLAGS="%optflags -DICU_DATA_DIR=\\\"/usr/share/icu/%version/\\\""
export CXXFLAGS="%{optflags} -DICU_DATA_DIR=\\\"/usr/share/icu/%{version}/\\\"" export CFLAGS="$CXXFLAGS"
%configure --disable-static --with-pic\ %configure --disable-static \
--enable-shared \ --enable-shared \
--without-samples --disable-samples
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
find . -name CVS -type d -exec rm -Rf "{}" "+" find . -name CVS -type d -exec rm -Rf "{}" "+"
cd source cd source
%make_install make install DESTDIR="%buildroot";
# to extract debug info # to extract debug info
chmod a+rx %{buildroot}%{_libdir}/*.so.* chmod a+rx "%buildroot/%_libdir"/*.so.*
# install uncompiled source data: # install uncompiled source data:
mkdir -p %{buildroot}%{_datadir}/icu/%{version}/unidata mkdir -p "%buildroot/%_datadir/icu/%version/unidata"
install -m 644 data/unidata/*.txt %{buildroot}/%{_datadir}/icu/%{version}/unidata install -m 644 data/unidata/*.txt "%buildroot/%_datadir/icu/%version/unidata"
ln -s unidata/UnicodeData.txt %{buildroot}/%{_datadir}/icu/%{version}/ ln -s unidata/UnicodeData.txt "%buildroot/%_datadir/icu/%version/"
rm %{buildroot}/%{_datadir}/icu/%{version}/license.html rm "%buildroot/%_datadir/icu/%version/license.html"
rm %{buildroot}/%{_datadir}/icu/%{version}/install-sh rm "%buildroot/%_datadir/icu/%version/install-sh"
%check %check
cd source cd source
@ -157,7 +160,7 @@ make check
# the (main) package in this case # the (main) package in this case
%post %post
if test -d "%_libdir/icu"; then if test -d "%_libdir/icu"; then
current=$(cd %_libdir/icu; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | current=$(cd "%_libdir/icu"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' |
sort -V | tail -n1); sort -V | tail -n1);
if test -n "$current"; then if test -n "$current"; then
rm -f "%_libdir/icu/current"; rm -f "%_libdir/icu/current";
@ -167,7 +170,7 @@ fi;
%postun %postun
if test -d "%_libdir/icu"; then if test -d "%_libdir/icu"; then
current=$(cd %_libdir/icu; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | current=$(cd "%_libdir/icu"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' |
sort -V | tail -n1); sort -V | tail -n1);
if test -n "$current"; then if test -n "$current"; then
rm -f "%_libdir/icu/current"; rm -f "%_libdir/icu/current";
@ -180,51 +183,47 @@ fi;
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%files %files
%defattr(-, root, root) %defattr(-,root,root)
%doc license.html readme.html %doc license.html readme.html
%dir %{_libdir}/icu/ %dir %_libdir/icu
%dir %{_libdir}/icu/%{version} %dir %_libdir/icu/%version
%{_libdir}/icu/current %_libdir/icu/current
%{_bindir}/derb %_bindir/derb
%{_bindir}/genbrk %_bindir/gen*
%{_bindir}/gencfu %_bindir/icuinfo
%{_bindir}/gencnval %_bindir/makeconv
%{_bindir}/genrb %_bindir/pkgdata
%{_bindir}/genctd %_bindir/uconv
%{_bindir}/icuinfo %_sbindir/*
%{_bindir}/makeconv %_mandir/*/*
%{_bindir}/pkgdata
%{_bindir}/uconv
%{_sbindir}/*
%{_mandir}/*/*
%files -n %lname %files -n %lname
%defattr(-, root, root) %defattr(-, root, root)
%attr (755, root, root) %{_libdir}/lib*.so.* %_libdir/libicu*.so.*
%files -n libicu-devel %files -n libicu-devel
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/lib*.so %_libdir/libicu*.so
%{_includedir}/unicode/ %_includedir/unicode/
%{_includedir}/layout/ %_includedir/layout/
%{_libdir}/icu/%{version}/Makefile.inc %_libdir/icu/%version/Makefile.inc
%{_libdir}/icu/%{version}/pkgdata.inc %_libdir/icu/%version/pkgdata.inc
%{_libdir}/icu/Makefile.inc %_libdir/icu/Makefile.inc
%{_libdir}/icu/pkgdata.inc %_libdir/icu/pkgdata.inc
%{_libdir}/pkgconfig/*.pc %_libdir/pkgconfig/*.pc
%{_bindir}/icu-config %_bindir/icu-config
%dir %{_datadir}/icu %dir %_datadir/icu
%dir %{_datadir}/icu/%{version} %dir %_datadir/icu/%version
%{_datadir}/icu/%{version}/mkinstalldirs %_datadir/icu/%version/mkinstalldirs
%{_datadir}/icu/%{version}/config/ %_datadir/icu/%version/config/
%files -n libicu-doc %files -n libicu-doc
%defattr(-, root, root) %defattr(-,root,root)
%doc html/ %doc html/
%files data %files data
%defattr(-, root, root) %defattr(-, root, root)
%{_datadir}/icu/%{version}/unidata/ %_datadir/icu/%version/unidata/
%{_datadir}/icu/%{version}/UnicodeData.txt %_datadir/icu/%version/UnicodeData.txt
%changelog %changelog

View File

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

View File

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

3
icu4c-50_1_2-docs.zip Normal file
View File

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

3
icu4c-50_1_2-src.tgz Normal file
View File

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