From db556d6ddf04c6a6fdaf7a09c3ac0d5bd48f47bb Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 12 Jan 2005 21:34:15 +0000 Subject: [PATCH] Add warnings about using the included spec file with caution. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10411 57a11ea4-9604-0410-9ed3-97b8803252fd --- rpm/README | 24 ++++++++++++++++++++++-- rpm/gnucash.spec.in | 20 ++++++++++++++++---- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/rpm/README b/rpm/README index d7100a8a83..801e30d2bd 100644 --- a/rpm/README +++ b/rpm/README @@ -1,12 +1,32 @@ This directory contains spec files for building an RPM + + WATCH OUT: These spec file(s) might be heavily out of date and/or + absolutely NOT SUITED to your distribution! They are particularly + matched for the RedHat-8 distribution, but DO NOT USE THEM if you + don't have exactly that distribution! Your own distribution probably + has its own source RPM of gnucash, and this source RPM includes a + spec file that is much better suited to your distribution. + + I repeat: DO NOT USE THIS SPEC file unless you either have Red Hat 8 + or you really know how you can modify it to suit your distribution. + + For German-speaking users, there are German build instructions for + RPMs on http://linuxwiki.de/GnuCash/RpmInstallieren . + +------------------------------ +Original file content: + + Short instructions: > I've never built an rpm; given a spec file, how do I do this? > I understand the theory, just not clear on what to type up. -You'll need to be root. (It is possible to avoid this requirement, -but I haven't done the work to the RPM.) +You'll need to be root in many distributions. (It is possible to +avoid this requirement, but I haven't done the work to the RPM.) +However, in some distributions (e.g. SuSE) these instructions will +work even as a normal user. cd /usr/src/redhat/SOURCES tar -zxvf xacc-1.x.tar.gz diff --git a/rpm/gnucash.spec.in b/rpm/gnucash.spec.in index b57e7a81e0..ecb2aabd34 100644 --- a/rpm/gnucash.spec.in +++ b/rpm/gnucash.spec.in @@ -1,3 +1,15 @@ +# +# WATCH OUT: These spec file(s) might be heavily out of date and/or +# absolutely NOT SUITED to your distribution! They are particularly +# matched for the RedHat-8 distribution, but DO NOT USE THEM if you +# don't have exactly that distribution! Your own distribution probably +# has its own source RPM of gnucash, and this source RPM includes a +# spec file that is much better suited to your distribution. +# +# I repeat: DO NOT USE THIS SPEC file unless you either have Red Hat 8 +# or you really know how you can modify it to suit your distribution. +# +# # Check whether GnuCash should build optional modules. # To modify parameters, edit the .spec file, 0 is off, 1 is on %define _with_postgres 0 @@ -19,10 +31,10 @@ Source: http://www.gnucash.org/pub/gnucash/sources/stable/gnucash-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: gnome-libs >= 1.2.0, gdk-pixbuf >= 0.2.5, gnome-print >= 0.21 Requires: guile >= 1.3.4, gtkhtml >= 0.8, Guppi >= 0.35.3 -Requires: g-wrap >= 1.3.4, umb-scheme >= 3.2, gal >= 0.8 +Requires: g-wrap >= 1.3.4, gal >= 0.8 BuildPrereq: g-wrap-devel >= 1.3.4, gtkhtml-devel >= 0.8 BuildPrereq: Guppi-devel, gal-devel, libxml-devel -BuildPrereq: libglade-devel, libghttp-devel, python-devel, libtermcap-devel +BuildPrereq: libglade-devel, libghttp-devel, libtermcap-devel BuildPrereq: readline-devel Prereq: /sbin/ldconfig /sbin/install-info @@ -62,8 +74,8 @@ import OFX files. %package hbci Summary: Enables HBCI importing in GnuCash Group: Applications/Finance -Requires: gnucash = %{version} openhbci >= 0.9.6 -BuildPrereq: openhbci +Requires: gnucash = %{version} aqbanking >= 0.9.8 +BuildPrereq: aqbanking-devel %description hbci This package adds HBCI file import support to the base