]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without glade # Glade catalog | |
5 | %bcond_without gtk4 # GTK+ 4 based library | |
6 | %bcond_without systemd # systemd | |
7 | ||
8 | Summary: VTE terminal widget library | |
9 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE | |
10 | Name: vte | |
11 | Version: 0.74.0 | |
12 | Release: 1 | |
13 | # some files have LGPL v2.1+ signature, but some LGPL v3+ | |
14 | License: LGPL v3+ (library), GPL v3+ (app) | |
15 | Group: X11/Libraries | |
16 | Source0: https://download.gnome.org/sources/vte/0.74/%{name}-%{version}.tar.xz | |
17 | # Source0-md5: ab2df0e0c0f197eb16eb4894bf8d2826 | |
18 | Patch0: %{name}-wordsep.patch | |
19 | URL: https://wiki.gnome.org/Apps/Terminal/VTE | |
20 | BuildRequires: cairo-gobject-devel | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: fribidi-devel >= 1.0.0 | |
23 | # C11 | |
24 | BuildRequires: gcc >= 6:4.7 | |
25 | BuildRequires: gdk-pixbuf2-devel | |
26 | BuildRequires: gettext-tools | |
27 | BuildRequires: glib2-devel >= 1:2.52.0 | |
28 | BuildRequires: gnutls-devel >= 3.2.7 | |
29 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
30 | BuildRequires: gperf | |
31 | BuildRequires: gtk+3-devel >= 3.24.0 | |
32 | %{?with_gtk4:BuildRequires: gtk4-devel >= 4.0.1} | |
33 | %{?with_apidocs:BuildRequires: gi-docgen} | |
34 | BuildRequires: intltool >= 0.40.0 | |
35 | BuildRequires: libicu-devel >= 4.8 | |
36 | # C++20 support (-std=gnu++2a, char8_t) | |
37 | BuildRequires: libstdc++-devel >= 6:9.0 | |
38 | BuildRequires: libxml2-progs >= 2 | |
39 | BuildRequires: meson >= 0.60.0 | |
40 | BuildRequires: ninja >= 1.5 | |
41 | BuildRequires: pango-devel >= 1:1.22.0 | |
42 | BuildRequires: pcre2-8-devel >= 10.21 | |
43 | BuildRequires: pkgconfig | |
44 | BuildRequires: rpm-build >= 4.6 | |
45 | BuildRequires: rpmbuild(macros) >= 1.752 | |
46 | %{?with_systemd:BuildRequires: systemd-devel >= 1:220} | |
47 | BuildRequires: tar >= 1:1.22 | |
48 | BuildRequires: vala >= 2:0.24 | |
49 | BuildRequires: xz | |
50 | BuildRequires: zlib-devel | |
51 | Requires: fribidi >= 1.0.0 | |
52 | Requires: glib2 >= 1:2.52.0 | |
53 | Requires: gnutls >= 3.2.7 | |
54 | Requires: gtk+3 >= 3.24.0 | |
55 | Requires: libicu >= 4.8 | |
56 | Requires: pango >= 1:1.22.0 | |
57 | %{?with_systemd:Requires: systemd-libs >= 1:220} | |
58 | Obsoletes: vte-common < 0.42.0 | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | %description | |
62 | The vte package contains a terminal widget for GTK+ 3.x. It's used by | |
63 | gnome-terminal among other programs. | |
64 | ||
65 | %description -l pl.UTF-8 | |
66 | Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany | |
67 | przez gnome-terminal oraz inne programy. | |
68 | ||
69 | %package devel | |
70 | Summary: Header files for VTE for GTK+ 3 | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3 | |
72 | License: LGPL v3+ | |
73 | Group: X11/Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Requires: glib2-devel >= 1:2.52.0 | |
76 | Requires: gtk+3-devel >= 3.24.0 | |
77 | Requires: pango-devel >= 1:1.22.0 | |
78 | Conflicts: gnome-libs-devel < 1.4.1.2 | |
79 | ||
80 | %description devel | |
81 | This package contains header files for GTK+ 3 based vte library. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe potrzebne do kompilowania programów używających | |
85 | biblioteki vte opartej na GTK+ 3. | |
86 | ||
87 | %package glade | |
88 | Summary: VTE catalog file for Glade | |
89 | Summary(pl.UTF-8): Plik katalogu VTE dla Glade | |
90 | Group: X11/Development/Libraries | |
91 | Requires: %{name}-devel = %{version}-%{release} | |
92 | Requires: glade >= 3 | |
93 | ||
94 | %description glade | |
95 | VTE catalog file for Glade. | |
96 | ||
97 | %description glade -l pl.UTF-8 | |
98 | Plik katalogu VTE dla Glade. | |
99 | ||
100 | %package -n vala-vte | |
101 | Summary: Vala API for VTE library | |
102 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE | |
103 | License: LGPL v3+ | |
104 | Group: Development/Libraries | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
106 | Requires: vala >= 2:0.24 | |
107 | BuildArch: noarch | |
108 | ||
109 | %description -n vala-vte | |
110 | Vala API for VTE library. | |
111 | ||
112 | %description -n vala-vte -l pl.UTF-8 | |
113 | API języka Vala dla biblioteki VTE. | |
114 | ||
115 | %package apidocs | |
116 | Summary: VTE API documentation (GTK+ 3 version) | |
117 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3) | |
118 | Group: Documentation | |
119 | Requires: gtk-doc-common | |
120 | BuildArch: noarch | |
121 | ||
122 | %description apidocs | |
123 | VTE API documentation (GTK+ 3 version). | |
124 | ||
125 | %description apidocs -l pl.UTF-8 | |
126 | Dokumentacja API VTE (wersja dla GTK+ 3). | |
127 | ||
128 | %package gtk4 | |
129 | Summary: VTE terminal widget library (GTK 4 version) | |
130 | Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE (wersja dla GTK 4) | |
131 | Group: Libraries | |
132 | Requires: fribidi >= 1.0.0 | |
133 | Requires: glib2 >= 1:2.52.0 | |
134 | Requires: gnutls >= 3.2.7 | |
135 | Requires: gtk4 >= 4.0.1 | |
136 | Requires: libicu >= 4.8 | |
137 | Requires: pango >= 1:1.22.0 | |
138 | %{?with_systemd:Requires: systemd-libs >= 1:220} | |
139 | # for common files | |
140 | Suggests: %{name} = %{version}-%{release} | |
141 | ||
142 | %description gtk4 | |
143 | The vte package contains a terminal widget for GTK 4.x. It's used by | |
144 | gnome-terminal among other programs. | |
145 | ||
146 | %description gtk4 -l pl.UTF-8 | |
147 | Ten pakiet zawiera kontrolkę terminala dla GTK 4. Jest używany przez | |
148 | gnome-terminal oraz inne programy. | |
149 | ||
150 | %package gtk4-devel | |
151 | Summary: Header files for VTE for GTK 4 | |
152 | Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK 4 | |
153 | License: LGPL v3+ | |
154 | Group: X11/Development/Libraries | |
155 | Requires: %{name}-gtk4 = %{version}-%{release} | |
156 | Requires: glib2-devel >= 1:2.52.0 | |
157 | Requires: gtk4-devel >= 4.0.1 | |
158 | Requires: pango-devel >= 1:1.22.0 | |
159 | ||
160 | %description gtk4-devel | |
161 | This package contains header files for GTK 4 based vte library. | |
162 | ||
163 | %description gtk4-devel -l pl.UTF-8 | |
164 | Pliki nagłówkowe potrzebne do kompilowania programów używających | |
165 | biblioteki vte opartej na GTK 4. | |
166 | ||
167 | %package -n vala-vte-gtk4 | |
168 | Summary: Vala API for VTE library (GTK 4 version) | |
169 | Summary(pl.UTF-8): API języka Vala dla biblioteki VTE (wersja dla GTK 4) | |
170 | License: LGPL v3+ | |
171 | Group: Development/Libraries | |
172 | Requires: %{name}-gtk4-devel = %{version}-%{release} | |
173 | Requires: vala >= 2:0.24 | |
174 | BuildArch: noarch | |
175 | ||
176 | %description -n vala-vte-gtk4 | |
177 | Vala API for VTE library (GTK 4 version). | |
178 | ||
179 | %description -n vala-vte-gtk4 -l pl.UTF-8 | |
180 | API języka Vala dla biblioteki VTE (wersja dla GTK 4). | |
181 | ||
182 | %package gtk4-apidocs | |
183 | Summary: VTE API documentation (GTK 4 version) | |
184 | Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK 4) | |
185 | Group: Documentation | |
186 | Requires: gtk-doc-common | |
187 | BuildArch: noarch | |
188 | ||
189 | %description gtk4-apidocs | |
190 | VTE API documentation (GTK 4 version). | |
191 | ||
192 | %description gtk4-apidocs -l pl.UTF-8 | |
193 | Dokumentacja API VTE (wersja dla GTK 4). | |
194 | ||
195 | %prep | |
196 | %setup -q | |
197 | %patch0 -p1 | |
198 | ||
199 | # it seems 9.0 with -std=gnu++2a is sufficient for 0.68.x (-std=gnu++20 option was added in 10.0) | |
200 | %{__sed} -i -e '/cxx_req_std/ s/gnu++20/gnu++2a/; /gxx_req_version/ s/10\.0/9.0/' meson.build | |
201 | # ...except for single test, which wants consteval and constinit | |
202 | %{__sed} -i -e 's/consteval //;s/constinit //' src/pastify-test.cc | |
203 | ||
204 | %build | |
205 | %meson build \ | |
206 | %{?with_apidocs:-Ddocs=true} \ | |
207 | %{!?with_glade:-Dglade=false} \ | |
208 | -Dgtk3=true \ | |
209 | -Dgtk4=%{__true_false gtk4} \ | |
210 | %{!?with_systemd:-D_systemd=false} \ | |
211 | ||
212 | %ninja_build -C build | |
213 | ||
214 | %install | |
215 | rm -rf $RPM_BUILD_ROOT | |
216 | ||
217 | %ninja_install -C build | |
218 | ||
219 | %if %{with apidocs} | |
220 | # FIXME: where to package gi-docgen generated docs? | |
221 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
222 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/vte-2.91* $RPM_BUILD_ROOT%{_gtkdocdir} | |
223 | %endif | |
224 | ||
225 | %find_lang %{name}-2.91 | |
226 | ||
227 | %clean | |
228 | rm -rf $RPM_BUILD_ROOT | |
229 | ||
230 | %post -p /sbin/ldconfig | |
231 | %postun -p /sbin/ldconfig | |
232 | ||
233 | %post gtk4 -p /sbin/ldconfig | |
234 | %postun gtk4 -p /sbin/ldconfig | |
235 | ||
236 | %files -f vte-2.91.lang | |
237 | %defattr(644,root,root,755) | |
238 | %doc AUTHORS ChangeLog README.md | |
239 | %attr(755,root,root) %{_bindir}/vte-2.91 | |
240 | # gtk-version neutral, move to common? | |
241 | %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd | |
242 | %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.* | |
243 | %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0 | |
244 | %{_libdir}/girepository-1.0/Vte-2.91.typelib | |
245 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh | |
246 | %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh | |
247 | %if %{with systemd} | |
248 | %dir %{systemduserunitdir}/vte-spawn-.scope.d | |
249 | %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf | |
250 | %endif | |
251 | ||
252 | %files devel | |
253 | %defattr(644,root,root,755) | |
254 | %attr(755,root,root) %{_libdir}/libvte-2.91.so | |
255 | %{_includedir}/vte-2.91 | |
256 | %{_pkgconfigdir}/vte-2.91.pc | |
257 | %{_datadir}/gir-1.0/Vte-2.91.gir | |
258 | ||
259 | %if %{with glade} | |
260 | %files glade | |
261 | %defattr(644,root,root,755) | |
262 | %{_datadir}/glade/catalogs/vte-2.91.xml | |
263 | %{_datadir}/glade/pixmaps/hicolor/*x*/actions/widget-vte-terminal.png | |
264 | %endif | |
265 | ||
266 | %files -n vala-vte | |
267 | %defattr(644,root,root,755) | |
268 | %{_datadir}/vala/vapi/vte-2.91.deps | |
269 | %{_datadir}/vala/vapi/vte-2.91.vapi | |
270 | ||
271 | %if %{with apidocs} | |
272 | %files apidocs | |
273 | %defattr(644,root,root,755) | |
274 | %{_gtkdocdir}/vte-2.91 | |
275 | %endif | |
276 | ||
277 | %if %{with gtk4} | |
278 | %files gtk4 | |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_bindir}/vte-2.91-gtk4 | |
281 | %attr(755,root,root) %{_libdir}/libvte-2.91-gtk4.so.0 | |
282 | %{_libdir}/girepository-1.0/Vte-3.91.typelib | |
283 | ||
284 | %files gtk4-devel | |
285 | %defattr(644,root,root,755) | |
286 | %attr(755,root,root) %{_libdir}/libvte-2.91-gtk4.so | |
287 | %{_includedir}/vte-2.91-gtk4 | |
288 | %{_pkgconfigdir}/vte-2.91-gtk4.pc | |
289 | %{_datadir}/gir-1.0/Vte-3.91.gir | |
290 | ||
291 | %files -n vala-vte-gtk4 | |
292 | %defattr(644,root,root,755) | |
293 | %{_datadir}/vala/vapi/vte-2.91-gtk4.deps | |
294 | %{_datadir}/vala/vapi/vte-2.91-gtk4.vapi | |
295 | ||
296 | %if %{with apidocs} | |
297 | %files gtk4-apidocs | |
298 | %defattr(644,root,root,755) | |
299 | %{_gtkdocdir}/vte-2.91-gtk4 | |
300 | %endif | |
301 | %endif |