e6c2cdc4789f2880d4004785bb2238c7ea0fbd1e
[platform/upstream/harfbuzz.git] / packaging / harfbuzz.spec
1 Name:           harfbuzz
2 Version:        0.9.12
3 Release:        0
4 License:        MIT
5 Summary:        An OpenType text shaping engine
6 Url:            http://www.freedesktop.org/wiki/Software/HarfBuzz
7 Group:          Graphics/Font Management
8 Source:         %{name}-%{version}.tar.bz2
9 Source99:       baselibs.conf
10 BuildRequires:  gcc-c++
11 BuildRequires:  pkgconfig(cairo) >= 1.8.0
12 BuildRequires:  pkgconfig(cairo-ft)
13 BuildRequires:  pkgconfig(freetype2) >= 2.3.8
14 BuildRequires:  pkgconfig(glib-2.0) >= 2.16
15 BuildRequires:  pkgconfig(gobject-2.0)
16 BuildRequires:  pkgconfig(gthread-2.0)
17 BuildRequires:  pkgconfig(icu-uc)
18
19 %description
20 HarfBuzz is an OpenType text shaping engine.
21
22 %package -n libharfbuzz
23 Summary:        An OpenType text shaping engine
24 Group:          Graphics/Font Management
25
26 %description -n libharfbuzz
27 HarfBuzz is an OpenType text shaping engine.
28
29 %package tools
30 Summary:        An OpenType text shaping engine -- Tools
31 Group:          Graphics/Font Management
32
33 %description tools
34 HarfBuzz is an OpenType text shaping engine.
35
36 %package devel
37 Summary:        An OpenType text shaping engine -- Development Files
38 Group:          Development/Libraries
39 Requires:       libharfbuzz = %{version}
40
41 %description devel
42 HarfBuzz is an OpenType text shaping engine.
43
44 %prep
45 %setup -q
46
47 %build
48 %configure \
49         --disable-static
50 make %{?_smp_mflags}
51
52 %install
53 %make_install
54
55 %post -n libharfbuzz -p /sbin/ldconfig
56
57 %postun -n libharfbuzz -p /sbin/ldconfig
58
59 %files -n libharfbuzz
60 %defattr(-,root,root)
61 %license COPYING
62 %{_libdir}/libharfbuzz.so.0*
63
64 %files tools
65 %defattr(-,root,root)
66 %{_bindir}/hb-ot-shape-closure
67 %{_bindir}/hb-shape
68 %{_bindir}/hb-view
69
70 %files devel
71 %defattr(-,root,root)
72 %{_includedir}/harfbuzz/
73 %{_libdir}/*.so
74 %{_libdir}/pkgconfig/harfbuzz.pc