]>
Commit | Line | Data |
---|---|---|
6a26a678 | 1 | Summary: International Components for Unicode |
a9679d76 | 2 | Summary(pl.UTF-8): Międzynarodowe komponenty dla unikodu |
6a26a678 | 3 | Name: icu |
29be82ba AG |
4 | Version: 3.8 |
5 | %define ver %(echo %{version} | tr . _) | |
6 | Release: 1 | |
2cf56812 | 7 | License: X License |
6a26a678 | 8 | Group: Libraries |
29be82ba AG |
9 | Source0: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{ver}-src.tgz |
10 | # Source0-md5: 67cc2650fbcae4c8e3ba5ce4dda4b072 | |
11 | URL: http://www.icu-project.org/ | |
073720db JB |
12 | BuildRequires: automake |
13 | BuildRequires: libstdc++-devel | |
f99b930f | 14 | Requires: libicu = %{version}-%{release} |
6a26a678 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | ICU is a set of C and C++ libraries that provides robust and | |
19 | full-featured Unicode and locale support. The library provides | |
20 | calendar support, conversions for many character sets, language | |
21 | sensitive collation, date and time formatting, support for many | |
22 | locales, message catalogs and resources, message formatting, | |
23 | normalization, number and currency formatting, time zones support, | |
24 | transliteration, word, line and sentence breaking, etc. | |
25 | ||
26 | This package contains the Unicode character database and derived | |
27 | properties, along with converters and time zones data. | |
28 | ||
eb45a078 JR |
29 | %description -l pl.UTF-8 |
30 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
31 | obsługę Unikodu i lokalizacji. Biblioteka dostarcza obsługę | |
32 | kalendarza, konwersje dla wielu zestawów znaków, sortowanie zależne od | |
33 | języka, formatowanie daty i czasu, wsparcie dla wielu lokalizacji, | |
34 | katalogów komunikatów i zasobów, formatowanie komunikatów, | |
35 | normalizację, formatowanie liczb i walut, obsługę stref czasowych, | |
36 | transliterację, łamanie słów, linii i zdań itp. | |
f99b930f | 37 | |
eb45a078 | 38 | Ten pakiet zawiera bazę znaków unikodowych i pochodne własności wraz z |
25330473 | 39 | konwerterami i danymi stref czasowych. |
f99b930f JB |
40 | |
41 | %package -n libicu | |
6a26a678 | 42 | Summary: International Components for Unicode (libraries) |
a9679d76 | 43 | Summary(pl.UTF-8): Międzynarodowe Komponenty dla Unikodu (biblioteki) |
6a26a678 | 44 | Group: Development/Libraries |
f99b930f | 45 | Obsoletes: libicu30 |
6a26a678 | 46 | |
f99b930f | 47 | %description -n libicu |
6a26a678 | 48 | ICU is a set of C and C++ libraries that provides robust and |
49 | full-featured Unicode support. This package contains the runtime | |
50 | libraries for ICU. It does not contain any of the data files needed at | |
51 | runtime and present in the `icu' and `icu-locales` packages. | |
52 | ||
eb45a078 JR |
53 | %description -n libicu -l pl.UTF-8 |
54 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
55 | obsługę Unikodu i lokalizacji. Ten pakiet zawiera biblioteki | |
56 | uruchomieniowe ICU. Nie zawiera żadnych plików z danymi potrzebnymi w | |
57 | czasie działania i obecnymi w pakietach "icu" i "icu-locales". | |
f99b930f | 58 | |
6a26a678 | 59 | %package -n libicu-devel |
60 | Summary: International Components for Unicode (development files) | |
a9679d76 | 61 | Summary(pl.UTF-8): Międzynarodowe komponenty dla Unikodu (pliki dla programistów) |
6a26a678 | 62 | Group: Development/Libraries |
f99b930f | 63 | Requires: libicu = %{version}-%{release} |
6a26a678 | 64 | |
65 | %description -n libicu-devel | |
66 | ICU is a set of C and C++ libraries that provides robust and | |
67 | full-featured Unicode support. This package contains the development | |
68 | files for ICU. | |
69 | ||
eb45a078 JR |
70 | %description -n libicu-devel -l pl.UTF-8 |
71 | ICU jest grupą bibliotek C i C++, które dostarczają kompletną i pełną | |
72 | obsługę Unikodu i lokalizacji. Ten pakiet zawiera pliki | |
f99b930f JB |
73 | programistyczne ICU. |
74 | ||
6a26a678 | 75 | %prep |
7d3a284b | 76 | %setup -q -n %{name} |
6a26a678 | 77 | |
78 | %build | |
7d3a284b | 79 | cd source |
073720db | 80 | cp -f /usr/share/automake/config.* . |
7d3a284b | 81 | %configure2_13 \ |
60ef1664 | 82 | --sbindir=%{_bindir} \ |
073720db | 83 | --disable-samples |
7d3a284b | 84 | |
6a26a678 | 85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
6a26a678 | 89 | |
073720db | 90 | %{__make} -C source install \ |
6a26a678 | 91 | DESTDIR=$RPM_BUILD_ROOT |
92 | ||
0f4824f4 JB |
93 | # help rpm to generate deps |
94 | chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
95 | ||
ba336b64 AM |
96 | # rpm is too stupid sometimes and fails on symlinks to symlinked resources |
97 | ln -sf %{version}/Makefile.inc $RPM_BUILD_ROOT%{_libdir}/%{name}/Makefile.inc | |
98 | ||
1f4b227d ER |
99 | rm -f $RPM_BUILD_ROOT%{_datadir}/icu/%{version}/license.html |
100 | ||
6a26a678 | 101 | %clean |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
073720db JB |
104 | %post -n libicu -p /sbin/ldconfig |
105 | %postun -n libicu -p /sbin/ldconfig | |
106 | ||
6a26a678 | 107 | %files |
108 | %defattr(644,root,root,755) | |
7d3a284b | 109 | %doc license.html readme.html |
6a26a678 | 110 | %attr(755,root,root) %{_bindir}/* |
60ef1664 | 111 | %exclude %{_bindir}/icu-config |
7d3a284b MK |
112 | %{_mandir}/man1/* |
113 | %{_mandir}/man8/* | |
af4104d1 | 114 | %exclude %{_mandir}/man1/icu-config.1* |
6a26a678 | 115 | |
7d3a284b | 116 | %files -n libicu |
48b42393 | 117 | %defattr(644,root,root,755) |
29be82ba | 118 | %attr(755,root,root) %{_libdir}/lib*.so.* |
7d3a284b | 119 | |
7d3a284b | 120 | %files -n libicu-devel |
48b42393 | 121 | %defattr(644,root,root,755) |
af4104d1 | 122 | %attr(755,root,root) %{_bindir}/icu-config |
073720db | 123 | %attr(755,root,root) %{_libdir}/lib*.so |
7d3a284b MK |
124 | %dir %{_includedir}/unicode |
125 | %dir %{_includedir}/layout | |
126 | %{_includedir}/unicode/*.h | |
127 | %{_includedir}/layout/*.h | |
a325d3da | 128 | %dir %{_libdir}/%{name} |
073720db | 129 | %{_libdir}/%{name}/Makefile.inc |
a325d3da JB |
130 | %dir %{_libdir}/%{name}/current |
131 | %dir %{_libdir}/%{name}/%{version} | |
7d3a284b | 132 | %{_libdir}/%{name}/%{version}/Makefile.inc |
a325d3da JB |
133 | %dir %{_datadir}/%{name} |
134 | %dir %{_datadir}/%{name}/%{version} | |
7d3a284b | 135 | %{_datadir}/%{name}/%{version}/config |
a325d3da | 136 | %attr(755,root,root) %{_datadir}/%{name}/%{version}/mkinstalldirs |
af4104d1 | 137 | %{_mandir}/man1/icu-config.1* |