Accepting request 175218 from X11:common:Factory
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/175218 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/icu?expand=0&rev=38
This commit is contained in:
commit
823112d1fd
@ -1,4 +1,4 @@
|
||||
libicu50
|
||||
libicu51
|
||||
libicu-devel
|
||||
requires -libicu-<targettype>
|
||||
requires "libicu50-<targettype> = <version>"
|
||||
requires "libicu51-<targettype> = <version>"
|
||||
|
13
download.sh
Normal file
13
download.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
ver="51.1"
|
||||
name="icu4c-51_1-docs.zip"
|
||||
wget -c "http://download.icu-project.org/files/icu4c/$ver/$name"
|
||||
rm -Rf html
|
||||
mkdir html
|
||||
pushd html
|
||||
unzip "../$name"
|
||||
popd
|
||||
tar --use=xz -cvf "${name%.zip}.tar.xz" html
|
||||
rm "$name"
|
||||
rm -Rf html
|
22
icu.changes
22
icu.changes
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 6 07:51:07 UTC 2013 - jengelh@inai.de
|
||||
|
||||
- Update RPM group, description, URL
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 26 15:05:41 UTC 2013 - jengelh@inai.de
|
||||
|
||||
- Update to new upstream release 51
|
||||
* Collation tailorings put native script first;
|
||||
non-Gregorian calendar formats are more consistent;
|
||||
* Date format/parse now supports CLDR short weekday names
|
||||
* Support DisplayContext for date formatting, locale display names
|
||||
* Support new timezone pattern characters in LDML spec
|
||||
* Support for “dangi” Korean luni-solar calendar
|
||||
* Add CompactDecimalFormat and TerritoryContainment APIs
|
||||
* ICU50 regression fix: Affixes set with e.g.
|
||||
DecimalFormat::setPositivePrefix were ignored for parse
|
||||
* ICU50 regression fix: UNUM_PARSE_INT_ONLY no longer handled
|
||||
grouping separator
|
||||
- Recompress to xz to save space
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 25 09:26:17 UTC 2013 - cfarrell@suse.com
|
||||
|
||||
|
82
icu.spec
82
icu.spec
@ -17,24 +17,27 @@
|
||||
|
||||
|
||||
Name: icu
|
||||
%define lname libicu50
|
||||
Version: 50.1.2
|
||||
%define lname libicu51
|
||||
Version: 51.1
|
||||
Release: 0
|
||||
%define aversion 50_1_2
|
||||
%define aversion 51_1
|
||||
Summary: International Components for Unicode
|
||||
License: X11
|
||||
Group: System/Libraries
|
||||
Url: http://ibm.com/software/globalization/icu
|
||||
Source0: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-src.tgz
|
||||
Source1: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-docs.zip
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://icu-project.org/
|
||||
|
||||
#DL-URL: http://download.icu-project.org/files/icu4c/%version/icu4c-%aversion-src.tgz
|
||||
Source: icu4c-%aversion-src.tar.xz
|
||||
Source2: icu4c-%aversion-docs.tar.xz
|
||||
Source3: download.sh
|
||||
# PATCH-FIX-UPSTREAM icu-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808
|
||||
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)
|
||||
Patch99: icu-remove-datetime.patch
|
||||
#BuildRequires: automake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: unzip
|
||||
BuildRequires: xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -46,12 +49,7 @@ catalogs and resources, message formatting, normalization, number and
|
||||
currency formatting, time zone support, transliteration, and word,
|
||||
line, and sentence breaking, etc.
|
||||
|
||||
This package contains the Unicode character database and derived
|
||||
properties along with converters and time zone data.
|
||||
|
||||
This package contains the runtime libraries for ICU. It does not
|
||||
contain any of the data files needed at runtime and present in the icu
|
||||
and icu-locales packages.
|
||||
This subpackage contains the runtime programs for interacting with ICU.
|
||||
|
||||
%package -n %lname
|
||||
# Splitting this package is of no significant benefit:
|
||||
@ -71,8 +69,7 @@ Obsoletes: libicu < %version-%release
|
||||
%description -n %lname
|
||||
ICU is a set of C and C++ libraries that provides robust and
|
||||
full-featured Unicode support. This package contains the runtime
|
||||
libraries for ICU. It does not contain any of the data files needed at
|
||||
runtime and present in the `icu' and `icu-locales` packages.
|
||||
libraries for ICU which include precompiled locale data.
|
||||
|
||||
%package -n libicu-devel
|
||||
Summary: International Components for Unicode (development files)
|
||||
@ -113,11 +110,7 @@ This package contains uncompiled source data. Precompiled data is in
|
||||
the "%lname" package.
|
||||
|
||||
%prep
|
||||
%setup -q -n icu
|
||||
mkdir html
|
||||
pushd html
|
||||
unzip -qq %{S:1}
|
||||
popd
|
||||
%setup -qn icu -a2
|
||||
%patch1 -p1
|
||||
%patch99 -p1
|
||||
|
||||
@ -131,21 +124,28 @@ export CFLAGS="$CXXFLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
mkdir -p "$b/%_docdir/%name"
|
||||
cp -a html "$b/%_docdir/%name/"
|
||||
cp -a license.html readme.html "$b/%_docdir/%name/"
|
||||
|
||||
find . -name CVS -type d -exec rm -Rf "{}" "+"
|
||||
cd source
|
||||
|
||||
make install DESTDIR="%buildroot";
|
||||
make install DESTDIR="$b";
|
||||
|
||||
# to extract debug info
|
||||
chmod a+rx "%buildroot/%_libdir"/*.so.*
|
||||
# /usr/lib/rpm/elfdeps requires +x bit and not all had it at one point
|
||||
chmod a+rx "$b/%_libdir"/lib*.so.*
|
||||
|
||||
# install uncompiled source data:
|
||||
mkdir -p "%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/"
|
||||
mkdir -p "$b/%_datadir/icu/%version/unidata"
|
||||
install -m 644 data/unidata/*.txt "$b/%_datadir/icu/%version/unidata"
|
||||
ln -s unidata/UnicodeData.txt "$b/%_datadir/icu/%version/"
|
||||
|
||||
rm "%buildroot/%_datadir/icu/%version/license.html"
|
||||
rm "%buildroot/%_datadir/icu/%version/install-sh"
|
||||
rm "$b/%_datadir/icu/%version/license.html"
|
||||
rm "$b/%_datadir/icu/%version/install-sh"
|
||||
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%check
|
||||
cd source
|
||||
@ -160,7 +160,7 @@ make check
|
||||
# the (main) package in this case
|
||||
%post
|
||||
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);
|
||||
if test -n "$current"; then
|
||||
rm -f "%_libdir/icu/current";
|
||||
@ -170,7 +170,7 @@ fi;
|
||||
|
||||
%postun
|
||||
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);
|
||||
if test -n "$current"; then
|
||||
rm -f "%_libdir/icu/current";
|
||||
@ -178,13 +178,11 @@ if test -d "%_libdir/icu"; then
|
||||
fi;
|
||||
fi;
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc license.html readme.html
|
||||
%dir %_libdir/icu
|
||||
%dir %_libdir/icu/%version
|
||||
%_libdir/icu/current
|
||||
@ -195,7 +193,10 @@ fi;
|
||||
%_bindir/pkgdata
|
||||
%_bindir/uconv
|
||||
%_sbindir/*
|
||||
%_mandir/*/*
|
||||
%_mandir/man*/*
|
||||
%dir %_docdir/%name/
|
||||
%_docdir/%name/license.html
|
||||
%_docdir/%name/readme.html
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-, root, root)
|
||||
@ -210,16 +211,17 @@ fi;
|
||||
%_libdir/icu/%version/pkgdata.inc
|
||||
%_libdir/icu/Makefile.inc
|
||||
%_libdir/icu/pkgdata.inc
|
||||
%_libdir/pkgconfig/*.pc
|
||||
%_libdir/pkgconfig/icu-*.pc
|
||||
%_bindir/icu-config
|
||||
%dir %_datadir/icu
|
||||
%dir %_datadir/icu/%version
|
||||
%dir %_datadir/icu/
|
||||
%dir %_datadir/icu/%version/
|
||||
%_datadir/icu/%version/mkinstalldirs
|
||||
%_datadir/icu/%version/config/
|
||||
|
||||
%files -n libicu-doc
|
||||
%defattr(-,root,root)
|
||||
%doc html/
|
||||
%dir %_docdir/%name/
|
||||
%_docdir/%name/html/
|
||||
|
||||
%files data
|
||||
%defattr(-, root, root)
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a2c78d4ee41a659eca1c2dad6cddd03f6ab36d35b332960193647e0ff94964d
|
||||
size 6134640
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cb68067dcc60d682f8e037bf0961bdd5169cb4652ef8aa136e893780047dafd3
|
||||
size 21189361
|
3
icu4c-51_1-docs.tar.xz
Normal file
3
icu4c-51_1-docs.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c0a57d4a10421e9ed24aed657bd430174986b85fe0e4d6df9068eaed184e7102
|
||||
size 2587952
|
3
icu4c-51_1-src.tar.xz
Normal file
3
icu4c-51_1-src.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:20ac1bb25a1b4c214bd551d0bd00801952bbba2ad3b01dd1392ebcc72a07f435
|
||||
size 11994208
|
Loading…
Reference in New Issue
Block a user