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.48.0 |
17 |
Release: %mkrel 1 |
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 |
# The bad symptoms that are fixed by this patch still appear when it is not |
23 |
# applied. Restoring ( -- shlomif ) |
24 |
Patch1: pango-mga25737.patch |
25 |
Patch2: pango-fix-gnumeric-crash.patch |
26 |
BuildRequires: pkgconfig(cairo) |
27 |
BuildRequires: pkgconfig(fontconfig) |
28 |
BuildRequires: pkgconfig(freetype2) |
29 |
BuildRequires: pkgconfig(glib-2.0) |
30 |
BuildRequires: pkgconfig(gmodule-no-export-2.0) |
31 |
BuildRequires: pkgconfig(gobject-2.0) |
32 |
BuildRequires: pkgconfig(harfbuzz) |
33 |
BuildRequires: pkgconfig(libthai) |
34 |
BuildRequires: pkgconfig(xft) |
35 |
BuildRequires: pkgconfig(xrender) |
36 |
BuildRequires: pkgconfig(fribidi) |
37 |
BuildRequires: meson |
38 |
BuildRequires: pkgconfig(gobject-introspection-1.0) |
39 |
%if %{with gtkdoc} |
40 |
BuildRequires: gtk-doc |
41 |
BuildRequires: libxslt-proc |
42 |
BuildRequires: docbook-style-xsl |
43 |
BuildRequires: docbook-dtd412-xml |
44 |
%endif |
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}-%{release} |
57 |
Obsoletes: %{lib_name}-modules < 1.37.0 |
58 |
Conflicts: gir-repository < 0.6.5 |
59 |
|
60 |
%description -n %{lib_name} |
61 |
A library to handle Unicode strings as well as complex bidirectional |
62 |
or context dependent shaped strings. |
63 |
It is the next step on Gtk+ internationalization. |
64 |
|
65 |
%package -n %{libnamedev} |
66 |
Summary: %{summary} |
67 |
Group: Development/GNOME and GTK+ |
68 |
Obsoletes: %{name}-devel |
69 |
Provides: %{name}-devel = %{version}-%{release} |
70 |
Provides: lib%{name}-devel = %{version}-%{release} |
71 |
Provides: lib%{name}%{api_version}-devel = %{version}-%{release} |
72 |
Requires: %{name} = %{version} |
73 |
Requires: %{lib_name} = %{version} |
74 |
Requires: %{gir_name} = %{version} |
75 |
Recommends: %{name}-doc >= %{version} |
76 |
|
77 |
%description -n %{libnamedev} |
78 |
This package includes the static libraries and header files |
79 |
for the pango package. |
80 |
|
81 |
%package -n %{gir_name} |
82 |
Summary: GObject Introspection interface description for %{name} |
83 |
Group: System/Libraries |
84 |
Requires: %{lib_name} = %{version}-%{release} |
85 |
Conflicts: %{mklibname %{name}1.0-gir 1.0}} < 1.29.3-4 |
86 |
|
87 |
%description -n %{gir_name} |
88 |
GObject Introspection interface description for %{name}. |
89 |
|
90 |
%package doc |
91 |
Summary: %{summary} |
92 |
Group: Development/GNOME and GTK+ |
93 |
BuildArch: noarch |
94 |
|
95 |
%description doc |
96 |
This package provides API documentation for Pango. |
97 |
|
98 |
%package tests |
99 |
Summary: Tests for the %{name} package |
100 |
Group: Development/GNOME and GTK+ |
101 |
Requires: %{name} = %{version}-%{release} |
102 |
|
103 |
%description tests |
104 |
The %{name}-tests package contains tests that can be used to verify |
105 |
the functionality of the installed %{name} package. |
106 |
|
107 |
%prep |
108 |
%autosetup -p1 |
109 |
|
110 |
# Add missing executable bits to fix the build |
111 |
chmod +x tests/gen-all-unicode.py |
112 |
chmod +x tests/gen-installed-test.py |
113 |
|
114 |
%build |
115 |
%meson \ |
116 |
-Dinstall-tests=true \ |
117 |
-Dgtk_doc=%{?with_gtkdoc:true}%{!?with_gtkdoc:false} |
118 |
%meson_build |
119 |
|
120 |
%check |
121 |
#disabled for https://bugzilla.gnome.org/show_bug.cgi?id=672981 |
122 |
%meson_check || true |
123 |
|
124 |
%install |
125 |
%meson_install |
126 |
|
127 |
%files |
128 |
%doc README.md THANKS |
129 |
%doc NEWS |
130 |
%if %{with gtkdoc} |
131 |
%{_mandir}/man1/* |
132 |
%endif |
133 |
%{_bindir}/pango-list |
134 |
|
135 |
%files -n %{lib_name} |
136 |
%{_libdir}/libpango-%{api_version}.so.%{lib_major}{,.*} |
137 |
%{_libdir}/libpangoft2-%{api_version}.so.%{lib_major}{,.*} |
138 |
%{_libdir}/libpangoxft-%{api_version}.so.%{lib_major}{,.*} |
139 |
%{_libdir}/libpangocairo-%{api_version}.so.%{lib_major}{,.*} |
140 |
|
141 |
%files -n %{gir_name} |
142 |
%{_libdir}/girepository-1.0/Pango-%{gir_major}.typelib |
143 |
%{_libdir}/girepository-1.0/PangoCairo-%{gir_major}.typelib |
144 |
%{_libdir}/girepository-1.0/PangoFT2-%{gir_major}.typelib |
145 |
%{_libdir}/girepository-1.0/PangoXft-%{gir_major}.typelib |
146 |
%{_libdir}/girepository-1.0/PangoFc-%{gir_major}.typelib |
147 |
%{_libdir}/girepository-1.0/PangoOT-%{gir_major}.typelib |
148 |
|
149 |
%files -n %{libnamedev} |
150 |
%{_bindir}/pango-view* |
151 |
%{_libdir}/libpango-*.so |
152 |
%{_libdir}/libpangoxft-*.so |
153 |
%{_libdir}/libpangoft2-*.so |
154 |
%{_libdir}/libpangocairo*.so |
155 |
%{_libdir}/pkgconfig/* |
156 |
%{_includedir}/* |
157 |
%{_datadir}/gir-1.0/Pango-%{gir_major}.gir |
158 |
%{_datadir}/gir-1.0/PangoCairo-%{gir_major}.gir |
159 |
%{_datadir}/gir-1.0/PangoFT2-%{gir_major}.gir |
160 |
%{_datadir}/gir-1.0/PangoXft-%{gir_major}.gir |
161 |
%{_datadir}/gir-1.0/PangoFc-%{gir_major}.gir |
162 |
%{_datadir}/gir-1.0/PangoOT-%{gir_major}.gir |
163 |
|
164 |
%if %{with gtkdoc} |
165 |
%files doc |
166 |
%doc %{_datadir}/gtk-doc/html/pango |
167 |
%doc utils/HELLO.txt |
168 |
%endif |
169 |
|
170 |
%files tests |
171 |
%{_libexecdir}/installed-tests/%{name} |
172 |
%{_datadir}/installed-tests/%{name} |