]>
Commit | Line | Data |
---|---|---|
84b38548 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | ||
2be58cbe | 5 | %define ver %(echo %{version} | tr . _) |
6a26a678 | 6 | Summary: International Components for Unicode |
a9679d76 | 7 | Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu |
6a26a678 | 8 | Name: icu |
f95fea90 | 9 | Version: 58.2 |
4271d828 | 10 | Release: 1 |
ff4ffa8b | 11 | License: MIT-like |
6a26a678 | 12 | Group: Libraries |
2be58cbe | 13 | Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{ver}-src.tgz |
f95fea90 | 14 | # Source0-md5: fac212b32b7ec7ab007a12dff1f3aea1 |
29be82ba | 15 | URL: http://www.icu-project.org/ |
c888482a | 16 | BuildRequires: autoconf >= 2.69 |
073720db | 17 | BuildRequires: libstdc++-devel |
f99b930f | 18 | Requires: libicu = %{version}-%{release} |
6a26a678 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
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. | |
29 | ||
30 | This package contains the Unicode character database and derived | |
31 | properties, along with converters and time zones data. | |
32 | ||
eb45a078 JR |
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. | |
f99b930f | 41 | |
eb45a078 | 42 | Ten pakiet zawiera bazę znaków unikodowych i pochodne własności wraz z |
25330473 | 43 | konwerterami i danymi stref czasowych. |
f99b930f JB |
44 | |
45 | %package -n libicu | |
6a26a678 | 46 | Summary: International Components for Unicode (libraries) |
a9679d76 | 47 | Summary(pl.UTF-8): Międzynarodowe Komponenty dla Unikodu (biblioteki) |
5b19d04b | 48 | Group: Libraries |
f99b930f | 49 | Obsoletes: libicu30 |
6a26a678 | 50 | |
f99b930f | 51 | %description -n libicu |
6a26a678 | 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 | |
5e7cb58a | 55 | runtime and present in the `icu' package. |
6a26a678 | 56 | |
eb45a078 JR |
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 | |
5e7cb58a | 61 | czasie działania i obecnymi w pakietach "icu". |
f99b930f | 62 | |
6a26a678 | 63 | %package -n libicu-devel |
64 | Summary: International Components for Unicode (development files) | |
a9679d76 | 65 | Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (pliki dla programistów) |
6a26a678 | 66 | Group: Development/Libraries |
f99b930f | 67 | Requires: libicu = %{version}-%{release} |
6a26a678 | 68 | |
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 | |
72 | files for ICU. | |
73 | ||
eb45a078 JR |
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 | |
f99b930f JB |
77 | programistyczne ICU. |
78 | ||
a59b4117 MM |
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} | |
84 | ||
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 | |
88 | libraries for ICU. | |
89 | ||
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. | |
94 | ||
6a26a678 | 95 | %prep |
7d3a284b | 96 | %setup -q -n %{name} |
6a26a678 | 97 | |
98 | %build | |
7d3a284b | 99 | cd source |
2be58cbe | 100 | %{__autoconf} |
ff4ffa8b | 101 | %configure \ |
60ef1664 | 102 | --sbindir=%{_bindir} \ |
6c6806e6 | 103 | --with-data-packaging=library \ |
84b38548 | 104 | %{?with_static_libs:--enable-static} \ |
073720db | 105 | --disable-samples |
7d3a284b | 106 | |
fc0ad54a JB |
107 | %{__make} \ |
108 | VERBOSE=1 | |
6a26a678 | 109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
6a26a678 | 112 | |
073720db | 113 | %{__make} -C source install \ |
6a26a678 | 114 | DESTDIR=$RPM_BUILD_ROOT |
115 | ||
f95fea90 | 116 | for f in icu-i18n icu-io icu-uc ; do |
5735de1c JB |
117 | sed -i \ |
118 | -e 's/\$(THREADSCXXFLAGS)//' \ | |
119 | -e 's/\$(THREADSCFLAGS)//' \ | |
120 | -e 's/\$(THREADSCPPFLAGS)/-D_REENTRANT/' $RPM_BUILD_ROOT%{_pkgconfigdir}/${f}.pc | |
121 | done | |
2be58cbe | 122 | |
0f4824f4 JB |
123 | # help rpm to generate deps |
124 | chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
125 | ||
7f0f98e4 JB |
126 | # rpm is too stupid sometimes and fails on symlinks to symlinked resources |
127 | # (reporting unresolved dependency at install time) | |
5735de1c JB |
128 | for f in Makefile.inc pkgdata.inc ; do |
129 | ln -sf %{version}/${f} $RPM_BUILD_ROOT%{_libdir}/%{name}/${f} | |
130 | done | |
7f0f98e4 | 131 | |
4271d828 | 132 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/LICENSE |
1f4b227d | 133 | |
6a26a678 | 134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
073720db JB |
137 | %post -n libicu -p /sbin/ldconfig |
138 | %postun -n libicu -p /sbin/ldconfig | |
139 | ||
6a26a678 | 140 | %files |
141 | %defattr(644,root,root,755) | |
7d3a284b | 142 | %doc license.html readme.html |
53e9cdd2 JB |
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* | |
6a26a678 | 157 | |
7d3a284b | 158 | %files -n libicu |
48b42393 | 159 | %defattr(644,root,root,755) |
ff4ffa8b | 160 | %attr(755,root,root) %{_libdir}/libicu*.so.*.* |
f95fea90 | 161 | %attr(755,root,root) %ghost %{_libdir}/libicu*.so.58 |
7d3a284b | 162 | |
7d3a284b | 163 | %files -n libicu-devel |
48b42393 | 164 | %defattr(644,root,root,755) |
af4104d1 | 165 | %attr(755,root,root) %{_bindir}/icu-config |
ff4ffa8b | 166 | %attr(755,root,root) %{_libdir}/libicu*.so |
5735de1c JB |
167 | %{_pkgconfigdir}/icu-i18n.pc |
168 | %{_pkgconfigdir}/icu-io.pc | |
5735de1c | 169 | %{_pkgconfigdir}/icu-uc.pc |
ff4ffa8b | 170 | %{_includedir}/unicode |
a325d3da | 171 | %dir %{_libdir}/%{name} |
430c90c8 | 172 | %{_libdir}/%{name}/*.inc |
a325d3da JB |
173 | %dir %{_libdir}/%{name}/current |
174 | %dir %{_libdir}/%{name}/%{version} | |
430c90c8 | 175 | %{_libdir}/%{name}/%{version}/*.inc |
a325d3da JB |
176 | %dir %{_datadir}/%{name} |
177 | %dir %{_datadir}/%{name}/%{version} | |
7d3a284b | 178 | %{_datadir}/%{name}/%{version}/config |
8de4b80e | 179 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/install-sh |
a325d3da | 180 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs |
af4104d1 | 181 | %{_mandir}/man1/icu-config.1* |
a59b4117 | 182 | |
84b38548 | 183 | %if %{with static_libs} |
a59b4117 MM |
184 | %files -n libicu-static |
185 | %defattr(644,root,root,755) | |
186 | %{_libdir}/libicu*.a | |
84b38548 | 187 | %endif |