]>
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 |
5eb75bd7 | 9 | Version: 59.1 |
0e2868a5 | 10 | Release: 2 |
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 |
5eb75bd7 | 14 | # Source0-md5: 54923fa9fab5b2b83f235fb72523de37 |
0e2868a5 | 15 | Patch0: %{name}-cxx-pre11.patch |
29be82ba | 16 | URL: http://www.icu-project.org/ |
c888482a | 17 | BuildRequires: autoconf >= 2.69 |
073720db | 18 | BuildRequires: libstdc++-devel |
f99b930f | 19 | Requires: libicu = %{version}-%{release} |
6a26a678 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | ICU is a set of C and C++ libraries that provides robust and | |
24 | full-featured Unicode and locale support. The library provides | |
25 | calendar support, conversions for many character sets, language | |
26 | sensitive collation, date and time formatting, support for many | |
27 | locales, message catalogs and resources, message formatting, | |
28 | normalization, number and currency formatting, time zones support, | |
29 | transliteration, word, line and sentence breaking, etc. | |
30 | ||
31 | This package contains the Unicode character database and derived | |
32 | properties, along with converters and time zones data. | |
33 | ||
eb45a078 JR |
34 | %description -l pl.UTF-8 |
35 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
36 | obsługę Unikodu i lokalizacji. Biblioteka dostarcza obsługę | |
37 | kalendarza, konwersje dla wielu zestawów znaków, sortowanie zależne od | |
38 | języka, formatowanie daty i czasu, wsparcie dla wielu lokalizacji, | |
39 | katalogów komunikatów i zasobów, formatowanie komunikatów, | |
40 | normalizację, formatowanie liczb i walut, obsługę stref czasowych, | |
41 | transliterację, łamanie słów, linii i zdań itp. | |
f99b930f | 42 | |
eb45a078 | 43 | Ten pakiet zawiera bazę znaków unikodowych i pochodne własności wraz z |
25330473 | 44 | konwerterami i danymi stref czasowych. |
f99b930f JB |
45 | |
46 | %package -n libicu | |
6a26a678 | 47 | Summary: International Components for Unicode (libraries) |
a9679d76 | 48 | Summary(pl.UTF-8): Międzynarodowe Komponenty dla Unikodu (biblioteki) |
5b19d04b | 49 | Group: Libraries |
f99b930f | 50 | Obsoletes: libicu30 |
6a26a678 | 51 | |
f99b930f | 52 | %description -n libicu |
6a26a678 | 53 | ICU is a set of C and C++ libraries that provides robust and |
54 | full-featured Unicode support. This package contains the runtime | |
55 | libraries for ICU. It does not contain any of the data files needed at | |
5e7cb58a | 56 | runtime and present in the `icu' package. |
6a26a678 | 57 | |
eb45a078 JR |
58 | %description -n libicu -l pl.UTF-8 |
59 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
60 | obsługę Unikodu i lokalizacji. Ten pakiet zawiera biblioteki | |
61 | uruchomieniowe ICU. Nie zawiera żadnych plików z danymi potrzebnymi w | |
5e7cb58a | 62 | czasie działania i obecnymi w pakietach "icu". |
f99b930f | 63 | |
6a26a678 | 64 | %package -n libicu-devel |
65 | Summary: International Components for Unicode (development files) | |
a9679d76 | 66 | Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (pliki dla programistów) |
6a26a678 | 67 | Group: Development/Libraries |
f99b930f | 68 | Requires: libicu = %{version}-%{release} |
6a26a678 | 69 | |
70 | %description -n libicu-devel | |
71 | ICU is a set of C and C++ libraries that provides robust and | |
72 | full-featured Unicode support. This package contains the development | |
73 | files for ICU. | |
74 | ||
eb45a078 JR |
75 | %description -n libicu-devel -l pl.UTF-8 |
76 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
77 | obsługę Unikodu i lokalizacji. Ten pakiet zawiera pliki | |
f99b930f JB |
78 | programistyczne ICU. |
79 | ||
a59b4117 MM |
80 | %package -n libicu-static |
81 | Summary: International Components for Unicode (static libraries) | |
82 | Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (biblioteki statyczne) | |
83 | Group: Development/Libraries | |
84 | Requires: libicu-devel = %{version}-%{release} | |
85 | ||
86 | %description -n libicu-static | |
87 | ICU is a set of C and C++ libraries that provides robust and | |
88 | full-featured Unicode support. This package contains the static | |
89 | libraries for ICU. | |
90 | ||
91 | %description -n libicu-static -l pl.UTF-8 | |
92 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
93 | obsługę Unikodu i lokalizacji. Ten pakiet zawiera statyczne | |
94 | biblioteki programistyczne ICU. | |
95 | ||
6a26a678 | 96 | %prep |
7d3a284b | 97 | %setup -q -n %{name} |
0e2868a5 | 98 | %patch0 -p1 |
6a26a678 | 99 | |
100 | %build | |
7d3a284b | 101 | cd source |
2be58cbe | 102 | %{__autoconf} |
ff4ffa8b | 103 | %configure \ |
60ef1664 | 104 | --sbindir=%{_bindir} \ |
6c6806e6 | 105 | --with-data-packaging=library \ |
84b38548 | 106 | %{?with_static_libs:--enable-static} \ |
073720db | 107 | --disable-samples |
7d3a284b | 108 | |
fc0ad54a JB |
109 | %{__make} \ |
110 | VERBOSE=1 | |
6a26a678 | 111 | |
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
6a26a678 | 114 | |
073720db | 115 | %{__make} -C source install \ |
6a26a678 | 116 | DESTDIR=$RPM_BUILD_ROOT |
117 | ||
f95fea90 | 118 | for f in icu-i18n icu-io icu-uc ; do |
5735de1c JB |
119 | sed -i \ |
120 | -e 's/\$(THREADSCXXFLAGS)//' \ | |
121 | -e 's/\$(THREADSCFLAGS)//' \ | |
122 | -e 's/\$(THREADSCPPFLAGS)/-D_REENTRANT/' $RPM_BUILD_ROOT%{_pkgconfigdir}/${f}.pc | |
123 | done | |
2be58cbe | 124 | |
0f4824f4 JB |
125 | # help rpm to generate deps |
126 | chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
127 | ||
7f0f98e4 JB |
128 | # rpm is too stupid sometimes and fails on symlinks to symlinked resources |
129 | # (reporting unresolved dependency at install time) | |
5735de1c JB |
130 | for f in Makefile.inc pkgdata.inc ; do |
131 | ln -sf %{version}/${f} $RPM_BUILD_ROOT%{_libdir}/%{name}/${f} | |
132 | done | |
7f0f98e4 | 133 | |
4271d828 | 134 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/LICENSE |
1f4b227d | 135 | |
6a26a678 | 136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
073720db JB |
139 | %post -n libicu -p /sbin/ldconfig |
140 | %postun -n libicu -p /sbin/ldconfig | |
141 | ||
6a26a678 | 142 | %files |
143 | %defattr(644,root,root,755) | |
7d3a284b | 144 | %doc license.html readme.html |
53e9cdd2 | 145 | %attr(755,root,root) %{_bindir}/derb |
5eb75bd7 | 146 | %attr(755,root,root) %{_bindir}/escapesrc |
53e9cdd2 JB |
147 | %attr(755,root,root) %{_bindir}/gen* |
148 | %attr(755,root,root) %{_bindir}/icuinfo | |
149 | %attr(755,root,root) %{_bindir}/icupkg | |
150 | %attr(755,root,root) %{_bindir}/makeconv | |
151 | %attr(755,root,root) %{_bindir}/pkgdata | |
152 | %attr(755,root,root) %{_bindir}/uconv | |
153 | %{_mandir}/man1/derb.1* | |
154 | %{_mandir}/man1/gen*.1* | |
155 | %{_mandir}/man1/makeconv.1* | |
156 | %{_mandir}/man1/pkgdata.1* | |
157 | %{_mandir}/man1/uconv.1* | |
158 | %{_mandir}/man8/gen*.8* | |
159 | %{_mandir}/man8/icupkg.8* | |
6a26a678 | 160 | |
7d3a284b | 161 | %files -n libicu |
48b42393 | 162 | %defattr(644,root,root,755) |
ff4ffa8b | 163 | %attr(755,root,root) %{_libdir}/libicu*.so.*.* |
5eb75bd7 | 164 | %attr(755,root,root) %ghost %{_libdir}/libicu*.so.59 |
7d3a284b | 165 | |
7d3a284b | 166 | %files -n libicu-devel |
48b42393 | 167 | %defattr(644,root,root,755) |
af4104d1 | 168 | %attr(755,root,root) %{_bindir}/icu-config |
ff4ffa8b | 169 | %attr(755,root,root) %{_libdir}/libicu*.so |
5735de1c JB |
170 | %{_pkgconfigdir}/icu-i18n.pc |
171 | %{_pkgconfigdir}/icu-io.pc | |
5735de1c | 172 | %{_pkgconfigdir}/icu-uc.pc |
ff4ffa8b | 173 | %{_includedir}/unicode |
a325d3da | 174 | %dir %{_libdir}/%{name} |
430c90c8 | 175 | %{_libdir}/%{name}/*.inc |
a325d3da JB |
176 | %dir %{_libdir}/%{name}/current |
177 | %dir %{_libdir}/%{name}/%{version} | |
430c90c8 | 178 | %{_libdir}/%{name}/%{version}/*.inc |
a325d3da JB |
179 | %dir %{_datadir}/%{name} |
180 | %dir %{_datadir}/%{name}/%{version} | |
7d3a284b | 181 | %{_datadir}/%{name}/%{version}/config |
8de4b80e | 182 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/install-sh |
a325d3da | 183 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs |
af4104d1 | 184 | %{_mandir}/man1/icu-config.1* |
a59b4117 | 185 | |
84b38548 | 186 | %if %{with static_libs} |
a59b4117 MM |
187 | %files -n libicu-static |
188 | %defattr(644,root,root,755) | |
189 | %{_libdir}/libicu*.a | |
84b38548 | 190 | %endif |