3 %bcond_with gtk4 # GTK+ 4 based library [doesn't build with 3.90]
5 Summary: VTE terminal widget library
6 Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE
10 # some files have LGPL v2.1+ signature, but some LGPL v3+
11 License: LGPL v3+ (library), GPL v3+ (app)
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.60/%{name}-%{version}.tar.xz
14 # Source0-md5: 4214712ecab2d50e2a3a07897c3ada49
15 Patch0: %{name}-wordsep.patch
16 URL: https://wiki.gnome.org/Apps/Terminal/VTE
17 BuildRequires: cairo-gobject-devel
18 BuildRequires: docbook-dtd412-xml
19 BuildRequires: fribidi-devel >= 1.0.0
20 BuildRequires: gdk-pixbuf2-devel
21 BuildRequires: gettext-devel
22 BuildRequires: glib2-devel >= 1:2.52.0
23 BuildRequires: gnutls-devel >= 3.2.7
24 BuildRequires: gobject-introspection-devel >= 0.10.0
26 BuildRequires: gtk+3-devel >= 3.20.0
27 %{?with_gtk4:BuildRequires: gtk+4-devel >= 4.0.0}
28 BuildRequires: gtk-doc >= 1.13
29 BuildRequires: intltool >= 0.40.0
30 BuildRequires: libicu-devel >= 4.8
31 # C++17 support (-std=gnu++17, with constexpr lambdas support)
32 BuildRequires: libstdc++-devel >= 6:7.0
33 BuildRequires: libxml2-progs >= 2
34 BuildRequires: meson >= 0.50.0
35 BuildRequires: ninja >= 1.5
36 BuildRequires: pango-devel >= 1:1.22.0
37 BuildRequires: pcre2-8-devel >= 10.21
38 BuildRequires: pkgconfig
39 BuildRequires: rpmbuild(macros) >= 1.736
40 BuildRequires: systemd-devel >= 1:220
41 BuildRequires: tar >= 1:1.22
42 BuildRequires: vala >= 2:0.24
44 BuildRequires: zlib-devel
45 Requires: fribidi >= 1.0.0
46 Requires: glib2 >= 1:2.52.0
47 Requires: gnutls >= 3.2.7
48 Requires: gtk+3 >= 3.20.0
49 Requires: libicu >= 4.8
50 Requires: pango >= 1:1.22.0
51 Requires: systemd-libs >= 1:220
52 Obsoletes: vte-common < 0.42.0
53 Obsoletes: vte-glade < 0.58.0
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 The vte package contains a terminal widget for GTK+ 3.x. It's used by
58 gnome-terminal among other programs.
60 %description -l pl.UTF-8
61 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
62 przez gnome-terminal oraz inne programy.
65 Summary: Header files for VTE for GTK+ 3
66 Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3
68 Group: X11/Development/Libraries
69 Requires: %{name} = %{version}-%{release}
70 Requires: glib2-devel >= 1:2.52.0
71 Requires: gtk+3-devel >= 3.20.0
72 Requires: pango-devel >= 1:1.22.0
73 Conflicts: gnome-libs-devel < 1.4.1.2
76 This package contains header files for GTK+ 3 based vte library.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe potrzebne do kompilowania programów używających
80 biblioteki vte opartej na GTK+ 3.
83 Summary: Vala API for VTE library
84 Summary(pl.UTF-8): API języka Vala dla biblioteki VTE
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
88 Requires: vala >= 2:0.24
89 %if "%{_rpmversion}" >= "4.6"
93 %description -n vala-vte
94 Vala API for VTE library.
96 %description -n vala-vte -l pl.UTF-8
97 API języka Vala dla biblioteki VTE.
100 Summary: VTE API documentation (GTK+ 3 version)
101 Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3)
103 Requires: gtk-doc-common
104 %if "%{_rpmversion}" >= "4.6"
109 VTE API documentation (GTK+ 3 version).
111 %description apidocs -l pl.UTF-8
112 Dokumentacja API VTE (wersja dla GTK+ 3).
122 -Dgtk4=%{__true_false gtk4}
124 %ninja_build -C build
127 rm -rf $RPM_BUILD_ROOT
129 %ninja_install -C build
131 %find_lang %{name}-2.91
134 rm -rf $RPM_BUILD_ROOT
136 %post -p /sbin/ldconfig
137 %postun -p /sbin/ldconfig
139 %files -f vte-2.91.lang
140 %defattr(644,root,root,755)
141 %doc AUTHORS NEWS README.md
142 %attr(755,root,root) %{_bindir}/vte-2.91
143 %attr(755,root,root) %{_libexecdir}/vte-urlencode-cwd
144 %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.*
145 %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0
146 %{_libdir}/girepository-1.0/Vte-2.91.typelib
147 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.csh
148 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh
149 %dir %{systemduserunitdir}/vte-spawn-.scope.d
150 %{systemduserunitdir}/vte-spawn-.scope.d/defaults.conf
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libvte-2.91.so
155 %{_includedir}/vte-2.91
156 %{_pkgconfigdir}/vte-2.91.pc
157 %{_datadir}/gir-1.0/Vte-2.91.gir
160 %defattr(644,root,root,755)
161 %{_datadir}/vala/vapi/vte-2.91.deps
162 %{_datadir}/vala/vapi/vte-2.91.vapi
165 %defattr(644,root,root,755)
166 %{_gtkdocdir}/vte-2.91