From 5ee01ceb046bb0580cd28949354163cbbb83613a Mon Sep 17 00:00:00 2001 From: "Donald A. Peterson" Date: Mon, 1 Jul 2002 19:05:11 +0000 Subject: [PATCH] More Makefile overhaul svn: r1064 --- gramps/Makefile.am | 30 +++++++++++++ gramps/Makefile.comm.in | 17 -------- gramps/gramps.spec.in | 94 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 17 deletions(-) create mode 100644 gramps/Makefile.am delete mode 100644 gramps/Makefile.comm.in create mode 100644 gramps/gramps.spec.in diff --git a/gramps/Makefile.am b/gramps/Makefile.am new file mode 100644 index 000000000..d11ae66d1 --- /dev/null +++ b/gramps/Makefile.am @@ -0,0 +1,30 @@ +# copyright (C) 2000 Sun Microsystems, Inc. + +SUBDIRS = src doc omf-install + +EXTRA_DIST = autogen.sh gramps.spec.in + +bin_SCRIPTS = gramps + +grampsdocdir = $(datadir)/doc/gramps-$(VERSION) +scrollkeeper_localstate_dir = $(localstatedir)/lib/scrollkeeper + +gramps: gramps.sh + cp gramps.sh gramps + +dist-hook: gramps.spec + cp gramps.spec $(distdir) + +# Build/rebuild the catalog +install-data-hook: + rm -rf $(DESTDIR)$(scrollkeeper_localstate_dir) + $(mkinstalldirs) $(DESTDIR)$(scrollkeeper_localstate_dir) + $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log + scrollkeeper-rebuilddb -p $(DESTDIR)$(scrollkeeper_localstate_dir) + +# Remove generated files +uninstall-local: + -rm -rf $(DESTDIR)$(gramps_localstate_dir) + -rm -f $(DESTDIR)$(localstatedir)/log/gramps.log + -rm -f $(DESTDIR)$(localstatedir)/log/gramps.log.1 + diff --git a/gramps/Makefile.comm.in b/gramps/Makefile.comm.in deleted file mode 100644 index 27f70e4cd..000000000 --- a/gramps/Makefile.comm.in +++ /dev/null @@ -1,17 +0,0 @@ -# Hold variable definitions needed by slave Makefiles -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = @bindir@ -datadir = @datadir@/@PACKAGE@ -INSTALL = @INSTALL@ -sharedir = ${prefix}/share/gramps -GNOMEHELP = ${prefix}/share/gnome/help -GM = gramps-manual -EG = extending-gramps -DB2HTML = @DOCBOOKHTML@ - -@SET_MAKE@ - -# Ensure the correct "/bin/sh" for interpreting commands -# in case the user has some other shell environment -SHELL = @BINSH@ diff --git a/gramps/gramps.spec.in b/gramps/gramps.spec.in new file mode 100644 index 000000000..36782c829 --- /dev/null +++ b/gramps/gramps.spec.in @@ -0,0 +1,94 @@ +%define ver @VERSION@ +%define rel @RELEASE@ +%define prefix /usr + +Summary: Genealogical Research and Analysis Management Programming System. +Name: gramps +Version: %ver +Release: %rel +Copyright: GPL +Group: Applications/Genealogy +Source: http://download.sourceforge.net/gramps/gramps-%{ver}.tar.gz +BuildRoot: /var/tmp/%{name}-%{version}-root + +URL: http://gramps.sourceforge.net + +Requires: python >= 1.5.2 +Requires: pygnome >= 1.0.53 +Requires: _gladegnomemodule.so +Requires: pyexpat.so + +%define skreq 0.1.4 +BuildRequires: scrollkeeper >= %skreq + +%description +gramps (Genealogical Research and Analysis Management Programming +System) is a GNOME based genealogy program supporting a Python +based plugin system. + +%prep +%setup + +%build +if [ ! -f configure ]; then + CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS --prefix=%prefix +else + CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --prefix=%prefix +fi + +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make GNOME_DATADIR=$RPM_BUILD_ROOT%{prefix}/share prefix=$RPM_BUILD_ROOT%{prefix} install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) + +%doc README COPYING TODO INSTALL + +%{prefix}/bin/gramps + +%{_datadir}/gnome/help/gramps-manual/C/* +%{_datadir}/gnome/help/extending-gramps/C/* + +%{_datadir}/gnome/apps/Applications/gramps.desktop +%{_datadir}/pixmaps/gramps.png +%{_datadir}/locale/*/LC_MESSAGES/gramps.mo + +%{_datadir}/gramps/*.xpm +%{_datadir}/gramps/*.jpg +%{_datadir}/gramps/*.png +%{_datadir}/gramps/*.py +%{_datadir}/gramps/*.pyo +%{_datadir}/gramps/*.glade +%{_datadir}/gramps/*.so +%{_datadir}/gramps/docgen/*.py +%{_datadir}/gramps/docgen/*.pyo +%{_datadir}/gramps/filters/*.py +%{_datadir}/gramps/filters/*.pyo +%{_datadir}/gramps/plugins/*.py +%{_datadir}/gramps/plugins/*.pyo +%{_datadir}/gramps/plugins/*.glade +%{_datadir}/gramps/data/gedcom.xml +%{_datadir}/gramps/data/templates/*.tpkg +%{_datadir}/gramps/data/templates/*.xml + +%{prefix}/man/man1/gramps.1* + +%{_datadir}/omf/gramps + +%post +if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi + +%postun +if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi + +%changelog +* Fri Jun 14 2002 Donald Peterson +- add scrollkeeper dependencies and some file cleanup