228 lines
6.7 KiB
RPMSpec
228 lines
6.7 KiB
RPMSpec
#
|
|
# spec file for package icu
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
|
|
Name: icu
|
|
Version: 4.6.1
|
|
Release: 2
|
|
License: IBM PL
|
|
Summary: International Components for Unicode
|
|
Url: http://ibm.com/software/globalization/icu
|
|
Group: System/Libraries
|
|
Source0: icu4c-4_6_1-src.tar.bz2
|
|
Source1: icu4c-4_6_1-docs.tar.bz2
|
|
Source3: SuSEconfig.icu
|
|
# PATCH-FIX-UPSTREAM pkgdata.diff -- http://bugs.icu-project.org/trac/ticket/6969#comment:19
|
|
Patch0: pkgdata.diff
|
|
# PATCH-FIX-UPSTREAM icu44-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808
|
|
Patch1: icu44-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: gcc-c++
|
|
BuildRequires: pkg-config
|
|
Requires: libicu = %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
full-featured Unicode and locale support. The library provides calendar
|
|
support, conversions for many character sets, language sensitive
|
|
collation, date and time formatting, support for many locales, message
|
|
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.
|
|
|
|
%package -n libicu
|
|
License: IBM PL
|
|
Summary: International Components for Unicode (development files)
|
|
Group: Development/Libraries/C and C++
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libicu-64bit
|
|
%endif
|
|
Requires: timezone
|
|
#
|
|
Provides: libicu17
|
|
Provides: libicu22
|
|
Provides: libicu26
|
|
Provides: libicu30
|
|
Provides: libicu32
|
|
Provides: libicu34
|
|
Obsoletes: icu-i18ndata
|
|
Obsoletes: libicu17
|
|
Obsoletes: libicu22
|
|
Obsoletes: libicu26
|
|
Obsoletes: libicu30
|
|
Obsoletes: libicu32
|
|
Obsoletes: libicu34
|
|
|
|
%description -n libicu
|
|
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.
|
|
|
|
%package -n libicu-devel
|
|
License: IBM PL
|
|
Summary: International Components for Unicode (development files)
|
|
Group: Development/Libraries/C and C++
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libicu-devel-64bit
|
|
%endif
|
|
#
|
|
Requires: libicu = %{version}
|
|
|
|
%description -n libicu-devel
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
Unicode support. This package contains the development files for ICU.
|
|
|
|
%package -n libicu-doc
|
|
License: IBM PL
|
|
Summary: International Components for Unicode (html documentation)
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libicu-doc
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
Unicode support. This package contains the html documentation.
|
|
|
|
%package -n icu-data
|
|
License: IBM PL
|
|
Summary: International Components for Unicode (Sources for the Data in ICU)
|
|
Group: System/Libraries
|
|
Requires: libicu >= %{version}
|
|
|
|
%description -n icu-data
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
Unicode support. This package contains the source files for the data
|
|
found in the "icu" package.
|
|
|
|
This data describes the Unicode data (normative and informative) and
|
|
also all the table-based converters provided in the ICU distribution.
|
|
|
|
This package contains uncompiled source data. Precompiled data is in
|
|
the `libicu%{version}' package.
|
|
|
|
%prep
|
|
%setup -q -n icu -a1
|
|
%patch0 -p0
|
|
%patch1 -p1
|
|
%patch99 -p1
|
|
|
|
%build
|
|
cd source
|
|
rm -f config.cache
|
|
%{?suse_update_config:%{suse_update_config -f }}
|
|
export CFLAGS="%{optflags}"
|
|
export CXXFLAGS="%{optflags}"
|
|
export CXXFLAGS="$CXXFLAGS -DICU_DATA_DIR='/usr/share/icu/4.0/'"
|
|
%configure --disable-static --with-pic\
|
|
--enable-shared \
|
|
--without-samples
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
find . -name CVS -type d | xargs rm -rf
|
|
cd source
|
|
|
|
%make_install
|
|
|
|
# to extract debug info
|
|
chmod a+rx %{buildroot}%{_libdir}/*.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 %{buildroot}/sbin/conf.d/
|
|
sed -e "s/@ICUVERSION@/%{version}/g" < ${RPM_SOURCE_DIR}/SuSEconfig.icu > ./SuSEconfig.icu
|
|
install -m 755 ./SuSEconfig.icu %{buildroot}/sbin/conf.d/
|
|
|
|
rm %{buildroot}/%{_datadir}/icu/%{version}/license.html
|
|
rm %{buildroot}/%{_datadir}/icu/%{version}/install-sh
|
|
|
|
%check
|
|
cd source
|
|
make check
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libicu -p /sbin/ldconfig
|
|
|
|
%postun -n libicu -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc license.html readme.html
|
|
%dir %{_libdir}/icu/
|
|
%dir %{_libdir}/icu/%{version}
|
|
%{_libdir}/icu/current
|
|
%{_bindir}/derb
|
|
%{_bindir}/genbrk
|
|
%{_bindir}/gencfu
|
|
%{_bindir}/gencnval
|
|
%{_bindir}/genrb
|
|
%{_bindir}/genctd
|
|
%{_bindir}/icuinfo
|
|
%{_bindir}/makeconv
|
|
%{_bindir}/pkgdata
|
|
%{_bindir}/uconv
|
|
%{_sbindir}/*
|
|
%{_mandir}/*/*
|
|
/sbin/conf.d/SuSEconfig.icu
|
|
|
|
%files -n libicu
|
|
%defattr(-, root, root)
|
|
%attr (755, root, root) %{_libdir}/lib*.so.*
|
|
|
|
%files -n libicu-devel
|
|
%defattr(-, root, root)
|
|
%{_libdir}/lib*.so
|
|
%{_includedir}/unicode/
|
|
%{_includedir}/layout/
|
|
%{_libdir}/icu/%{version}/Makefile.inc
|
|
%{_libdir}/icu/%{version}/pkgdata.inc
|
|
%{_libdir}/icu/Makefile.inc
|
|
%{_libdir}/icu/pkgdata.inc
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_bindir}/icu-config
|
|
%dir %{_datadir}/icu
|
|
%dir %{_datadir}/icu/%{version}
|
|
%{_datadir}/icu/%{version}/mkinstalldirs
|
|
%{_datadir}/icu/%{version}/config/
|
|
|
|
%files -n libicu-doc
|
|
%defattr(-, root, root)
|
|
%doc html/
|
|
|
|
%files -n icu-data
|
|
%defattr(-, root, root)
|
|
%{_datadir}/icu/%{version}/unidata/
|
|
%{_datadir}/icu/%{version}/UnicodeData.txt
|
|
|
|
%changelog
|