]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static libraries build | |
4 | %bcond_without graphite2 # Graphite2 library usage | |
5 | %bcond_without icu # ICU integration | |
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 | |
10 | Version: 0.9.21 | |
11 | Release: 1 | |
12 | License: MIT | |
13 | Group: Libraries | |
14 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: 468a381e992ae9313cef6595f4e233db | |
16 | URL: http://www.freedesktop.org/wiki/HarfBuzz | |
17 | BuildRequires: cairo-devel >= 1.8.0 | |
18 | BuildRequires: freetype-devel >= 2.3.8 | |
19 | BuildRequires: glib2-devel >= 1:2.16 | |
20 | BuildRequires: gobject-introspection-devel >= 1.32.0 | |
21 | %{?with_graphite2:BuildRequires: graphite2-devel} | |
22 | BuildRequires: gtk-doc >= 1.15 | |
23 | %{?with_icu:BuildRequires: libicu-devel} | |
24 | BuildRequires: libstdc++-devel | |
25 | BuildRequires: pkgconfig >= 1:0.20 | |
26 | Requires: cairo >= 1.8.0 | |
27 | Requires: freetype >= 2.3.8 | |
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} | |
43 | Requires: freetype-devel >= 2.3.8 | |
44 | Requires: glib2-devel >= 1:2.16 | |
45 | %{?with_graphite2:Requires: graphite2-devel} | |
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 | ||
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 | ||
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 | ||
115 | %prep | |
116 | %setup -q | |
117 | ||
118 | # missing dependencies | |
119 | cat >> src/harfbuzz.pc.in <<EOF | |
120 | Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2} | |
121 | EOF | |
122 | ||
123 | %build | |
124 | %configure \ | |
125 | --disable-silent-rules \ | |
126 | %{?with_static_libs:--enable-static} \ | |
127 | --with-cairo \ | |
128 | --with-freetype \ | |
129 | --with-glib \ | |
130 | --with-gobject \ | |
131 | %{?with_graphite2:--with-graphite2} \ | |
132 | --with-html-dir=%{_gtkdocdir} \ | |
133 | --with-icu%{!?with_icu:=no} | |
134 | %{__make} | |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %{__make} install \ | |
140 | DESTDIR=$RPM_BUILD_ROOT | |
141 | ||
142 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
143 | ||
144 | %clean | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
148 | %postun -p /sbin/ldconfig | |
149 | ||
150 | %post icu -p /sbin/ldconfig | |
151 | %postun icu -p /sbin/ldconfig | |
152 | ||
153 | %files | |
154 | %defattr(644,root,root,755) | |
155 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO | |
156 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure | |
157 | %attr(755,root,root) %{_bindir}/hb-shape | |
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 | |
161 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.* | |
162 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0 | |
163 | %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib | |
164 | ||
165 | %files devel | |
166 | %defattr(644,root,root,755) | |
167 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
168 | %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so | |
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 | |
174 | %{_includedir}/harfbuzz/hb-deprecated.h | |
175 | %{_includedir}/harfbuzz/hb-face.h | |
176 | %{_includedir}/harfbuzz/hb-font.h | |
177 | %{_includedir}/harfbuzz/hb-ft.h | |
178 | %{_includedir}/harfbuzz/hb-glib.h | |
179 | %{_includedir}/harfbuzz/hb-gobject.h | |
180 | %{_includedir}/harfbuzz/hb-gobject-enums.h | |
181 | %{_includedir}/harfbuzz/hb-gobject-structs.h | |
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 | |
191 | %{_datadir}/gir-1.0/HarfBuzz-0.0.gir | |
192 | %{_pkgconfigdir}/harfbuzz.pc | |
193 | %{_pkgconfigdir}/harfbuzz-gobject.pc | |
194 | ||
195 | %if %{with static_libs} | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
198 | %{_libdir}/libharfbuzz.a | |
199 | %{_libdir}/libharfbuzz-gobject.a | |
200 | %endif | |
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 | |
220 | ||
221 | %files apidocs | |
222 | %defattr(644,root,root,755) | |
223 | %{_gtkdocdir}/harfbuzz |