]>
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 | |
8 | Version: 0.6.0 | |
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: 993807eb81ad61e08d50f28b57baf405 | |
14 | URL: http://www.freedesktop.org/wiki/HarfBuzz | |
15 | BuildRequires: cairo-devel >= 1.8.0 | |
16 | BuildRequires: freetype-devel >= 2 | |
17 | BuildRequires: glib2-devel >= 1:2.16 | |
18 | BuildRequires: libicu-devel | |
19 | BuildRequires: libstdc++-devel | |
20 | BuildRequires: pkgconfig | |
21 | Requires: cairo >= 1.8.0 | |
22 | Requires: glib2 >= 1:2.16 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Internationalized OpenType text layout and rendering library. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Biblioteka rozmieszczająca i rysująca tekst z fontów OpenType, | |
30 | obsługująca wiele języków. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for HarfBuzz library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HarfBuzz | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: cairo-devel >= 1.8.0 | |
38 | Requires: glib2-devel >= 1:2.16 | |
39 | Requires: libstdc++-devel | |
40 | ||
41 | %description devel | |
42 | Header files for HarfBuzz library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki HarfBuzz. | |
46 | ||
47 | %package static | |
48 | Summary: Static HarfBuzz library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka HarfBuzz | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static HarfBuzz library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka HarfBuzz. | |
58 | ||
59 | %package apidocs | |
60 | Summary: HarfBuzz API documentation | |
61 | Summary(pl.UTF-8): Dokumentacja API biblioteki HarfBuzz | |
62 | Group: Documentation | |
63 | ||
64 | %description apidocs | |
65 | API and internal documentation for HarfBuzz library. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API biblioteki HarfBuzz. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | ||
73 | %build | |
74 | %configure \ | |
75 | --disable-silent-rules \ | |
76 | %{?with_static_libs:--enable-static} | |
77 | %{__make} | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | # .la kept - no .private dependencies in .pc | |
86 | ||
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | %doc COPYING ChangeLog README TODO | |
96 | %attr(755,root,root) %{_bindir}/hb-view | |
97 | %attr(755,root,root) %{_libdir}/libharfbuzz.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libharfbuzz.so.0 | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libharfbuzz.so | |
103 | %{_libdir}/libharfbuzz.la | |
104 | %{_includedir}/harfbuzz | |
105 | %{_pkgconfigdir}/harfbuzz.pc | |
106 | ||
107 | %if %{with static_libs} | |
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libharfbuzz.a | |
111 | %endif |