Here is the RPM .spec file that I created a while ago for
the 1.2 sources.  Obviously you'd have to futz with the version,
and change this to build the GNOME version....

-derek

Name: gnucash
Summary: GnuCash is an application to keep track of your finances.
Version: 1.2.pre4
Release: 1
Copyright: Free Software Foundation
Group: Applications/Finance
Source: ftp://ftp.gnucash.org/pub/gnucash/gnucash-%{PACKAGE_VERSION}.tar.gz
Packager: Derek Atkins <[EMAIL PROTECTED]>
BuildRoot: /var/tmp/gnucash-%version

%description
GnuCash is a personal finance manager.  A check-book like
register GUI allows you to enter and track bank accounts,
stocks, income and even currency trades.  The interface is
designed to be simple and easy to use, but is backed with
double-entry accounting principles to ensure balanced books.


%prep
%setup -q

%build
motif=""
# Check if we're at warlord's site and grab Motif from /usr/athena
# Otherwise, just let configure look for it in the standard places
if [ -d /usr/athena/lib/libMu.a ]; then
  motif="--with-motif=/usr/athena"
fi

./configure --prefix=/usr --sysconfdir=/etc $motif
make motif


%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(444,root,root,755)
%attr(555,-,-) /usr/bin/gnucash.motif
/usr/bin/gnucash
/usr/bin/gnc-prices
/usr/lib/gnucash
/usr/share/gnucash

%doc /usr/doc/gnucash


-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/      PP-ASEL      N1NWH
       [EMAIL PROTECTED]                        PGP key available

--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to