-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpango.spec
245 lines (211 loc) · 6.88 KB
/
pango.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#
# Conditional build:
%bcond_without apidocs # gi documentation
%bcond_without libthai # thai-lang module
%bcond_without static_libs # static libraries
%bcond_with sysprof # sysprof tracing support
Summary: System for layout and rendering of internationalized text
Summary(pl.UTF-8): System renderowania międzynarodowego tekstu
Summary(pt_BR.UTF-8): Sistema para layout e renderização de texto internacionalizado
Name: pango
Version: 1.56.2
Release: 1
Epoch: 1
License: LGPL v2+
Group: X11/Libraries
Source0: https://download.gnome.org/sources/pango/1.56/%{name}-%{version}.tar.xz
# Source0-md5: 24ea1f5c71f8997537d03883687b2a99
URL: https://gnome.pages.gitlab.gnome.org/pango/Pango/
# cairo-ft cairo-pdf cairo-png cairo-ps cairo-xlib
BuildRequires: cairo-devel >= 1.18.0
BuildRequires: cairo-gobject-devel >= 1.18.0
%{?with_apidocs:BuildRequires: docutils >= 0.13.1}
BuildRequires: fontconfig-devel >= 1:2.15.0
BuildRequires: freetype-devel >= 2.1.7
BuildRequires: fribidi-devel >= 1.0.6
%{?with_apidocs:BuildRequires: gi-docgen >= 2021.1}
BuildRequires: glib2-devel >= 1:2.80
BuildRequires: gobject-introspection-devel >= 0.9.5
BuildRequires: harfbuzz-devel >= 8.4.0
BuildRequires: harfbuzz-gobject-devel >= 8.4.0
%{?with_libthai:BuildRequires: libthai-devel >= 0.1.9}
BuildRequires: meson >= 1.2.0
BuildRequires: ninja >= 1.5
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.042
%{?with_sysprof:BuildRequires: sysprof-devel >= 3.38}
BuildRequires: tar >= 1:1.22
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXft-devel >= 2.1.0
BuildRequires: xorg-lib-libXrender-devel
BuildRequires: xz
Requires: cairo >= 1.18.0
Requires: fontconfig-libs >= 1:2.15.0
Requires: freetype >= 2.1.7
Requires: fribidi >= 1.0.6
Requires: glib2 >= 1:2.80
Requires: harfbuzz >= 8.4.0
Obsoletes: libpango24 < 1
Obsoletes: pango-modules < 1:1.38.0-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
System for layout and rendering of internationalized text.
%description -l pl.UTF-8
System obsługi i renderowania międzynarodowego tekstu.
%description -l pt_BR.UTF-8
Pango é um sistema para layout e renderização de texto
internacionalizado.
%package tools
Summary: Pango tools
Summary(pl.UTF-8): Narzędzia pango
Group: X11/Applications
Requires: %{name} = %{epoch}:%{version}-%{release}
# "gm convert" optionally used in pango-view
Suggests: GraphicsMagick
Obsoletes: pango-view < 1:1.42.2
%description tools
Pango tools:
- text viewer
- list availabe fonts
%description tools -l pl.UTF-8
Narzędzia pango:
- przeglądarka tekstu
- wyświetlanie dostępnych fontów
%package devel
Summary: Header files for Pango libraries
Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Pango
Group: X11/Development/Libraries
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: cairo-devel >= 1.18.0
Requires: fontconfig-devel >= 1:2.15.0
Requires: freetype-devel >= 2.1.7
Requires: fribidi-devel >= 1.0.6
Requires: glib2-devel >= 1:2.80
Requires: harfbuzz-devel >= 8.4.0
%{?with_libthai:Requires: libthai-devel >= 0.1.9}
Requires: xorg-lib-libX11-devel
Requires: xorg-lib-libXft-devel >= 2.1.0
Obsoletes: libpango24-devel < 1
%description devel
Header files for Pango libraries.
%description devel -l pl.UTF-8
Pliki nagłówkowe bibliotek Pango.
%package static
Summary: Static pango libraries
Summary(pl.UTF-8): Biblioteki statyczne pango
Group: X11/Development/Libraries
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Static pango libraries.
%description static -l pl.UTF-8
Biblioteki statyczne pango.
%package apidocs
Summary: Pango API documentation
Summary(pl.UTF-8): Dokumentacja API pango
Group: Documentation
BuildArch: noarch
%description apidocs
Pango API documentation.
%description apidocs -l pl.UTF-8
Dokumentacja API pango.
%package examples
Summary: pango - example programs
Summary(pl.UTF-8): pango - przykładowe programy
Group: X11/Development/Libraries
BuildArch: noarch
%description examples
pango - example programs.
%description examples -l pl.UTF-8
pango - przykładowe programy.
%prep
%setup -q
%build
%meson \
%{!?with_static_libs:--default-library=shared} \
-Ddocumentation=%{__true_false apidocs} \
-Dintrospection=enabled \
-Dman-pages=%{__true_false apidocs} \
%{?with_sysprof:-Dsysprof=enabled}
%meson_build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%meson_install
%if %{with apidocs}
install -d $RPM_BUILD_ROOT%{_gidocdir}
%{__mv} $RPM_BUILD_ROOT%{_docdir}/Pango* $RPM_BUILD_ROOT%{_gidocdir}
%endif
cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc NEWS README.md THANKS
%attr(755,root,root) %{_libdir}/libpango-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libpango-1.0.so.0
%attr(755,root,root) %{_libdir}/libpangocairo-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libpangocairo-1.0.so.0
%attr(755,root,root) %{_libdir}/libpangoft2-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libpangoft2-1.0.so.0
%attr(755,root,root) %{_libdir}/libpangoxft-1.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libpangoxft-1.0.so.0
%{_libdir}/girepository-1.0/Pango-1.0.typelib
%{_libdir}/girepository-1.0/PangoCairo-1.0.typelib
%{_libdir}/girepository-1.0/PangoFT2-1.0.typelib
%{_libdir}/girepository-1.0/PangoFc-1.0.typelib
%{_libdir}/girepository-1.0/PangoOT-1.0.typelib
%{_libdir}/girepository-1.0/PangoXft-1.0.typelib
%files tools
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/pango-list
%attr(755,root,root) %{_bindir}/pango-segmentation
%attr(755,root,root) %{_bindir}/pango-view
%if %{with apidocs}
%{_mandir}/man1/pango-list.1*
%{_mandir}/man1/pango-segmentation.1*
%{_mandir}/man1/pango-view.1*
%endif
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpango-1.0.so
%attr(755,root,root) %{_libdir}/libpangocairo-1.0.so
%attr(755,root,root) %{_libdir}/libpangoft2-1.0.so
%attr(755,root,root) %{_libdir}/libpangoxft-1.0.so
%{_datadir}/gir-1.0/Pango-1.0.gir
%{_datadir}/gir-1.0/PangoCairo-1.0.gir
%{_datadir}/gir-1.0/PangoFT2-1.0.gir
%{_datadir}/gir-1.0/PangoFc-1.0.gir
%{_datadir}/gir-1.0/PangoOT-1.0.gir
%{_datadir}/gir-1.0/PangoXft-1.0.gir
%{_includedir}/pango-1.0
%{_pkgconfigdir}/pango.pc
%{_pkgconfigdir}/pangocairo.pc
%{_pkgconfigdir}/pangofc.pc
%{_pkgconfigdir}/pangoft2.pc
%{_pkgconfigdir}/pangoot.pc
%{_pkgconfigdir}/pangoxft.pc
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libpango-1.0.a
%{_libdir}/libpangocairo-1.0.a
%{_libdir}/libpangoft2-1.0.a
%{_libdir}/libpangoxft-1.0.a
%endif
%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gidocdir}/Pango
%{_gidocdir}/PangoCairo
%{_gidocdir}/PangoFT2
%{_gidocdir}/PangoFc
%{_gidocdir}/PangoOT
%{_gidocdir}/PangoXft
%endif
%files examples
%defattr(644,root,root,755)
%{_examplesdir}/%{name}-%{version}