Enhanced spec file for GnuCash 1.6.6
Andreas Bogk
andreas@andreas.org
02 May 2002 16:50:25 +0000
Derek Atkins <warlord@MIT.EDU> writes:
> Yea, and that's what was proposed. Someone just needs to setup the
> SPEC file to emit two RPMs, gnucash and gnucash-postgres, with the
> appropriate files.
Something like the below should almost do it. Unfortunately there
seems to be no way to tell RPM to include all the files but some from
a directory, so preventing the main package from picking up the
Postgres backend requires an explicit list of files from the lib
directory.
Andreas
diff -u -r1.33 gnucash.spec.in
--- gnucash.spec.in 3 Mar 2002 10:33:03 -0000 1.33
+++ gnucash.spec.in 2 May 2002 16:47:32 -0000
@@ -33,6 +33,19 @@
Install this package if you want to use GnuCash libraries
in C programs.
+%package backend-postgres
+Summary: Backend for storing GnuCash data in a PostgreSQL database.
+Group: Applications/Finance
+Requires: gnucash = %{PACKAGE_VERSION}
+Requires: postgres >= 7.2
+
+%description gnucash-backend-postgres
+
+This package contains a backend for storing your GnuCash accounts and
+transactions in a PostgreSQL database. Install this package if you
+want to keep your financial data in a database instead of a flat file
+(recommended for large volumes of data and commercial sites).
+
%prep
%setup -q
@@ -80,3 +93,6 @@
%dir %{_includedir}/gnucash
%{_includedir}/gnucash
%{_datadir}/aclocal/gnucash.m4
+
+%files backend-postgres
+%{_libdir}/*postgres*