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