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