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