Accepting request 186069 from home:dimstar:branches:GNOME:Factory

- Add anjuta-vala-0.22.patch: Allow building with vala 0.22.
- Add gnome-common BuildRequires and call to gnome-autogen.sh, as
  above patch touches the build system.
- Change pkgconfig(libvala-0.20) BuildRequires to
  pkgconfig(libvala-0.22) in order to perform the switch to Vala
  0.22.
- Stop passing obsolete --disable-scrollkeeper to configure.

OBS-URL: https://build.opensuse.org/request/show/186069
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/anjuta?expand=0&rev=157
This commit is contained in:
Dominique Leuenberger 2013-08-06 11:30:15 +00:00 committed by Git OBS Bridge
parent cf0e25f1a7
commit 0662cd18e9
3 changed files with 52 additions and 2 deletions

33
anjuta-vala-0.22.patch Normal file
View File

@ -0,0 +1,33 @@
From b0adfbe1197ad97f39e5db583fdc63f78c3fbff3 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Tue, 6 Aug 2013 11:17:45 +0200
Subject: [PATCH] build: add support for libvala-0.22
To make maintenance a little bit easier in the future, rewrite the
detection to use foreach instead of nesting the checks.
---
configure.ac | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 41c482d..f7a9c18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -310,11 +310,9 @@ if test "$user_disabled_vala" = 1; then
else
AC_MSG_RESULT(no)
AC_MSG_CHECKING(if libvala is available)
- PKG_CHECK_EXISTS([ libvala-0.20 ],
- [ valaver="-0.20" ],
- [ PKG_CHECK_EXISTS([ libvala-0.18 ],
- [ valaver="-0.18" ],
- [ valaver="" ])
+ m4_foreach([VERSION], [[0.18], [0.20], [0.22]],
+ [PKG_CHECK_EXISTS([ libvala-VERSION ],
+ [ valaver="-VERSION" ])
])
if test "x$valaver" != "x"; then
AC_MSG_RESULT(yes)
--
1.7.10.4

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Aug 6 09:24:08 UTC 2013 - dimstar@opensuse.org
- Add anjuta-vala-0.22.patch: Allow building with vala 0.22.
- Add gnome-common BuildRequires and call to gnome-autogen.sh, as
above patch touches the build system.
- Change pkgconfig(libvala-0.20) BuildRequires to
pkgconfig(libvala-0.22) in order to perform the switch to Vala
0.22.
- Stop passing obsolete --disable-scrollkeeper to configure.
-------------------------------------------------------------------
Tue Jul 30 07:01:20 UTC 2013 - dimstar@opensuse.org

View File

@ -25,12 +25,16 @@ Group: Development/Tools/IDE
Url: http://anjuta.sourceforge.net/
Source0: http://download.gnome.org/sources/anjuta/3.9/%{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM anjuta-vala-0.22.patch bgo#705548 dimstar@opensuse.org -- Allow building with vala 0.22
Patch0: anjuta-vala-0.22.patch
BuildRequires: autogen
BuildRequires: binutils-devel
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: gcc-c++
# Needed for patch0
BuildRequires: gnome-common
BuildRequires: gnome-icon-theme
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
@ -57,7 +61,7 @@ BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.0.0
BuildRequires: pkgconfig(libdevhelp-3.0) >= 3.7.5
BuildRequires: pkgconfig(libgda-5.0) >= 5.0.0
BuildRequires: pkgconfig(libgvc)
BuildRequires: pkgconfig(libvala-0.20)
BuildRequires: pkgconfig(libvala-0.22)
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.23
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(vte-2.90) >= 0.27.6
@ -150,12 +154,14 @@ and more.
%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream
%build
# Needed for patch0
NOCONFIGURE=1 gnome-autogen.sh
%configure\
--disable-static \
--disable-scrollkeeper \
--enable-glade-catalog
make %{?_smp_mflags} V=1