]> git.pld-linux.org Git - packages/harfbuzz.git/blob - harfbuzz.spec
- disable parallel make install
[packages/harfbuzz.git] / harfbuzz.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        HarfBuzz - internationalized text shaping library
6 Summary(pl.UTF-8):      HarfBuzz - biblioteka rysująca tekst z obsługą wielu języków
7 Name:           harfbuzz
8 Version:        0.9.9
9 Release:        1
10 License:        MIT
11 Group:          Libraries
12 Source0:        http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2
13 # Source0-md5:  e901ffe556d706b7d43b272f83be7f09
14 URL:            http://www.freedesktop.org/wiki/HarfBuzz
15 BuildRequires:  cairo-devel >= 1.8.0
16 BuildRequires:  freetype-devel >= 2.3.8
17 BuildRequires:  graphite2-devel
18 BuildRequires:  glib2-devel >= 1:2.16
19 BuildRequires:  libicu-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  pkgconfig >= 1:0.20
22 Requires:       cairo >= 1.8.0
23 Requires:       glib2 >= 1:2.16
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Internationalized OpenType text layout and rendering library.
28
29 %description -l pl.UTF-8
30 Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType,
31 obsługująca wiele języków.
32
33 %package devel
34 Summary:        Header files for HarfBuzz library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki HarfBuzz
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       freetype-devel >= 2.3.8
39 Requires:       glib2-devel >= 1:2.16
40 Requires:       graphite2-devel
41 Requires:       libicu-devel
42 Requires:       libstdc++-devel
43
44 %description devel
45 Header files for HarfBuzz library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki HarfBuzz.
49
50 %package static
51 Summary:        Static HarfBuzz library
52 Summary(pl.UTF-8):      Statyczna biblioteka HarfBuzz
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static HarfBuzz library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka HarfBuzz.
61
62 %package apidocs
63 Summary:        HarfBuzz API documentation
64 Summary(pl.UTF-8):      Dokumentacja API biblioteki HarfBuzz
65 Group:          Documentation
66
67 %description apidocs
68 API and internal documentation for HarfBuzz library.
69
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki HarfBuzz.
72
73 %prep
74 %setup -q
75
76 %build
77 %configure \
78         --disable-silent-rules \
79         %{?with_static_libs:--enable-static}
80 %{__make}
81
82 # missing
83 cat >> harfbuzz.pc <<EOF
84 Requires.private: glib-2.0 gobject-2.0 icu-le icu-uc freetype2 graphite2
85 EOF
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 # parallel install broken (hb-version.h both in pkginclude_HEADERS and
91 # nodist_pkginclude_HEADERS)
92 %{__make} -j1 install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %doc COPYING ChangeLog README TODO
106 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
107 %attr(755,root,root) %{_bindir}/hb-shape
108 %attr(755,root,root) %{_bindir}/hb-view
109 %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libharfbuzz.so
115 %{_includedir}/harfbuzz
116 %{_pkgconfigdir}/harfbuzz.pc
117
118 %if %{with static_libs}
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libharfbuzz.a
122 %endif
This page took 0.072559 seconds and 4 git commands to generate.