]> git.pld-linux.org Git - packages/icu-le-hb.git/blob - icu-le-hb.spec
upstream patch for fixing build with icu >= 68
[packages/icu-le-hb.git] / icu-le-hb.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        ICU Layout Engine API on top of HarfBuzz shaping library
6 Summary(pl.UTF-8):      API ICU Layout Engine oparte na bibliotece tworzenia kształtów HarfBuzz
7 Name:           icu-le-hb
8 Version:        1.0.3
9 Release:        7
10 License:        ICU (MIT-like)
11 Group:          Libraries
12 Source0:        http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.gz
13 # Source0-md5:  e9b6ad05e19597bb90d1aa087c149b23
14 Patch0:         %{name}-link.patch
15 Patch1:         icu68.patch
16 URL:            http://www.freedesktop.org/wiki/HarfBuzz
17 BuildRequires:  autoconf >= 2.56
18 BuildRequires:  automake >= 1:1.9
19 BuildRequires:  harfbuzz-devel >= 1.0.3
20 BuildRequires:  libicu-devel
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool >= 2:1.5
23 BuildRequires:  pkgconfig
24 Requires:       harfbuzz >= 1.0.3
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 icu-le-hb is a library implementing the ICU Layout Engine (icu-le) API
29 using external HarfBuzz library for implementation. This is useful as
30 a compatibility layer to make applications using ICU Layout Engine to
31 use HarfBuzz without porting them to use the HarfBuzz API.
32
33 %description -l pl.UTF-8
34 icu-le-hb to biblioteka implementująca API ICU Layout Engine (icu-le)
35 przy użyciu zewnętrznej biblioteki HarfBuzz. Jest przydatna jako
36 warstwa zgodności, aby aplikacje wykorzystujące silnik ICU Layout
37 Engine mogły używać biblioteki HarfBuzz bez potrzeby portowania do API
38 biblioteki HarfBuzz.
39
40 %package devel
41 Summary:        Header files for icu-le-hb library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki icu-le-hb
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45 Requires:       harfbuzz-devel >= 1.0.3
46 Requires:       libicu-devel
47 Requires:       libstdc++-devel
48
49 %description devel
50 Header files for icu-le-hb library.
51
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki icu-le-hb.
54
55 %package static
56 Summary:        Static icu-le-hb library
57 Summary(pl.UTF-8):      Statyczna biblioteka icu-le-hb
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Static icu-le-hb library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka icu-le-hb.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71
72 %build
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__automake}
77 %configure \
78         %{!?with_static_libs:--disable-static}
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libicu-le-hb.la
89
90 # conflict with libicu-devel (or: split libicu and package it in subpackage)
91 %{__rm} $RPM_BUILD_ROOT%{_pkgconfigdir}/icu-le.pc
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc AUTHORS COPYING NEWS README
102 %attr(755,root,root) %{_libdir}/libicu-le-hb.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libicu-le-hb.so.0
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libicu-le-hb.so
108 %{_includedir}/icu-le-hb
109 %{_pkgconfigdir}/icu-le-hb.pc
110
111 %if %{with static_libs}
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libicu-le-hb.a
115 %endif
This page took 0.065613 seconds and 3 git commands to generate.