]>
Commit | Line | Data |
---|---|---|
cf468305 JB |
1 | # |
2 | # Conditional build: | |
d18130a6 JB |
3 | %bcond_without static_libs # static libraries build |
4 | %bcond_without graphite2 # Graphite2 library usage | |
5 | %bcond_without icu # ICU integration | |
fac38ac2 | 6 | %bcond_without tests # "make check" call |
29fa7f1d | 7 | |
cf468305 JB |
8 | Summary: HarfBuzz - internationalized text shaping library |
9 | Summary(pl.UTF-8): HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków | |
10 | Name: harfbuzz | |
c9ed3fb9 | 11 | Version: 0.9.28 |
0844366e | 12 | Release: 1.1 |
cf468305 JB |
13 | License: MIT |
14 | Group: Libraries | |
15 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
c9ed3fb9 | 16 | # Source0-md5: accbeb679f39d839038b95a87e40870e |
cf468305 JB |
17 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
18 | BuildRequires: cairo-devel >= 1.8.0 | |
4e2c56b4 | 19 | BuildRequires: freetype-devel >= 2.3.8 |
cf468305 | 20 | BuildRequires: glib2-devel >= 1:2.16 |
96f54f6c | 21 | BuildRequires: gobject-introspection-devel >= 1.32.0 |
d18130a6 | 22 | %{?with_graphite2:BuildRequires: graphite2-devel} |
96f54f6c | 23 | BuildRequires: gtk-doc >= 1.15 |
d18130a6 | 24 | %{?with_icu:BuildRequires: libicu-devel} |
cf468305 | 25 | BuildRequires: libstdc++-devel |
d9ba18f6 | 26 | BuildRequires: pkgconfig >= 1:0.20 |
cf468305 | 27 | Requires: cairo >= 1.8.0 |
d18130a6 | 28 | Requires: freetype >= 2.3.8 |
cf468305 JB |
29 | Requires: glib2 >= 1:2.16 |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Internationalized OpenType text layout and rendering library. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
37 | obsługująca wiele języków. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for HarfBuzz library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
b91a948b | 44 | Requires: freetype-devel >= 2.3.8 |
cf468305 | 45 | Requires: glib2-devel >= 1:2.16 |
d18130a6 | 46 | %{?with_graphite2:Requires: graphite2-devel} |
cf468305 JB |
47 | Requires: libstdc++-devel |
48 | ||
49 | %description devel | |
50 | Header files for HarfBuzz library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki HarfBuzz. | |
54 | ||
55 | %package static | |
56 | Summary: Static HarfBuzz library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static HarfBuzz library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka HarfBuzz. | |
66 | ||
0844366e ER |
67 | %package gobject |
68 | Summary: Harfbuzz GObject interface | |
69 | Summary(pl.UTF-8): Interfejs GObject do Harfbuzz | |
70 | Group: Libraries | |
71 | ||
72 | %description gobject | |
73 | Harfbuzz GObject interface. | |
74 | ||
75 | %description gobject -l pl.UTF-8 | |
76 | Interfejs GObject do Harfbuzz. | |
77 | ||
78 | %package gobject-devel | |
79 | Summary: Header files for Harfbuzz GObject interface | |
80 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Harfbuzz | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | Requires: %{name}-gobject = %{version}-%{release} | |
84 | Requires: glib2-devel >= 1:2.12.2 | |
85 | ||
86 | %description gobject-devel | |
87 | This is the package containing the header files for Harfbuzz GObject | |
88 | interface. | |
89 | ||
90 | %description gobject-devel -l pl.UTF-8 | |
91 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Harfbuzz. | |
92 | ||
93 | %package gobject-static | |
94 | Summary: Static Harfbuzz GObject library | |
95 | Summary(pl.UTF-8): Statyczna biblioteka Harfbuzz GObject | |
96 | Group: Development/Libraries | |
97 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
98 | ||
99 | %description gobject-static | |
100 | Static Harfbuzz GObject library. | |
101 | ||
102 | %description gobject-static -l pl.UTF-8 | |
103 | Statyczna biblioteka Harfbuzz GObject. | |
104 | ||
d18130a6 JB |
105 | %package icu |
106 | Summary: HarfBuzz text shaping library - ICU integration | |
107 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
108 | Group: Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description icu | |
112 | HarfBuzz text shaping library - ICU integration. | |
113 | ||
114 | %description icu -l pl.UTF-8 | |
115 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
116 | ||
117 | %package icu-devel | |
118 | Summary: Header file for HarfBuzz ICU library | |
119 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
120 | Group: Development/Libraries | |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | Requires: %{name}-icu = %{version}-%{release} | |
123 | Requires: libicu-devel | |
124 | ||
125 | %description icu-devel | |
126 | Header file for HarfBuzz ICU library. | |
127 | ||
128 | %description icu-devel -l pl.UTF-8 | |
129 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
130 | ||
131 | %package icu-static | |
132 | Summary: Static HarfBuzz ICU library | |
133 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
134 | Group: Development/Libraries | |
135 | Requires: %{name}-icu-devel = %{version}-%{release} | |
136 | ||
137 | %description icu-static | |
138 | Static HarfBuzz ICU library. | |
139 | ||
140 | %description icu-static -l pl.UTF-8 | |
141 | Biblioteka statyczna HarfBuzz ICU. | |
142 | ||
96f54f6c JB |
143 | %package apidocs |
144 | Summary: HarfBuzz API documentation | |
145 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
146 | Group: Documentation | |
29fa7f1d ER |
147 | %if "%{_rpmversion}" >= "5" |
148 | BuildArch: noarch | |
149 | %endif | |
96f54f6c JB |
150 | |
151 | %description apidocs | |
152 | API documentation for HarfBuzz libraries. | |
153 | ||
154 | %description apidocs -l pl.UTF-8 | |
155 | Dokumentacja API bibliotek HarfBuzz. | |
156 | ||
cf468305 JB |
157 | %prep |
158 | %setup -q | |
159 | ||
d18130a6 JB |
160 | # missing dependencies |
161 | cat >> src/harfbuzz.pc.in <<EOF | |
96f54f6c | 162 | Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2} |
d18130a6 JB |
163 | EOF |
164 | ||
cf468305 JB |
165 | %build |
166 | %configure \ | |
167 | --disable-silent-rules \ | |
d18130a6 JB |
168 | %{?with_static_libs:--enable-static} \ |
169 | --with-cairo \ | |
170 | --with-freetype \ | |
171 | --with-glib \ | |
96f54f6c | 172 | --with-gobject \ |
d18130a6 | 173 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 174 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 175 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
176 | %{__make} |
177 | ||
c9ed3fb9 AM |
178 | %{?with_tests:%{__make} check} |
179 | ||
cf468305 JB |
180 | %install |
181 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 182 | %{__make} install \ |
cf468305 JB |
183 | DESTDIR=$RPM_BUILD_ROOT |
184 | ||
4e2c56b4 | 185 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
186 | |
187 | %clean | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %post -p /sbin/ldconfig | |
191 | %postun -p /sbin/ldconfig | |
192 | ||
0844366e ER |
193 | %post gobject -p /sbin/ldconfig |
194 | %postun gobject -p /sbin/ldconfig | |
195 | ||
d18130a6 JB |
196 | %post icu -p /sbin/ldconfig |
197 | %postun icu -p /sbin/ldconfig | |
198 | ||
cf468305 JB |
199 | %files |
200 | %defattr(644,root,root,755) | |
d18130a6 | 201 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
4e2c56b4 ŁK |
202 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure |
203 | %attr(755,root,root) %{_bindir}/hb-shape | |
cf468305 JB |
204 | %attr(755,root,root) %{_bindir}/hb-view |
205 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
206 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
0844366e ER |
207 | |
208 | %files gobject | |
209 | %defattr(644,root,root,755) | |
96f54f6c JB |
210 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* |
211 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
049c0723 | 212 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib |
cf468305 | 213 | |
0844366e ER |
214 | %files gobject-devel |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
217 | %{_includedir}/harfbuzz/hb-gobject.h | |
218 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
219 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
220 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
221 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
222 | ||
223 | %files gobject-static | |
224 | %defattr(644,root,root,755) | |
225 | %{_libdir}/libharfbuzz-gobject.a | |
226 | ||
cf468305 JB |
227 | %files devel |
228 | %defattr(644,root,root,755) | |
229 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
d18130a6 JB |
230 | %dir %{_includedir}/harfbuzz |
231 | %{_includedir}/harfbuzz/hb.h | |
232 | %{_includedir}/harfbuzz/hb-blob.h | |
233 | %{_includedir}/harfbuzz/hb-buffer.h | |
234 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
235 | %{_includedir}/harfbuzz/hb-deprecated.h |
236 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
237 | %{_includedir}/harfbuzz/hb-font.h |
238 | %{_includedir}/harfbuzz/hb-ft.h | |
239 | %{_includedir}/harfbuzz/hb-glib.h | |
d18130a6 | 240 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
c9ed3fb9 | 241 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 242 | %{_includedir}/harfbuzz/hb-ot-layout.h |
16fffe4d | 243 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 JB |
244 | %{_includedir}/harfbuzz/hb-ot-tag.h |
245 | %{_includedir}/harfbuzz/hb-ot.h | |
246 | %{_includedir}/harfbuzz/hb-set.h | |
247 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
248 | %{_includedir}/harfbuzz/hb-shape.h | |
249 | %{_includedir}/harfbuzz/hb-unicode.h | |
250 | %{_includedir}/harfbuzz/hb-version.h | |
cf468305 JB |
251 | %{_pkgconfigdir}/harfbuzz.pc |
252 | ||
253 | %if %{with static_libs} | |
254 | %files static | |
255 | %defattr(644,root,root,755) | |
256 | %{_libdir}/libharfbuzz.a | |
257 | %endif | |
d18130a6 JB |
258 | |
259 | %if %{with icu} | |
260 | %files icu | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
263 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
264 | ||
265 | %files icu-devel | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
268 | %{_includedir}/harfbuzz/hb-icu.h | |
269 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
270 | ||
271 | %if %{with static_libs} | |
272 | %files icu-static | |
273 | %defattr(644,root,root,755) | |
274 | %{_libdir}/libharfbuzz-icu.a | |
275 | %endif | |
276 | %endif | |
96f54f6c JB |
277 | |
278 | %files apidocs | |
279 | %defattr(644,root,root,755) | |
280 | %{_gtkdocdir}/harfbuzz |