SHA256
1
0
forked from pool/icu
Jan Engelhardt 2013-03-27 00:04:24 +00:00 committed by Git OBS Bridge
parent a4b972c8a3
commit d0a3cde39d
7 changed files with 67 additions and 29 deletions

13
download.sh Normal file
View 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

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
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 Fri Jan 25 09:26:17 UTC 2013 - cfarrell@suse.com

View File

@ -17,21 +17,24 @@
Name: icu Name: icu
%define lname libicu50 %define lname libicu51
Version: 50.1.2 Version: 51.1
Release: 0 Release: 0
%define aversion 50_1_2 %define aversion 51_1
Summary: International Components for Unicode Summary: International Components for Unicode
License: X11 License: X11
Group: System/Libraries Group: System/Libraries
Url: http://ibm.com/software/globalization/icu 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 #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 # 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: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: unzip BuildRequires: unzip
@ -113,11 +116,7 @@ This package contains uncompiled source data. Precompiled data is in
the "%lname" package. the "%lname" package.
%prep %prep
%setup -q -n icu %setup -qn icu -a2
mkdir html
pushd html
unzip -qq %{S:1}
popd
%patch1 -p1 %patch1 -p1
%patch99 -p1 %patch99 -p1
@ -131,21 +130,28 @@ export CFLAGS="$CXXFLAGS"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %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 "{}" "+" find . -name CVS -type d -exec rm -Rf "{}" "+"
cd source cd source
make install DESTDIR="%buildroot"; make install DESTDIR="$b";
# to extract debug info # /usr/lib/rpm/elfdeps requires +x bit
chmod a+rx "%buildroot/%_libdir"/*.so.* chmod a+rx "$b/%_libdir"/*.so.*
# install uncompiled source data: # install uncompiled source data:
mkdir -p "%buildroot/%_datadir/icu/%version/unidata" mkdir -p "$b/%_datadir/icu/%version/unidata"
install -m 644 data/unidata/*.txt "%buildroot/%_datadir/icu/%version/unidata" install -m 644 data/unidata/*.txt "$b/%_datadir/icu/%version/unidata"
ln -s unidata/UnicodeData.txt "%buildroot/%_datadir/icu/%version/" ln -s unidata/UnicodeData.txt "$b/%_datadir/icu/%version/"
rm "%buildroot/%_datadir/icu/%version/license.html" rm "$b/%_datadir/icu/%version/license.html"
rm "%buildroot/%_datadir/icu/%version/install-sh" rm "$b/%_datadir/icu/%version/install-sh"
%fdupes %buildroot/%_prefix
%check %check
cd source cd source
@ -178,13 +184,11 @@ if test -d "%_libdir/icu"; then
fi; fi;
fi; fi;
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%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
%dir %_libdir/icu %dir %_libdir/icu
%dir %_libdir/icu/%version %dir %_libdir/icu/%version
%_libdir/icu/current %_libdir/icu/current
@ -196,6 +200,9 @@ fi;
%_bindir/uconv %_bindir/uconv
%_sbindir/* %_sbindir/*
%_mandir/*/* %_mandir/*/*
%dir %_docdir/%name
%_docdir/%name/license.html
%_docdir/%name/readme.html
%files -n %lname %files -n %lname
%defattr(-, root, root) %defattr(-, root, root)
@ -219,7 +226,8 @@ fi;
%files -n libicu-doc %files -n libicu-doc
%defattr(-,root,root) %defattr(-,root,root)
%doc html/ %dir %_docdir/%name
%_docdir/%name/html
%files data %files data
%defattr(-, root, root) %defattr(-, root, root)

View File

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

View File

@ -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
View 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
View File

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