1 |
# enable_gtkdoc: Toggle whether gtkdoc stuff should be rebuilt |
2 |
# 0 = No |
3 |
# 1 = Yes |
4 |
%define enable_gtkdoc 1 |
5 |
|
6 |
# Define biarch packages |
7 |
%define biarches_32 %{ix86} ppc |
8 |
%define biarches_64 x86_64 ppc64 |
9 |
|
10 |
%define api_version 1.0 |
11 |
%define gir_major 1.0 |
12 |
%define module_version 1.8.0 |
13 |
%define lib_major 0 |
14 |
%define lib_name %mklibname %{name} %{api_version} %{lib_major} |
15 |
%define libnamedev %mklibname -d %{name} %{api_version} |
16 |
%define gir_name %mklibname %{name}-gir %{gir_major} |
17 |
|
18 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
19 |
|
20 |
Summary: System for layout and rendering of internationalized text |
21 |
Name: pango |
22 |
Version: 1.40.1 |
23 |
Release: %mkrel 1 |
24 |
License: LGPLv2+ |
25 |
Group: System/Internationalization |
26 |
URL: http://www.pango.org/ |
27 |
BuildRequires: pkgconfig(cairo) >= 1.12.10 |
28 |
BuildRequires: pkgconfig(fontconfig) >= 2.10.91 |
29 |
BuildRequires: pkgconfig(freetype2) |
30 |
BuildRequires: pkgconfig(glib-2.0) >= 2.33.12 |
31 |
BuildRequires: pkgconfig(gmodule-no-export-2.0) |
32 |
BuildRequires: pkgconfig(gobject-2.0) |
33 |
BuildRequires: pkgconfig(harfbuzz) >= 0.9.9 |
34 |
BuildRequires: pkgconfig(libthai) >= 0.1.9 |
35 |
BuildRequires: pkgconfig(xft) >= 2.0.0 |
36 |
BuildRequires: pkgconfig(xrender) |
37 |
BuildRequires: gobject-introspection-devel >= 0.9.5 |
38 |
%if %enable_gtkdoc |
39 |
BuildRequires: gtk-doc >= 0.10 |
40 |
BuildRequires: libxslt-proc |
41 |
BuildRequires: docbook-style-xsl |
42 |
BuildRequires: docbook-dtd412-xml |
43 |
%endif |
44 |
Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
45 |
|
46 |
%description |
47 |
A library to handle Unicode strings as well as complex bidirectional |
48 |
or context dependent shaped strings. |
49 |
It is the next step on Gtk+ internationalization. |
50 |
|
51 |
%package -n %{lib_name} |
52 |
Summary: %{summary} |
53 |
Group: %{group} |
54 |
Provides: lib%{name}%{api_version} = %{version}-%{release} |
55 |
Provides: lib%{name} = %{version}-%{release} |
56 |
Requires: %{name} = %{version} |
57 |
Requires: fontconfig >= 2.5.0 |
58 |
Requires: glib2 >= 2.33.12 |
59 |
Obsoletes: %{lib_name}-modules < 1.37.0 |
60 |
Requires: cairo >= 1.7.6 |
61 |
Conflicts: gir-repository < 0.6.5 |
62 |
|
63 |
%description -n %{lib_name} |
64 |
A library to handle Unicode strings as well as complex bidirectional |
65 |
or context dependent shaped strings. |
66 |
It is the next step on Gtk+ internationalization. |
67 |
|
68 |
%package -n %{libnamedev} |
69 |
Summary: %{summary} |
70 |
Group: Development/GNOME and GTK+ |
71 |
Obsoletes: %{name}-devel |
72 |
Provides: %{name}-devel = %{version}-%{release} |
73 |
Provides: lib%{name}-devel = %{version}-%{release} |
74 |
Provides: lib%{name}%{api_version}-devel = %{version}-%{release} |
75 |
Requires: %{name} = %{version} |
76 |
Requires: %{lib_name} = %{version} |
77 |
Requires: %{gir_name} = %{version} |
78 |
Recommends: %{name}-doc >= %{version} |
79 |
Obsoletes: %mklibname -d %{name} %{api_version} %{lib_major} |
80 |
Conflicts: %{name} < 1.18.0-3mdv |
81 |
Conflicts: %{_lib}pango1.0_0 < 1.28.1-2 |
82 |
|
83 |
%description -n %{libnamedev} |
84 |
This package includes the static libraries and header files |
85 |
for the pango package. |
86 |
|
87 |
%package -n %{gir_name} |
88 |
Summary: GObject Introspection interface description for %{name} |
89 |
Group: System/Libraries |
90 |
Requires: %{lib_name} = %{version}-%{release} |
91 |
Conflicts: %{mklibname %{name}1.0-gir 1.0}} < 1.29.3-4 |
92 |
|
93 |
%description -n %{gir_name} |
94 |
GObject Introspection interface description for %{name}. |
95 |
|
96 |
%package doc |
97 |
Summary: %{summary} |
98 |
Group: Development/GNOME and GTK+ |
99 |
BuildArch: noarch |
100 |
|
101 |
%description doc |
102 |
This package provides API documentation for Pango. |
103 |
|
104 |
%package tests |
105 |
Summary: Tests for the %{name} package |
106 |
Group: Development/GNOME and GTK+ |
107 |
Requires: %{name} = %{version}-%{release} |
108 |
|
109 |
%description tests |
110 |
The %{name}-tests package contains tests that can be used to verify |
111 |
the functionality of the installed %{name} package. |
112 |
|
113 |
%prep |
114 |
%setup -q |
115 |
%autopatch -p1 |
116 |
|
117 |
%build |
118 |
# generate build scripts using our autotools/libtoolize |
119 |
autoreconf -fi |
120 |
|
121 |
%configure2_5x \ |
122 |
--enable-static=no \ |
123 |
%if %enable_gtkdoc |
124 |
--enable-gtk-doc=yes \ |
125 |
%endif |
126 |
--enable-installed-tests |
127 |
|
128 |
%make ARCH=%{_arch} |
129 |
|
130 |
%check |
131 |
#disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981 |
132 |
make check || true |
133 |
|
134 |
%install |
135 |
%makeinstall_std |
136 |
|
137 |
# remove unpackaged files |
138 |
find %{buildroot} -name '*.la' -delete |
139 |
|
140 |
%files |
141 |
%doc README AUTHORS |
142 |
%doc NEWS |
143 |
%{_mandir}/man1/* |
144 |
|
145 |
%files -n %{lib_name} |
146 |
%{_libdir}/libpango-%{api_version}.so.%{lib_major}{,.*} |
147 |
%{_libdir}/libpangoft2-%{api_version}.so.%{lib_major}{,.*} |
148 |
%{_libdir}/libpangoxft-%{api_version}.so.%{lib_major}{,.*} |
149 |
%{_libdir}/libpangocairo-%{api_version}.so.%{lib_major}{,.*} |
150 |
|
151 |
%files -n %{gir_name} |
152 |
%{_libdir}/girepository-1.0/Pango-%{gir_major}.typelib |
153 |
%{_libdir}/girepository-1.0/PangoCairo-%{gir_major}.typelib |
154 |
%{_libdir}/girepository-1.0/PangoFT2-%{gir_major}.typelib |
155 |
%{_libdir}/girepository-1.0/PangoXft-%{gir_major}.typelib |
156 |
|
157 |
%files -n %{libnamedev} |
158 |
%{_bindir}/pango-view* |
159 |
%{_libdir}/libpango-*.so |
160 |
%{_libdir}/libpangoxft-*.so |
161 |
%{_libdir}/libpangoft2-*.so |
162 |
%{_libdir}/libpangocairo*.so |
163 |
%{_libdir}/pkgconfig/* |
164 |
%{_includedir}/* |
165 |
%{_datadir}/gir-1.0/Pango-%{gir_major}.gir |
166 |
%{_datadir}/gir-1.0/PangoCairo-%{gir_major}.gir |
167 |
%{_datadir}/gir-1.0/PangoFT2-%{gir_major}.gir |
168 |
%{_datadir}/gir-1.0/PangoXft-%{gir_major}.gir |
169 |
|
170 |
%files doc |
171 |
%doc %{_datadir}/gtk-doc/html/pango |
172 |
%doc ChangeLog |
173 |
%doc pango-view/HELLO.txt |
174 |
|
175 |
%files tests |
176 |
%{_libexecdir}/installed-tests/%{name} |
177 |
%{_datadir}/installed-tests/%{name} |