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