%define run_tests 0 %if %{run_tests} # check is defined off at .rpmmacros file. %define check %%check %endif Name: icu Version: 58.2 Release: 1 Summary: International Components for Unicode Group: System/Libraries License: ICU and Unicode-TOU and BSD-2.0 URL: http://www.icu-project.org/ Source0: %{name}-%{version}.tar.gz Source1001: icu.manifest BuildRequires: doxygen BuildRequires: autoconf %description Tools and utilities for developing with icu. %package -n libicu Summary: International Components for Unicode - libraries %description -n libicu The International Components for Unicode (ICU) libraries provide robust and full-featured Unicode services on a wide variety of platforms. ICU supports the most current version of the Unicode standard, and they provide support for supplementary Unicode characters (needed for GB 18030 repertoire support). As computing environments become more heterogeneous, software portability becomes more important. ICU lets you produce the same results across all the various platforms you support, without sacrificing performance. It offers great flexibility to extend and customize the supplied services. %package -n libicu-devel Summary: Development files for International Components for Unicode Requires: libicu = %{version}-%{release} Requires: pkgconfig %description -n libicu-devel Includes and definitions for developing with icu. %prep %setup -q -n %{name} cp %{SOURCE1001} . %build export CFLAGS="$CFLAGS -D_TIZEN_FEATURE_" export CXXFLAGS="$CXXFLAGS -D_TIZEN_FEATURE_" cd source %configure --enable-static=no \ --enable-renaming=no \ --enable-shared \ --enable-plugins \ --enable-samples=no make %{?_smp_mflags} %check %if %{run_tests} pushd source %__make check || exit 0 popd %endif %install cd source %make_install # bugs of rpmdeps chmod +x %{buildroot}/%{_libdir}/lib*.so.* %remove_docs %post -n libicu -p /sbin/ldconfig %postun -n libicu -p /sbin/ldconfig %files %manifest %{name}.manifest %license LICENSE %files -n libicu %manifest %{name}.manifest %license LICENSE %{_libdir}/*.so* %{_bindir}/derb %{_bindir}/genbrk %{_bindir}/gencfu %{_bindir}/gencnval %{_bindir}/gendict %{_bindir}/genrb %{_bindir}/makeconv %{_bindir}/pkgdata %{_bindir}/uconv %{_bindir}/icuinfo %{_bindir}/icu-config %{_sbindir}/* %dir %{_datadir}/icu/%{version} %{_datadir}/icu/%{version}/config/mh-linux %{_datadir}/icu/%{version}/install-sh %{_datadir}/icu/%{version}/LICENSE %{_datadir}/icu/%{version}/mkinstalldirs %files -n libicu-devel %manifest %{name}.manifest %license LICENSE %{_includedir}/unicode %{_libdir}/*.so %{_libdir}/pkgconfig/icu-*.pc %{_libdir}/%{name}