3 %bcond_without static_libs # don't build static libraries
5 %define ver %(echo %{version} | tr . _)
6 Summary: International Components for Unicode
7 Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu
13 Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{ver}-src.tgz
14 # Source0-md5: 976734806026a4ef8bdd17937c8898b9
15 URL: http://www.icu-project.org/
16 BuildRequires: autoconf >= 2.69
17 BuildRequires: libstdc++-devel
18 Requires: libicu = %{version}-%{release}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 ICU is a set of C and C++ libraries that provides robust and
23 full-featured Unicode and locale support. The library provides
24 calendar support, conversions for many character sets, language
25 sensitive collation, date and time formatting, support for many
26 locales, message catalogs and resources, message formatting,
27 normalization, number and currency formatting, time zones support,
28 transliteration, word, line and sentence breaking, etc.
30 This package contains the Unicode character database and derived
31 properties, along with converters and time zones data.
33 %description -l pl.UTF-8
34 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
35 obsługę Unikodu i lokalizacji. Biblioteka dostarcza obsługę
36 kalendarza, konwersje dla wielu zestawów znaków, sortowanie zależne od
37 języka, formatowanie daty i czasu, wsparcie dla wielu lokalizacji,
38 katalogów komunikatów i zasobów, formatowanie komunikatów,
39 normalizację, formatowanie liczb i walut, obsługę stref czasowych,
40 transliterację, łamanie słów, linii i zdań itp.
42 Ten pakiet zawiera bazę znaków unikodowych i pochodne własności wraz z
43 konwerterami i danymi stref czasowych.
46 Summary: International Components for Unicode (libraries)
47 Summary(pl.UTF-8): Międzynarodowe Komponenty dla Unikodu (biblioteki)
51 %description -n libicu
52 ICU is a set of C and C++ libraries that provides robust and
53 full-featured Unicode support. This package contains the runtime
54 libraries for ICU. It does not contain any of the data files needed at
55 runtime and present in the `icu' package.
57 %description -n libicu -l pl.UTF-8
58 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
59 obsługę Unikodu i lokalizacji. Ten pakiet zawiera biblioteki
60 uruchomieniowe ICU. Nie zawiera żadnych plików z danymi potrzebnymi w
61 czasie działania i obecnymi w pakietach "icu".
63 %package -n libicu-devel
64 Summary: International Components for Unicode (development files)
65 Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (pliki dla programistów)
66 Group: Development/Libraries
67 Requires: libicu = %{version}-%{release}
69 %description -n libicu-devel
70 ICU is a set of C and C++ libraries that provides robust and
71 full-featured Unicode support. This package contains the development
74 %description -n libicu-devel -l pl.UTF-8
75 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
76 obsługę Unikodu i lokalizacji. Ten pakiet zawiera pliki
79 %package -n libicu-static
80 Summary: International Components for Unicode (static libraries)
81 Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (biblioteki statyczne)
82 Group: Development/Libraries
83 Requires: libicu-devel = %{version}-%{release}
85 %description -n libicu-static
86 ICU is a set of C and C++ libraries that provides robust and
87 full-featured Unicode support. This package contains the static
90 %description -n libicu-static -l pl.UTF-8
91 ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną
92 obsługę Unikodu i lokalizacji. Ten pakiet zawiera statyczne
93 biblioteki programistyczne ICU.
102 --sbindir=%{_bindir} \
103 --with-data-packaging=library \
104 %{?with_static_libs:--enable-static} \
111 rm -rf $RPM_BUILD_ROOT
113 %{__make} -C source install \
114 DESTDIR=$RPM_BUILD_ROOT
116 for f in icu-i18n icu-io icu-le icu-lx icu-uc ; do
118 -e 's/\$(THREADSCXXFLAGS)//' \
119 -e 's/\$(THREADSCFLAGS)//' \
120 -e 's/\$(THREADSCPPFLAGS)/-D_REENTRANT/' $RPM_BUILD_ROOT%{_pkgconfigdir}/${f}.pc
123 # help rpm to generate deps
124 chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
126 # rpm is too stupid sometimes and fails on symlinks to symlinked resources
127 # (reporting unresolved dependency at install time)
128 for f in Makefile.inc pkgdata.inc ; do
129 ln -sf %{version}/${f} $RPM_BUILD_ROOT%{_libdir}/%{name}/${f}
132 %{__rm} $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/LICENSE
135 rm -rf $RPM_BUILD_ROOT
137 %post -n libicu -p /sbin/ldconfig
138 %postun -n libicu -p /sbin/ldconfig
141 %defattr(644,root,root,755)
142 %doc license.html readme.html
143 %attr(755,root,root) %{_bindir}/derb
144 %attr(755,root,root) %{_bindir}/gen*
145 %attr(755,root,root) %{_bindir}/icuinfo
146 %attr(755,root,root) %{_bindir}/icupkg
147 %attr(755,root,root) %{_bindir}/makeconv
148 %attr(755,root,root) %{_bindir}/pkgdata
149 %attr(755,root,root) %{_bindir}/uconv
150 %{_mandir}/man1/derb.1*
151 %{_mandir}/man1/gen*.1*
152 %{_mandir}/man1/makeconv.1*
153 %{_mandir}/man1/pkgdata.1*
154 %{_mandir}/man1/uconv.1*
155 %{_mandir}/man8/gen*.8*
156 %{_mandir}/man8/icupkg.8*
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/libicu*.so.*.*
161 %attr(755,root,root) %ghost %{_libdir}/libicu*.so.57
163 %files -n libicu-devel
164 %defattr(644,root,root,755)
165 %attr(755,root,root) %{_bindir}/icu-config
166 %attr(755,root,root) %{_libdir}/libicu*.so
167 %{_pkgconfigdir}/icu-i18n.pc
168 %{_pkgconfigdir}/icu-io.pc
169 %{_pkgconfigdir}/icu-le.pc
170 %{_pkgconfigdir}/icu-lx.pc
171 %{_pkgconfigdir}/icu-uc.pc
172 %{_includedir}/unicode
173 %{_includedir}/layout
174 %dir %{_libdir}/%{name}
175 %{_libdir}/%{name}/*.inc
176 %dir %{_libdir}/%{name}/current
177 %dir %{_libdir}/%{name}/%{version}
178 %{_libdir}/%{name}/%{version}/*.inc
179 %dir %{_datadir}/%{name}
180 %dir %{_datadir}/%{name}/%{version}
181 %{_datadir}/%{name}/%{version}/config
182 %attr(755,root,root) %{_datadir}/%{name}/%{version}/install-sh
183 %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs
184 %{_mandir}/man1/icu-config.1*
186 %if %{with static_libs}
187 %files -n libicu-static
188 %defattr(644,root,root,755)