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