From 67119eeb539aa8021ec1b2285fe634fd2a4a27db Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Wed, 26 Dec 2007 00:10:03 +0000 Subject: [PATCH] Make sure we require slib in our RPM packaging (#471321) git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16722 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/gnucash.spec.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packaging/gnucash.spec.in b/packaging/gnucash.spec.in index a33f2120c2..83c18e035e 100644 --- a/packaging/gnucash.spec.in +++ b/packaging/gnucash.spec.in @@ -1,5 +1,5 @@ # -# Spec file for FC4 +# Spec file for Fedora and other RedHat distros and derivatives # # Check whether GnuCash should build optional modules. # To modify parameters, edit the .spec file, 0 is off, 1 is on @@ -10,6 +10,10 @@ # The --whatprovides redhat-release lets us work on RHEL as well as FC # Granted, it will look weird, but at least it wont fail outright. %define fc_rel %(rpm -q --queryformat='%{VERSION}' --whatprovides redhat-release) + +# Edit dist if not a Fedora release +%define dist FC%{fc_rel} + %define version @-VERSION-@ %define __libtoolize /bin/true @@ -24,7 +28,7 @@ Name: gnucash Summary: GnuCash is an application to keep track of your finances. Version: %{version} -Release: 1.FC%{fc_rel} +Release: 1.%{dist} License: GPL Group: Applications/Finance URL: http://www.gnucash.org @@ -40,6 +44,7 @@ Requires: libgnomeui >= %{libgnomeui_version} Requires: libgnomeprintui22 >= %{libgnomeprintui22_version} Requires: guile >= %{guile_version} Requires: gtkhtml3 >= %{gtkhtml3_version} +Requires: slib >= 3a1 BuildRequires: libgnomeui-devel >= %{libgnomeui_version} BuildRequires: libgnomeprintui22-devel >= %{libgnomeprintui22_version}