3 %bcond_without glade # Glade catalog
4 %bcond_with gtk4 # GTK+ 4 based library [doesn't build with 3.90]
6 Summary: VTE terminal widget library
7 Summary(pl.UTF-8): Biblioteka z kontrolką terminala VTE
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/vte/0.56/%{name}-%{version}.tar.xz
14 # Source0-md5: a8984cd5a101dbff0b0c875d1de3f692
15 Patch0: %{name}-wordsep.patch
16 Patch1: %{name}-pthread.patch
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake >= 1:1.9
19 BuildRequires: docbook-dtd412-xml
20 BuildRequires: gdk-pixbuf2-devel
21 BuildRequires: gettext-devel
22 %{?with_glade:BuildRequires: glade-devel >= 3}
23 BuildRequires: glib2-devel >= 1:2.40.0
24 BuildRequires: gnutls-devel >= 3.2.7
25 BuildRequires: gobject-introspection-devel >= 0.10.0
27 BuildRequires: gtk+3-devel >= 3.8.0
28 %{?with_gtk4:BuildRequires: gtk+4-devel >= 3.89}
29 BuildRequires: gtk-doc >= 1.13
30 BuildRequires: gtk-doc-automake >= 1.13
31 BuildRequires: intltool >= 0.40.0
32 BuildRequires: libstdc++-devel >= 6:5.0
33 BuildRequires: libtool >= 2:2.2
34 BuildRequires: libxml2-progs >= 2
35 BuildRequires: ncurses-devel
36 BuildRequires: pango-devel >= 1:1.22.0
37 BuildRequires: pcre2-8-devel >= 10.21
38 BuildRequires: pkgconfig
39 BuildRequires: rpmbuild(macros) >= 1.592
40 BuildRequires: tar >= 1:1.22
41 # for test application
42 #BuildRequires: vala >= 2:0.24
44 BuildRequires: zlib-devel
45 Requires: glib2 >= 1:2.40.0
46 Requires: gnutls >= 3.2.7
47 Requires: gtk+3 >= 3.8.0
48 Requires: pango >= 1:1.22.0
49 Obsoletes: vte-common < 0.42.0
50 # sr@Latn vs. sr@latin
51 Conflicts: glibc-misc < 6:2.7
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 The vte package contains a terminal widget for GTK+ 3.x. It's used by
56 gnome-terminal among other programs.
58 %description -l pl.UTF-8
59 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
60 przez gnome-terminal oraz inne programy.
63 Summary: Common files for vte and vte0
64 Summary(pl.UTF-8): Pliki wspólne dla vte i vte0
66 Requires(pre): utempter
69 Common files for GTK+ 3 based vte and GTK+ 2 based vte0.
71 %description common -l pl.UTF-8
72 Pliki wspólne dla vte opartego na GTK+ 3 oraz vte0 opartego na GTK+ 2.
75 Summary: Header files for VTE for GTK+ 3
76 Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3
77 Group: X11/Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: glib2-devel >= 1:2.40.0
80 Requires: gnutls-devel >= 3.2.7
81 Requires: gtk+3-devel >= 3.8.0
82 Requires: ncurses-devel
83 Requires: pango-devel >= 1:1.22.0
84 Requires: pcre2-8-devel >= 10.21
86 Conflicts: gnome-libs-devel < 1.4.1.2
89 This package contains header files for GTK+ 3 based vte library.
91 %description devel -l pl.UTF-8
92 Pliki nagłówkowe potrzebne do kompilowania programów używających
93 biblioteki vte opartej na GTK+ 3.
96 Summary: Static VTE library for GTK+ 3
97 Summary(pl.UTF-8): Statyczna biblioteka VTE dla GTK+ 3
98 Group: X11/Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
100 Conflicts: gnome-libs-static < 1.4.1.2
103 Static version of VTE library for GTK+ 3.
105 %description static -l pl.UTF-8
106 Statyczna wersja biblioteki VTE dla GTK+ 3.
109 Summary: VTE catalog file for Glade
110 Summary(pl.UTF-8): Plik katalogu VTE dla Glade
111 Group: X11/Development/Libraries
112 Requires: %{name}-devel = %{version}-%{release}
116 VTE catalog file for Glade.
118 %description glade -l pl.UTF-8
119 Plik katalogu VTE dla Glade.
122 Summary: Vala API for VTE library
123 Summary(pl.UTF-8): API języka Vala dla biblioteki VTE
124 Group: Development/Libraries
125 Requires: %{name}-devel = %{version}-%{release}
126 Requires: vala >= 2:0.24
127 %if "%{_rpmversion}" >= "5"
131 %description -n vala-vte
132 Vala API for VTE library.
134 %description -n vala-vte -l pl.UTF-8
135 API języka Vala dla biblioteki VTE.
138 Summary: VTE API documentation (GTK+ 3 version)
139 Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3)
141 Requires: gtk-doc-common
142 %if "%{_rpmversion}" >= "5"
147 VTE API documentation (GTK+ 3 version).
149 %description apidocs -l pl.UTF-8
150 Dokumentacja API VTE (wersja dla GTK+ 3).
166 install -d build-gtk3
169 --disable-silent-rules \
170 %{?with_glade:--enable-glade-catalogue} \
172 --enable-introspection \
173 --with-html-dir=%{_gtkdocdir}
178 install -d build-gtk4
180 # note: "3.902468" is a result of configure.ac bug (unquoted brackets)
182 --disable-silent-rules \
184 --enable-introspection \
185 --with-gtk=3.902468 \
186 --with-html-dir=%{_gtkdocdir}
191 rm -rf $RPM_BUILD_ROOT
194 %{__make} -C build-gtk4 install \
195 DESTDIR=$RPM_BUILD_ROOT
198 %{__make} -C build-gtk3 install \
199 DESTDIR=$RPM_BUILD_ROOT
201 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
203 %find_lang %{name}-2.91
206 rm -rf $RPM_BUILD_ROOT
208 %post -p /sbin/ldconfig
209 %postun -p /sbin/ldconfig
211 %files -f vte-2.91.lang
212 %defattr(644,root,root,755)
213 %doc AUTHORS ChangeLog NEWS
214 %attr(755,root,root) %{_bindir}/vte-2.91
215 %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.*
216 %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0
217 %{_libdir}/girepository-1.0/Vte-2.91.typelib
218 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{_libdir}/libvte-2.91.so
223 %{_includedir}/vte-2.91
224 %{_pkgconfigdir}/vte-2.91.pc
225 %{_datadir}/gir-1.0/Vte-2.91.gir
228 %defattr(644,root,root,755)
229 %{_libdir}/libvte-2.91.a
233 %defattr(644,root,root,755)
234 %{_datadir}/glade/catalogs/vte-2.91.xml
235 %{_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
236 %{_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png
240 %defattr(644,root,root,755)
241 %{_datadir}/vala/vapi/vte-2.91.vapi
244 %defattr(644,root,root,755)
245 %{_gtkdocdir}/vte-2.91