]>
Commit | Line | Data |
---|---|---|
2be58cbe | 1 | %define ver %(echo %{version} | tr . _) |
6a26a678 | 2 | Summary: International Components for Unicode |
a9679d76 | 3 | Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu |
6a26a678 | 4 | Name: icu |
430c90c8 | 5 | Version: 4.2.1 |
8597e027 | 6 | Release: 3 |
ff4ffa8b | 7 | License: MIT-like |
6a26a678 | 8 | Group: Libraries |
2be58cbe | 9 | Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{ver}-src.tgz |
430c90c8 | 10 | # Source0-md5: e3738abd0d3ce1870dc1fd1f22bba5b1 |
2be58cbe | 11 | Patch0: pkgconfig.patch |
7bbe00a5 | 12 | Patch1: ac264-hack.patch |
2be58cbe | 13 | Source1: %{name}-config |
29be82ba | 14 | URL: http://www.icu-project.org/ |
2be58cbe | 15 | BuildRequires: autoconf |
073720db JB |
16 | BuildRequires: automake |
17 | BuildRequires: libstdc++-devel | |
2be58cbe | 18 | BuildRequires: libtool |
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) |
6a26a678 | 49 | Group: Development/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 | ||
6a26a678 | 80 | %prep |
7d3a284b | 81 | %setup -q -n %{name} |
2be58cbe | 82 | %patch0 -p1 |
7bbe00a5 | 83 | %patch1 -p1 |
6a26a678 | 84 | |
85 | %build | |
7d3a284b | 86 | cd source |
3ef20552 ER |
87 | %{__libtoolize} |
88 | %{__aclocal} | |
2be58cbe | 89 | %{__autoconf} |
ff4ffa8b | 90 | %configure \ |
60ef1664 | 91 | --sbindir=%{_bindir} \ |
073720db | 92 | --disable-samples |
7d3a284b | 93 | |
430c90c8 | 94 | %{__make} |
6a26a678 | 95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
6a26a678 | 98 | |
073720db | 99 | %{__make} -C source install \ |
6a26a678 | 100 | DESTDIR=$RPM_BUILD_ROOT |
101 | ||
2be58cbe ER |
102 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-config |
103 | sed -i 's/\$(THREADSCXXFLAGS)//' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/icu.pc | |
104 | sed -i 's/\$(THREADSCPPFLAGS)/-D_REENTRANT/' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/icu.pc | |
105 | ||
0f4824f4 JB |
106 | # help rpm to generate deps |
107 | chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
108 | ||
7f0f98e4 JB |
109 | # rpm is too stupid sometimes and fails on symlinks to symlinked resources |
110 | # (reporting unresolved dependency at install time) | |
111 | ln -sf %{version}/Makefile.inc $RPM_BUILD_ROOT%{_libdir}/%{name}/Makefile.inc | |
112 | ||
1f4b227d ER |
113 | rm -f $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/license.html |
114 | ||
6a26a678 | 115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
073720db JB |
118 | %post -n libicu -p /sbin/ldconfig |
119 | %postun -n libicu -p /sbin/ldconfig | |
120 | ||
6a26a678 | 121 | %files |
122 | %defattr(644,root,root,755) | |
7d3a284b | 123 | %doc license.html readme.html |
6a26a678 | 124 | %attr(755,root,root) %{_bindir}/* |
60ef1664 | 125 | %exclude %{_bindir}/icu-config |
7d3a284b MK |
126 | %{_mandir}/man1/* |
127 | %{_mandir}/man8/* | |
af4104d1 | 128 | %exclude %{_mandir}/man1/icu-config.1* |
6a26a678 | 129 | |
7d3a284b | 130 | %files -n libicu |
48b42393 | 131 | %defattr(644,root,root,755) |
ff4ffa8b | 132 | %attr(755,root,root) %{_libdir}/libicu*.so.*.* |
430c90c8 | 133 | %attr(755,root,root) %ghost %{_libdir}/libicu*.so.42 |
7d3a284b | 134 | |
7d3a284b | 135 | %files -n libicu-devel |
48b42393 | 136 | %defattr(644,root,root,755) |
af4104d1 | 137 | %attr(755,root,root) %{_bindir}/icu-config |
ff4ffa8b | 138 | %attr(755,root,root) %{_libdir}/libicu*.so |
2be58cbe | 139 | %{_pkgconfigdir}/icu.pc |
ff4ffa8b JB |
140 | %{_includedir}/unicode |
141 | %{_includedir}/layout | |
a325d3da | 142 | %dir %{_libdir}/%{name} |
430c90c8 | 143 | %{_libdir}/%{name}/*.inc |
a325d3da JB |
144 | %dir %{_libdir}/%{name}/current |
145 | %dir %{_libdir}/%{name}/%{version} | |
430c90c8 | 146 | %{_libdir}/%{name}/%{version}/*.inc |
a325d3da JB |
147 | %dir %{_datadir}/%{name} |
148 | %dir %{_datadir}/%{name}/%{version} | |
7d3a284b | 149 | %{_datadir}/%{name}/%{version}/config |
8de4b80e | 150 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/install-sh |
a325d3da | 151 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs |
af4104d1 | 152 | %{_mandir}/man1/icu-config.1* |