]> git.pld-linux.org Git - packages/harfbuzz.git/blob - harfbuzz.spec
- graphite2 is also supported if found
[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.3
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:  883a40644d3b120b7013e11876ea5af3
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
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
40 Requires:       graphite2-devel
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
81 # missing
82 cat >> harfbuzz.pc <<EOF
83 Requires.private: glib-2.0 gobject-2.0 icu-uc freetype2 graphite2
84 EOF
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
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
103 %attr(755,root,root) %{_bindir}/hb-ot-shape-closure
104 %attr(755,root,root) %{_bindir}/hb-shape
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
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
This page took 0.060323 seconds and 4 git commands to generate.