1 %define ver %(echo %{version} | tr . _)
2 Summary: International Components for Unicode
3 Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu
9 Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{ver}-src.tgz
10 # Source0-md5: bbc609fe5237202d7abf016141012a45
11 Patch0: ac264-hack.patch
12 URL: http://www.icu-project.org/
13 BuildRequires: autoconf >= 2.68
14 BuildRequires: libstdc++-devel
15 Requires: libicu = %{version}-%{release}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 ICU is a set of C and C++ libraries that provides robust and
20 full-featured Unicode and locale support. The library provides
21 calendar support, conversions for many character sets, language
22 sensitive collation, date and time formatting, support for many
23 locales, message catalogs and resources, message formatting,
24 normalization, number and currency formatting, time zones support,
25 transliteration, word, line and sentence breaking, etc.
27 This package contains the Unicode character database and derived
28 properties, along with converters and time zones data.
30 %description -l pl.UTF-8
31 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
32 obsługę Unikodu i lokalizacji. Biblioteka dostarcza obsługę
33 kalendarza, konwersje dla wielu zestawów znaków, sortowanie zależne od
34 języka, formatowanie daty i czasu, wsparcie dla wielu lokalizacji,
35 katalogów komunikatów i zasobów, formatowanie komunikatów,
36 normalizację, formatowanie liczb i walut, obsługę stref czasowych,
37 transliterację, łamanie słów, linii i zdań itp.
39 Ten pakiet zawiera bazę znaków unikodowych i pochodne własności wraz z
40 konwerterami i danymi stref czasowych.
43 Summary: International Components for Unicode (libraries)
44 Summary(pl.UTF-8): Międzynarodowe Komponenty dla Unikodu (biblioteki)
48 %description -n libicu
49 ICU is a set of C and C++ libraries that provides robust and
50 full-featured Unicode support. This package contains the runtime
51 libraries for ICU. It does not contain any of the data files needed at
52 runtime and present in the `icu' package.
54 %description -n libicu -l pl.UTF-8
55 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
56 obsługę Unikodu i lokalizacji. Ten pakiet zawiera biblioteki
57 uruchomieniowe ICU. Nie zawiera żadnych plików z danymi potrzebnymi w
58 czasie działania i obecnymi w pakietach "icu".
60 %package -n libicu-devel
61 Summary: International Components for Unicode (development files)
62 Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (pliki dla programistów)
63 Group: Development/Libraries
64 Requires: libicu = %{version}-%{release}
66 %description -n libicu-devel
67 ICU is a set of C and C++ libraries that provides robust and
68 full-featured Unicode support. This package contains the development
71 %description -n libicu-devel -l pl.UTF-8
72 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
73 obsługę Unikodu i lokalizacji. Ten pakiet zawiera pliki
84 --sbindir=%{_bindir} \
85 --with-data-packaging=library \
91 rm -rf $RPM_BUILD_ROOT
93 %{__make} -C source install \
94 DESTDIR=$RPM_BUILD_ROOT
96 for f in icu-i18n icu-io icu-le icu-lx icu-uc ; do
98 -e 's/\$(THREADSCXXFLAGS)//' \
99 -e 's/\$(THREADSCFLAGS)//' \
100 -e 's/\$(THREADSCPPFLAGS)/-D_REENTRANT/' $RPM_BUILD_ROOT%{_pkgconfigdir}/${f}.pc
103 # help rpm to generate deps
104 chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
106 # rpm is too stupid sometimes and fails on symlinks to symlinked resources
107 # (reporting unresolved dependency at install time)
108 for f in Makefile.inc pkgdata.inc ; do
109 ln -sf %{version}/${f} $RPM_BUILD_ROOT%{_libdir}/%{name}/${f}
112 %{__rm} $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/license.html
115 rm -rf $RPM_BUILD_ROOT
117 %post -n libicu -p /sbin/ldconfig
118 %postun -n libicu -p /sbin/ldconfig
121 %defattr(644,root,root,755)
122 %doc license.html readme.html
123 %attr(755,root,root) %{_bindir}/derb
124 %attr(755,root,root) %{_bindir}/gen*
125 %attr(755,root,root) %{_bindir}/icuinfo
126 %attr(755,root,root) %{_bindir}/icupkg
127 %attr(755,root,root) %{_bindir}/makeconv
128 %attr(755,root,root) %{_bindir}/pkgdata
129 %attr(755,root,root) %{_bindir}/uconv
130 %{_mandir}/man1/derb.1*
131 %{_mandir}/man1/gen*.1*
132 %{_mandir}/man1/makeconv.1*
133 %{_mandir}/man1/pkgdata.1*
134 %{_mandir}/man1/uconv.1*
135 %{_mandir}/man8/gen*.8*
136 %{_mandir}/man8/icupkg.8*
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libicu*.so.*.*
141 %attr(755,root,root) %ghost %{_libdir}/libicu*.so.49
143 %files -n libicu-devel
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_bindir}/icu-config
146 %attr(755,root,root) %{_libdir}/libicu*.so
147 %{_pkgconfigdir}/icu-i18n.pc
148 %{_pkgconfigdir}/icu-io.pc
149 %{_pkgconfigdir}/icu-le.pc
150 %{_pkgconfigdir}/icu-lx.pc
151 %{_pkgconfigdir}/icu-uc.pc
152 %{_includedir}/unicode
153 %{_includedir}/layout
154 %dir %{_libdir}/%{name}
155 %{_libdir}/%{name}/*.inc
156 %dir %{_libdir}/%{name}/current
157 %dir %{_libdir}/%{name}/%{version}
158 %{_libdir}/%{name}/%{version}/*.inc
159 %dir %{_datadir}/%{name}
160 %dir %{_datadir}/%{name}/%{version}
161 %{_datadir}/%{name}/%{version}/config
162 %attr(755,root,root) %{_datadir}/%{name}/%{version}/install-sh
163 %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs
164 %{_mandir}/man1/icu-config.1*