]>
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 AM |
11 | Version: 0.9.28 |
12 | Release: 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 | ||
d18130a6 JB |
67 | %package icu |
68 | Summary: HarfBuzz text shaping library - ICU integration | |
69 | Summary(pl.UTF-8): Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU | |
70 | Group: Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description icu | |
74 | HarfBuzz text shaping library - ICU integration. | |
75 | ||
76 | %description icu -l pl.UTF-8 | |
77 | Biblioteka HarfBuzz do rysowania tekstu - integracja z ICU. | |
78 | ||
79 | %package icu-devel | |
80 | Summary: Header file for HarfBuzz ICU library | |
81 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki HarfBuzz ICU | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | Requires: %{name}-icu = %{version}-%{release} | |
85 | Requires: libicu-devel | |
86 | ||
87 | %description icu-devel | |
88 | Header file for HarfBuzz ICU library. | |
89 | ||
90 | %description icu-devel -l pl.UTF-8 | |
91 | Plik nagłówkowy biblioteki HarfBuzz ICU. | |
92 | ||
93 | %package icu-static | |
94 | Summary: Static HarfBuzz ICU library | |
95 | Summary(pl.UTF-8): Biblioteka statyczna HarfBuzz ICU | |
96 | Group: Development/Libraries | |
97 | Requires: %{name}-icu-devel = %{version}-%{release} | |
98 | ||
99 | %description icu-static | |
100 | Static HarfBuzz ICU library. | |
101 | ||
102 | %description icu-static -l pl.UTF-8 | |
103 | Biblioteka statyczna HarfBuzz ICU. | |
104 | ||
96f54f6c JB |
105 | %package apidocs |
106 | Summary: HarfBuzz API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API bibliotek HarfBuzz | |
108 | Group: Documentation | |
29fa7f1d ER |
109 | %if "%{_rpmversion}" >= "5" |
110 | BuildArch: noarch | |
111 | %endif | |
96f54f6c JB |
112 | |
113 | %description apidocs | |
114 | API documentation for HarfBuzz libraries. | |
115 | ||
116 | %description apidocs -l pl.UTF-8 | |
117 | Dokumentacja API bibliotek HarfBuzz. | |
118 | ||
cf468305 JB |
119 | %prep |
120 | %setup -q | |
121 | ||
d18130a6 JB |
122 | # missing dependencies |
123 | cat >> src/harfbuzz.pc.in <<EOF | |
96f54f6c | 124 | Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2} |
d18130a6 JB |
125 | EOF |
126 | ||
cf468305 JB |
127 | %build |
128 | %configure \ | |
129 | --disable-silent-rules \ | |
d18130a6 JB |
130 | %{?with_static_libs:--enable-static} \ |
131 | --with-cairo \ | |
132 | --with-freetype \ | |
133 | --with-glib \ | |
96f54f6c | 134 | --with-gobject \ |
d18130a6 | 135 | %{?with_graphite2:--with-graphite2} \ |
96f54f6c | 136 | --with-html-dir=%{_gtkdocdir} \ |
d18130a6 | 137 | --with-icu%{!?with_icu:=no} |
cf468305 JB |
138 | %{__make} |
139 | ||
c9ed3fb9 AM |
140 | %{?with_tests:%{__make} check} |
141 | ||
cf468305 JB |
142 | %install |
143 | rm -rf $RPM_BUILD_ROOT | |
d18130a6 | 144 | %{__make} install \ |
cf468305 JB |
145 | DESTDIR=$RPM_BUILD_ROOT |
146 | ||
4e2c56b4 | 147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
148 | |
149 | %clean | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %post -p /sbin/ldconfig | |
153 | %postun -p /sbin/ldconfig | |
154 | ||
d18130a6 JB |
155 | %post icu -p /sbin/ldconfig |
156 | %postun icu -p /sbin/ldconfig | |
157 | ||
cf468305 JB |
158 | %files |
159 | %defattr(644,root,root,755) | |
d18130a6 | 160 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO |
4e2c56b4 ŁK |
161 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure |
162 | %attr(755,root,root) %{_bindir}/hb-shape | |
cf468305 JB |
163 | %attr(755,root,root) %{_bindir}/hb-view |
164 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
165 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
96f54f6c JB |
166 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* |
167 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
049c0723 | 168 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib |
cf468305 JB |
169 | |
170 | %files devel | |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
96f54f6c | 173 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so |
d18130a6 JB |
174 | %dir %{_includedir}/harfbuzz |
175 | %{_includedir}/harfbuzz/hb.h | |
176 | %{_includedir}/harfbuzz/hb-blob.h | |
177 | %{_includedir}/harfbuzz/hb-buffer.h | |
178 | %{_includedir}/harfbuzz/hb-common.h | |
96f54f6c JB |
179 | %{_includedir}/harfbuzz/hb-deprecated.h |
180 | %{_includedir}/harfbuzz/hb-face.h | |
d18130a6 JB |
181 | %{_includedir}/harfbuzz/hb-font.h |
182 | %{_includedir}/harfbuzz/hb-ft.h | |
183 | %{_includedir}/harfbuzz/hb-glib.h | |
184 | %{_includedir}/harfbuzz/hb-gobject.h | |
96f54f6c JB |
185 | %{_includedir}/harfbuzz/hb-gobject-enums.h |
186 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
d18130a6 | 187 | %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h} |
c9ed3fb9 | 188 | %{_includedir}/harfbuzz/hb-ot-font.h |
d18130a6 | 189 | %{_includedir}/harfbuzz/hb-ot-layout.h |
16fffe4d | 190 | %{_includedir}/harfbuzz/hb-ot-shape.h |
d18130a6 JB |
191 | %{_includedir}/harfbuzz/hb-ot-tag.h |
192 | %{_includedir}/harfbuzz/hb-ot.h | |
193 | %{_includedir}/harfbuzz/hb-set.h | |
194 | %{_includedir}/harfbuzz/hb-shape-plan.h | |
195 | %{_includedir}/harfbuzz/hb-shape.h | |
196 | %{_includedir}/harfbuzz/hb-unicode.h | |
197 | %{_includedir}/harfbuzz/hb-version.h | |
049c0723 | 198 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir |
cf468305 | 199 | %{_pkgconfigdir}/harfbuzz.pc |
96f54f6c | 200 | %{_pkgconfigdir}/harfbuzz-gobject.pc |
cf468305 JB |
201 | |
202 | %if %{with static_libs} | |
203 | %files static | |
204 | %defattr(644,root,root,755) | |
205 | %{_libdir}/libharfbuzz.a | |
96f54f6c | 206 | %{_libdir}/libharfbuzz-gobject.a |
cf468305 | 207 | %endif |
d18130a6 JB |
208 | |
209 | %if %{with icu} | |
210 | %files icu | |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-icu.so.0 | |
214 | ||
215 | %files icu-devel | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_libdir}/libharfbuzz-icu.so | |
218 | %{_includedir}/harfbuzz/hb-icu.h | |
219 | %{_pkgconfigdir}/harfbuzz-icu.pc | |
220 | ||
221 | %if %{with static_libs} | |
222 | %files icu-static | |
223 | %defattr(644,root,root,755) | |
224 | %{_libdir}/libharfbuzz-icu.a | |
225 | %endif | |
226 | %endif | |
96f54f6c JB |
227 | |
228 | %files apidocs | |
229 | %defattr(644,root,root,755) | |
230 | %{_gtkdocdir}/harfbuzz |