]> git.pld-linux.org Git - packages/vte.git/blobdiff - vte.spec
up to 0.54.2
[packages/vte.git] / vte.spec
index a9e0032ee1018b8a6ed96bf8e6c8a6d421795a10..371e79cf5120551b6182322174f1b5942fa51ed5 100644 (file)
--- a/vte.spec
+++ b/vte.spec
@@ -1,37 +1,44 @@
 #
 # 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.42.4
+Version:       0.54.2
 Release:       1
 License:       LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/vte/0.42/%{name}-%{version}.tar.xz
-# Source0-md5: 92f5f49f87a9157e298bba5be8ecf7a5
+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
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 6:4.7
 BuildRequires: libtool >= 2:2.2
 BuildRequires: libxml2-progs >= 2
 BuildRequires: ncurses-devel
 BuildRequires: pango-devel >= 1:1.22.0
+BuildRequires: pcre2-8-devel >= 10.21
 BuildRequires: pkgconfig
 BuildRequires: rpmbuild(macros) >= 1.592
 BuildRequires: tar >= 1:1.22
-#BuildRequires:        vala >= 2:0.18
+# for test application
+#BuildRequires:        vala >= 2:0.24
 BuildRequires: xz
 BuildRequires: zlib-devel
 Requires:      glib2 >= 1:2.40.0
@@ -73,6 +80,7 @@ Requires:     gnutls-devel >= 3.2.7
 Requires:      gtk+3-devel >= 3.8.0
 Requires:      ncurses-devel
 Requires:      pango-devel >= 1:1.22.0
+Requires:      pcre2-8-devel >= 10.21
 Requires:      zlib-devel
 Conflicts:     gnome-libs-devel < 1.4.1.2
 
@@ -114,7 +122,10 @@ Summary:   Vala API for VTE library
 Summary(pl.UTF-8):     API jÄ™zyka Vala dla biblioteki VTE
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
-Requires:      vala >= 2:0.18
+Requires:      vala >= 2:0.24
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description -n vala-vte
 Vala API for VTE library.
@@ -139,6 +150,7 @@ Dokumentacja API VTE (wersja dla GTK+ 3).
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gtkdocize}
@@ -149,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
@@ -175,7 +208,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f vte-2.91.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog MAINTAINERS 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.05043 seconds and 4 git commands to generate.