]> git.pld-linux.org Git - packages/vte.git/blobdiff - vte.spec
up to 0.54.2
[packages/vte.git] / vte.spec
index a3393aa66661f11b6e7a863c0a1996e8d0ccd02d..371e79cf5120551b6182322174f1b5942fa51ed5 100644 (file)
--- a/vte.spec
+++ b/vte.spec
@@ -1,25 +1,30 @@
 #
 # Conditional build:
 %bcond_without glade   # Glade catalog
+%bcond_with    gtk4    # GTK+ 4 based library [doesn't build with 3.90]
 
 Summary:       VTE terminal widget library
 Summary(pl.UTF-8):     Biblioteka z kontrolkÄ… terminala VTE
 Name:          vte
-Version:       0.48.1
+Version:       0.54.2
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/vte/0.48/%{name}-%{version}.tar.xz
-# Source0-md5: de6dcb6af34ffe18763d17da3900fb20
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/vte/0.54/%{name}-%{version}.tar.xz
+# Source0-md5: 054a8a46b9de9078f81931311cf27a68
+Patch0:                %{name}-wordsep.patch
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.9
 BuildRequires: docbook-dtd412-xml
+BuildRequires: gdk-pixbuf2-devel
 BuildRequires: gettext-devel
 %{?with_glade:BuildRequires:   glade-devel >= 3}
 BuildRequires: glib2-devel >= 1:2.40.0
 BuildRequires: gnutls-devel >= 3.2.7
 BuildRequires: gobject-introspection-devel >= 0.10.0
+BuildRequires: gperf
 BuildRequires: gtk+3-devel >= 3.8.0
+%{?with_gtk4:BuildRequires:    gtk+4-devel >= 3.89}
 BuildRequires: gtk-doc >= 1.13
 BuildRequires: gtk-doc-automake >= 1.13
 BuildRequires: intltool >= 0.40.0
@@ -145,6 +150,7 @@ Dokumentacja API VTE (wersja dla GTK+ 3).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gtkdocize}
@@ -155,18 +161,39 @@ Dokumentacja API VTE (wersja dla GTK+ 3).
 %{__autoheader}
 %{__automake}
 %{__autoconf}
-%configure \
+install -d build-gtk3
+cd build-gtk3
+../%configure \
        --disable-silent-rules \
        %{?with_glade:--enable-glade-catalogue} \
        --enable-gtk-doc \
        --enable-introspection \
        --with-html-dir=%{_gtkdocdir}
 %{__make}
+cd ..
+
+%if %{with gtk4}
+install -d build-gtk4
+cd build-gtk4
+# note: "3.902468" is a result of configure.ac bug (unquoted brackets)
+../%configure \
+       --disable-silent-rules \
+       --enable-gtk-doc \
+       --enable-introspection \
+       --with-gtk=3.902468 \
+       --with-html-dir=%{_gtkdocdir}
+%{__make}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%if %{with gtk4}
+%{__make} -C build-gtk4 install \
+       DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%{__make} -C build-gtk3 install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
@@ -181,7 +208,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f vte-2.91.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS ChangeLog NEWS
 %attr(755,root,root) %{_bindir}/vte-2.91
 %attr(755,root,root) %{_libdir}/libvte-2.91.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libvte-2.91.so.0
This page took 0.027328 seconds and 4 git commands to generate.