]>
Commit | Line | Data |
---|---|---|
cf468305 JB |
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 | |
2cf9e116 | 8 | Version: 0.9.6 |
d9ba18f6 | 9 | Release: 1 |
cf468305 JB |
10 | License: MIT |
11 | Group: Libraries | |
12 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
2cf9e116 | 13 | # Source0-md5: f3a100a0512c185b211a0deb4790c34c |
cf468305 JB |
14 | URL: http://www.freedesktop.org/wiki/HarfBuzz |
15 | BuildRequires: cairo-devel >= 1.8.0 | |
4e2c56b4 | 16 | BuildRequires: freetype-devel >= 2.3.8 |
e1674d2f | 17 | BuildRequires: graphite2-devel |
cf468305 JB |
18 | BuildRequires: glib2-devel >= 1:2.16 |
19 | BuildRequires: libicu-devel | |
20 | BuildRequires: libstdc++-devel | |
d9ba18f6 | 21 | BuildRequires: pkgconfig >= 1:0.20 |
cf468305 JB |
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} | |
b91a948b | 38 | Requires: freetype-devel >= 2.3.8 |
cf468305 | 39 | Requires: glib2-devel >= 1:2.16 |
e1674d2f | 40 | Requires: graphite2-devel |
b91a948b | 41 | Requires: libicu-devel |
cf468305 JB |
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 | ||
e1674d2f JB |
82 | # missing |
83 | cat >> harfbuzz.pc <<EOF | |
bf075999 | 84 | Requires.private: glib-2.0 gobject-2.0 icu-le icu-uc freetype2 graphite2 |
e1674d2f JB |
85 | EOF |
86 | ||
cf468305 JB |
87 | %install |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
4e2c56b4 | 93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %doc COPYING ChangeLog README TODO | |
4e2c56b4 ŁK |
104 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure |
105 | %attr(755,root,root) %{_bindir}/hb-shape | |
cf468305 JB |
106 | %attr(755,root,root) %{_bindir}/hb-view |
107 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
cf468305 JB |
113 | %{_includedir}/harfbuzz |
114 | %{_pkgconfigdir}/harfbuzz.pc | |
115 | ||
116 | %if %{with static_libs} | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libharfbuzz.a | |
120 | %endif |