]> git.pld-linux.org Git - packages/harfbuzz.git/blob - harfbuzz.spec
added gobject* packages
[packages/harfbuzz.git] / harfbuzz.spec
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 %bcond_without  tests           # "make check" call
7
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
11 Version:        0.9.28
12 Release:        1.1
13 License:        MIT
14 Group:          Libraries
15 Source0:        http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
16 # Source0-md5:  accbeb679f39d839038b95a87e40870e
17 URL:            http://www.freedesktop.org/wiki/HarfBuzz
18 BuildRequires:  cairo-devel >= 1.8.0
19 BuildRequires:  freetype-devel >= 2.3.8
20 BuildRequires:  glib2-devel >= 1:2.16
21 BuildRequires:  gobject-introspection-devel >= 1.32.0
22 %{?with_graphite2:BuildRequires:        graphite2-devel}
23 BuildRequires:  gtk-doc >= 1.15
24 %{?with_icu:BuildRequires:      libicu-devel}
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  pkgconfig >= 1:0.20
27 Requires:       cairo >= 1.8.0
28 Requires:       freetype >= 2.3.8
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}
44 Requires:       freetype-devel >= 2.3.8
45 Requires:       glib2-devel >= 1:2.16
46 %{?with_graphite2:Requires:     graphite2-devel}
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
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
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
143 %package apidocs
144 Summary:        HarfBuzz API documentation
145 Summary(pl.UTF-8):      Dokumentacja API bibliotek HarfBuzz
146 Group:          Documentation
147 %if "%{_rpmversion}" >= "5"
148 BuildArch:      noarch
149 %endif
150
151 %description apidocs
152 API documentation for HarfBuzz libraries.
153
154 %description apidocs -l pl.UTF-8
155 Dokumentacja API bibliotek HarfBuzz.
156
157 %prep
158 %setup -q
159
160 # missing dependencies
161 cat >> src/harfbuzz.pc.in <<EOF
162 Requires.private: glib-2.0 freetype2%{?with_graphite2: graphite2}
163 EOF
164
165 %build
166 %configure \
167         --disable-silent-rules \
168         %{?with_static_libs:--enable-static} \
169         --with-cairo \
170         --with-freetype \
171         --with-glib \
172         --with-gobject \
173         %{?with_graphite2:--with-graphite2} \
174         --with-html-dir=%{_gtkdocdir} \
175         --with-icu%{!?with_icu:=no}
176 %{__make}
177
178 %{?with_tests:%{__make} check}
179
180 %install
181 rm -rf $RPM_BUILD_ROOT
182 %{__make} install \
183         DESTDIR=$RPM_BUILD_ROOT
184
185 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %post   -p /sbin/ldconfig
191 %postun -p /sbin/ldconfig
192
193 %post   gobject -p /sbin/ldconfig
194 %postun gobject -p /sbin/ldconfig
195
196 %post   icu -p /sbin/ldconfig
197 %postun icu -p /sbin/ldconfig
198
199 %files
200 %defattr(644,root,root,755)
201 %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
202 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
203 %attr(755,root,root) %{_bindir}/hb-shape
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
207
208 %files gobject
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libharfbuzz-gobject.so.*.*.*
211 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz-gobject.so.0
212 %{_libdir}/girepository-1.0/HarfBuzz-0.0.typelib
213
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
227 %files devel
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/libharfbuzz.so
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
235 %{_includedir}/harfbuzz/hb-deprecated.h
236 %{_includedir}/harfbuzz/hb-face.h
237 %{_includedir}/harfbuzz/hb-font.h
238 %{_includedir}/harfbuzz/hb-ft.h
239 %{_includedir}/harfbuzz/hb-glib.h
240 %{?with_graphite2:%{_includedir}/harfbuzz/hb-graphite2.h}
241 %{_includedir}/harfbuzz/hb-ot-font.h
242 %{_includedir}/harfbuzz/hb-ot-layout.h
243 %{_includedir}/harfbuzz/hb-ot-shape.h
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
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
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
277
278 %files apidocs
279 %defattr(644,root,root,755)
280 %{_gtkdocdir}/harfbuzz
This page took 0.091605 seconds and 4 git commands to generate.