Accepting request 30285 from GNOME:Apps

Copy from GNOME:Apps/gnumeric based on submit request 30285 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/30285
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnumeric?expand=0&rev=32
This commit is contained in:
OBS User autobuild 2010-01-25 15:39:56 +00:00 committed by Git OBS Bridge
commit c003fb83ae
3 changed files with 47 additions and 10 deletions

View File

@ -0,0 +1,26 @@
Index: gnumeric-1.9.17/configure
===================================================================
--- gnumeric-1.9.17.orig/configure
+++ gnumeric-1.9.17/configure
@@ -14828,7 +14828,7 @@ else
fi
-if test $gnumeric_devel = yes; then
+if test $gnumeric_devel = never; then
CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
CFLAGS="$CFLAGS -DPANGO_DISABLE_DEPRECATED"
if test "x$gnumeric_with_gtk" = xtrue; then
Index: gnumeric-1.9.17/configure.in
===================================================================
--- gnumeric-1.9.17.orig/configure.in
+++ gnumeric-1.9.17/configure.in
@@ -272,7 +272,7 @@ fi
AC_SUBST(GNUMERIC_PLUGIN_LDFLAGS)
dnl disable for in stable release, enable for development series
-if test $gnumeric_devel = yes; then
+if test $gnumeric_devel = never; then
CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED"
CFLAGS="$CFLAGS -DPANGO_DISABLE_DEPRECATED"
if test "x$gnumeric_with_gtk" = xtrue; then

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 22 13:24:02 CET 2010 - vuntz@opensuse.org
- Add gnumeric-no-disable-deprecated.patch to fix build with new
GTK+: we don't need to ignore deprecated API.
- Version the Provides/Obsoletes of gnumeric2 to avoid
self-obsoletion rpmlint warning.
-------------------------------------------------------------------
Wed Dec 16 11:28:49 CET 2009 - vuntz@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gnumeric (Version 1.9.17)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,6 +19,15 @@
Name: gnumeric
Version: 1.9.17
Release: 2
Summary: Spreadsheet Application
License: GPLv2+
Url: http://www.gnumeric.org/
Group: Productivity/Office/Spreadsheets
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnumeric/1.8/gnumeric-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnumeric-no-disable-deprecated.patch bgo607758 vuntz@opensuse.org -- Remove *_DISABLE_DEPRECATED defines to not uselessly break build
Patch0: gnumeric-no-disable-deprecated.patch
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: goffice-devel
@ -32,19 +41,12 @@ BuildRequires: scrollkeeper
BuildRequires: shared-mime-info
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
License: GPLv2+
Group: Productivity/Office/Spreadsheets
Provides: gnumeric2
Obsoletes: gnumeric2
Summary: Spreadsheet Application
Version: 1.9.17
Release: 1
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnumeric/1.8/gnumeric-%{version}.tar.bz2
Url: http://www.gnumeric.org/
Requires: %{name}-lang = %{version}
Recommends: liberation-fonts ghostscript-fonts-std
# For perl-func plugin
Recommends: perl
Provides: gnumeric2 = %{version}
Obsoletes: gnumeric2 < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
@ -95,6 +97,7 @@ Gnumeric is part of the GNOME project.
%setup -q
translation-update-upstream
translation-update-upstream po-functions gnumeric-functions
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"