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