Rich Pinkall-Pollei wrote:
>
> Pat,
>
> I'd be interested in your gnucash source RPM for RH6.x. If you want,
> all I need is the SPEC file and patches; I can get the rest via FTP.
>
Here you are.
Fair warning to all - I have _not_ read the rpm spec file
documentation. This is patched together from examples, and may very
well be wrong.
These patches have been put into cvs, along with many others. AFAIK,
the motif gui in gnucash is no longer being actively developed, just bug
fixed, so you _may_ have better luck with source cut out of CVS than the
release tarballs. Be aware that you are still subject to feature
changes in the core code ! You're milage may vary.
One trick I use is poking around the cvs commit logs to see what's been
fixed. If I see a bugfix for a specific problem I'm experiencing, I may
try that day's cvs. Unfortunately, Linas's log entries are terse, so
you often have to look at diffs. Learn cvs, cvs is your friend.
Also a renewal of my offer: if someone can either upload stuff to
ftp.gnucash.org for me or give me upload privs, I'll upload the
"complete" set of src.rpm's I used to compile gnucash.
-- Pat
Name: gnucash
Summary: GnuCash is an application to keep track of your finances.
Version: 1.2.3
Release: 4
Copyright: Free Software Foundation
Group: Applications/Finance
Source: ftp://ftp.gnucash.org/pub/gnucash/gnucash-1.2.3.tar.gz
Patch1: gnucash-gnu_ui_shutdown-patch.txt
Patch2: gnucash-subaccount_open-patch.txt
Packager: Eugene Kanter ([EMAIL PROTECTED])
BuildRoot: /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
%patch1 -p1
%patch2 -p2
%build
X_LIBS=-lXp ./configure --prefix=/usr --sysconfdir=/etc
make motif
%install
make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc
GNC_CONFIGDIR=$RPM_BUILD_ROOT/etc/gnucash install
#make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc
GNC_BINDIR=$RPM_BUILD_ROOT/usr/bin GNC_CONFIGDIR=$RPM_BUILD_ROOT/etc/gnucash
GNC_DOCDIR=$RPM_BUILD_ROOT/usr/doc/gnucash install
#rm -rf $RPM_BUILD_ROOT/usr/doc/gnucash
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(444,root,root,755)
%attr(555,-,-) /usr/bin/gnucash.motif
/usr/bin/gnucash
/usr/doc/gnucash
/usr/share/gnucash
%doc README CHANGES TODO
diff -u -r1.1.1.3 -r1.2 src/motif/top-level.c
--- src/motif/top-level.c 1999/08/23 00:57:31 1.1.1.3
+++ src/motif/top-level.c 1999/08/23 02:08:19 1.2
@@ -53,7 +53,14 @@
void
gnc_ui_shutdown() {
- XtDestroyWidget(gnc_get_ui_data());
+ gncUIWidget ui_data = gnc_get_ui_data();
+
+ /* Only call XtDestroyWidget() if ui_data is non-NULL. */
+ if (ui_data != NULL)
+ {
+ XtDestroyWidget(ui_data);
+ ui_data = NULL;
+ }
}
/* This static indicates the debugging module that this .o belongs to. */
diff -u -r1.1.1.2 src/motif/RegWindow.c
--- src/motif/RegWindow.c 1999/04/16 00:35:55 1.1.1.2
+++ src/motif/RegWindow.c 1999/08/22 18:42:14
@@ -69,11 +69,11 @@
"regasset",
"regcredit",
"regliability",
- "regliability"
"regincome",
"regexpense",
"regequity",
"regstock",
+ "regcurrency",
"ledgeneral",
"ledincome",
"ledportfolio"
@@ -399,7 +399,7 @@
/* The CreateTable will do the actual gui init, returning a widget */
reg = xaccCreateTable (ledger->ledger->table, frame,
- accRes[(ledger->type & REG_TYPE_MASK)]);
+ accRes[(ledger->type & REG_TYPE_MASK) - 1]);
regData->reg = reg;
/* be sure to initialize the gui elements associated with the cursor */
diff -u -r1.1.1.1 src/register/register.h
--- src/register/register.h 1999/04/15 02:34:22 1.1.1.1
+++ src/register/register.h 1999/08/22 18:41:19
@@ -64,10 +64,11 @@
#define EXPENSE_REGISTER 6
#define EQUITY_REGISTER 7
#define STOCK_REGISTER 8
+#define CURRENCY_REGISTER 9
-#define GENERAL_LEDGER 9
-#define INCOME_LEDGER 10
-#define PORTFOLIO 11
+#define GENERAL_LEDGER 10
+#define INCOME_LEDGER 11
+#define PORTFOLIO 12
/* modified flags -- indicate how values have been modified */
#define MOD_NONE 0x000
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]