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.48/%{name}-%{version}.tar.xz
14 # Source0-md5: b300675ac5f269aa6eb48fe89a0d726d
15 Patch0: %{name}-wordsep.patch
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake >= 1:1.9
18 BuildRequires: docbook-dtd412-xml
19 BuildRequires: gettext-devel
20 %{?with_glade:BuildRequires: glade-devel >= 3}
21 BuildRequires: glib2-devel >= 1:2.40.0
22 BuildRequires: gnutls-devel >= 3.2.7
23 BuildRequires: gobject-introspection-devel >= 0.10.0
25 BuildRequires: gtk+3-devel >= 3.8.0
26 %{?with_gtk4:BuildRequires: gtk+4-devel >= 3.89}
27 BuildRequires: gtk-doc >= 1.13
28 BuildRequires: gtk-doc-automake >= 1.13
29 BuildRequires: intltool >= 0.40.0
30 BuildRequires: libstdc++-devel >= 6:4.7
31 BuildRequires: libtool >= 2:2.2
32 BuildRequires: libxml2-progs >= 2
33 BuildRequires: ncurses-devel
34 BuildRequires: pango-devel >= 1:1.22.0
35 BuildRequires: pcre2-8-devel >= 10.21
36 BuildRequires: pkgconfig
37 BuildRequires: rpmbuild(macros) >= 1.592
38 BuildRequires: tar >= 1:1.22
39 # for test application
40 #BuildRequires: vala >= 2:0.24
42 BuildRequires: zlib-devel
43 Requires: glib2 >= 1:2.40.0
44 Requires: gnutls >= 3.2.7
45 Requires: gtk+3 >= 3.8.0
46 Requires: pango >= 1:1.22.0
47 Obsoletes: vte-common < 0.42.0
48 # sr@Latn vs. sr@latin
49 Conflicts: glibc-misc < 6:2.7
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 The vte package contains a terminal widget for GTK+ 3.x. It's used by
54 gnome-terminal among other programs.
56 %description -l pl.UTF-8
57 Ten pakiet zawiera kontrolkę terminala dla GTK+ 3.x. Jest używany
58 przez gnome-terminal oraz inne programy.
61 Summary: Common files for vte and vte0
62 Summary(pl.UTF-8): Pliki wspólne dla vte i vte0
64 Requires(pre): utempter
67 Common files for GTK+ 3 based vte and GTK+ 2 based vte0.
69 %description common -l pl.UTF-8
70 Pliki wspólne dla vte opartego na GTK+ 3 oraz vte0 opartego na GTK+ 2.
73 Summary: Header files for VTE for GTK+ 3
74 Summary(pl.UTF-8): Pliki nagłówkowe VTE dla GTK+ 3
75 Group: X11/Development/Libraries
76 Requires: %{name} = %{version}-%{release}
77 Requires: glib2-devel >= 1:2.40.0
78 Requires: gnutls-devel >= 3.2.7
79 Requires: gtk+3-devel >= 3.8.0
80 Requires: ncurses-devel
81 Requires: pango-devel >= 1:1.22.0
82 Requires: pcre2-8-devel >= 10.21
84 Conflicts: gnome-libs-devel < 1.4.1.2
87 This package contains header files for GTK+ 3 based vte library.
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe potrzebne do kompilowania programów używających
91 biblioteki vte opartej na GTK+ 3.
94 Summary: Static VTE library for GTK+ 3
95 Summary(pl.UTF-8): Statyczna biblioteka VTE dla GTK+ 3
96 Group: X11/Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
98 Conflicts: gnome-libs-static < 1.4.1.2
101 Static version of VTE library for GTK+ 3.
103 %description static -l pl.UTF-8
104 Statyczna wersja biblioteki VTE dla GTK+ 3.
107 Summary: VTE catalog file for Glade
108 Summary(pl.UTF-8): Plik katalogu VTE dla Glade
109 Group: X11/Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
114 VTE catalog file for Glade.
116 %description glade -l pl.UTF-8
117 Plik katalogu VTE dla Glade.
120 Summary: Vala API for VTE library
121 Summary(pl.UTF-8): API języka Vala dla biblioteki VTE
122 Group: Development/Libraries
123 Requires: %{name}-devel = %{version}-%{release}
124 Requires: vala >= 2:0.24
125 %if "%{_rpmversion}" >= "5"
129 %description -n vala-vte
130 Vala API for VTE library.
132 %description -n vala-vte -l pl.UTF-8
133 API języka Vala dla biblioteki VTE.
136 Summary: VTE API documentation (GTK+ 3 version)
137 Summary(pl.UTF-8): Dokumentacja API VTE (wersja dla GTK+ 3)
139 Requires: gtk-doc-common
140 %if "%{_rpmversion}" >= "5"
145 VTE API documentation (GTK+ 3 version).
147 %description apidocs -l pl.UTF-8
148 Dokumentacja API VTE (wersja dla GTK+ 3).
163 install -d build-gtk3
166 --disable-silent-rules \
167 %{?with_glade:--enable-glade-catalogue} \
169 --enable-introspection \
170 --with-html-dir=%{_gtkdocdir}
175 install -d build-gtk4
177 # note: "3.902468" is a result of configure.ac bug (unquoted brackets)
179 --disable-silent-rules \
181 --enable-introspection \
182 --with-gtk=3.902468 \
183 --with-html-dir=%{_gtkdocdir}
188 rm -rf $RPM_BUILD_ROOT
191 %{__make} -C build-gtk4 install \
192 DESTDIR=$RPM_BUILD_ROOT
195 %{__make} -C build-gtk3 install \
196 DESTDIR=$RPM_BUILD_ROOT
198 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
200 %find_lang %{name}-2.91
203 rm -rf $RPM_BUILD_ROOT
205 %post -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
208 %files -f vte-2.91.lang
209 %defattr(644,root,root,755)
210 %doc AUTHORS ChangeLog NEWS README
211 %attr(755,root,root) %{_bindir}/vte-2.91
212 %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0
214 %{_libdir}/girepository-1.0/Vte-2.91.typelib
215 %config(noreplace) %verify(not md5 mtime size) /etc/profile.d/vte.sh
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libvte-2.91.so
220 %{_includedir}/vte-2.91
221 %{_pkgconfigdir}/vte-2.91.pc
222 %{_datadir}/gir-1.0/Vte-2.91.gir
225 %defattr(644,root,root,755)
226 %{_libdir}/libvte-2.91.a
230 %defattr(644,root,root,755)
231 %{_datadir}/glade/catalogs/vte-2.91.xml
232 %{_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
233 %{_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png
237 %defattr(644,root,root,755)
238 %{_datadir}/vala/vapi/vte-2.91.vapi
241 %defattr(644,root,root,755)
242 %{_gtkdocdir}/vte-2.91