c48b051adb84d6f5cc3f110cd1f15fa091d55f98
[platform/upstream/harfbuzz.git] / packaging / harfbuzz.spec
1 Name:           harfbuzz
2 Version:        1.8.1
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 Source1001:     harfbuzz.manifest
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(gthread-2.0)
18 BuildRequires:  pkgconfig(icu-uc)
19
20 %description
21 HarfBuzz is an OpenType text shaping engine.
22
23 %package -n libharfbuzz
24 Summary:        An OpenType text shaping engine
25 Group:          Graphics/Font Management
26
27 %description -n libharfbuzz
28 HarfBuzz is an OpenType text shaping engine.
29
30 %package tools
31 Summary:        An OpenType text shaping engine -- Tools
32 Group:          Graphics/Font Management
33
34 %description tools
35 HarfBuzz is an OpenType text shaping engine.
36
37 %package devel
38 Summary:        An OpenType text shaping engine -- Development Files
39 Group:          Development/Libraries
40 Requires:       libharfbuzz = %{version}
41
42 %description devel
43 HarfBuzz is an OpenType text shaping engine.
44
45 %prep
46 %setup -q
47 cp %{SOURCE1001} .
48
49 %build
50 %configure \
51         --disable-static
52 make %{?_smp_mflags}
53
54 %install
55 %make_install
56 rm -rf %{buildroot}/%{_datadir}/gtk-doc
57
58 %post -n libharfbuzz -p /sbin/ldconfig
59
60 %postun -n libharfbuzz -p /sbin/ldconfig
61
62 %files -n libharfbuzz
63 %manifest %{name}.manifest
64 %defattr(-,root,root)
65 %license COPYING
66 %{_libdir}/*.so.0*
67
68 %files tools
69 %manifest %{name}.manifest
70 %defattr(-,root,root)
71 %{_bindir}/hb-ot-shape-closure
72 %{_bindir}/hb-shape
73 #%{_bindir}/hb-view
74
75 %files devel
76 %manifest %{name}.manifest
77 %defattr(-,root,root)
78 %{_includedir}/harfbuzz/
79 %{_libdir}/*.so
80 %{_libdir}/pkgconfig/*.pc