]>
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 | |
4e2c56b4 | 8 | Version: 0.9.3 |
cf468305 JB |
9 | Release: 1 |
10 | License: MIT | |
11 | Group: Libraries | |
12 | Source0: http://www.freedesktop.org/software/harfbuzz/release/%{name}-%{version}.tar.bz2 | |
4e2c56b4 | 13 | # Source0-md5: 883a40644d3b120b7013e11876ea5af3 |
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 | |
21 | BuildRequires: pkgconfig | |
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: cairo-devel >= 1.8.0 | |
39 | Requires: glib2-devel >= 1:2.16 | |
e1674d2f | 40 | Requires: graphite2-devel |
cf468305 JB |
41 | Requires: libstdc++-devel |
42 | ||
43 | %description devel | |
44 | Header files for HarfBuzz library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki HarfBuzz. | |
48 | ||
49 | %package static | |
50 | Summary: Static HarfBuzz library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static HarfBuzz library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka HarfBuzz. | |
60 | ||
61 | %package apidocs | |
62 | Summary: HarfBuzz API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API biblioteki HarfBuzz | |
64 | Group: Documentation | |
65 | ||
66 | %description apidocs | |
67 | API and internal documentation for HarfBuzz library. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API biblioteki HarfBuzz. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %configure \ | |
77 | --disable-silent-rules \ | |
78 | %{?with_static_libs:--enable-static} | |
79 | %{__make} | |
80 | ||
e1674d2f JB |
81 | # missing |
82 | cat >> harfbuzz.pc <<EOF | |
83 | Requires.private: glib-2.0 gobject-2.0 icu-uc freetype2 graphite2 | |
84 | EOF | |
85 | ||
cf468305 JB |
86 | %install |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
4e2c56b4 | 92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
cf468305 JB |
93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc COPYING ChangeLog README TODO | |
4e2c56b4 ŁK |
103 | %attr(755,root,root) %{_bindir}/hb-ot-shape-closure |
104 | %attr(755,root,root) %{_bindir}/hb-shape | |
cf468305 JB |
105 | %attr(755,root,root) %{_bindir}/hb-view |
106 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
cf468305 JB |
112 | %{_includedir}/harfbuzz |
113 | %{_pkgconfigdir}/harfbuzz.pc | |
114 | ||
115 | %if %{with static_libs} | |
116 | %files static | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libharfbuzz.a | |
119 | %endif |