I'm not sure if you want to put this in at the last minute but here it is:
Points:
Christoph had a problem with autoconf finding ./ltconfig. I changed
configure.in AM_DISABLE_STATIC -> AC_DISABLE_STATIC and AM_PROG_LIBTOOL
-> AC_PROG_LIBTOOL. The old AM_* are deprecated. The change eliminated
Christoph's problems but introduced the "LIBTOOL not defined in
configure.in" warning/bug.
I believe that autoconf has a problem with LIBTOOL being set. I have
found mentions of this problem with other packages but no resolution.
I think that even though the AM_* macros are aliases to the AC_* macros
there are some internal differences - I haven't been able to find them.
I have found a couple other cases where packages have reverted to the
AM_* macros to fix the problem inspite of the alleged deprecation.
Christoph's problem of not finding ./ltconfig is because he has a
old libtool.m4 file lurking someplace that is being found after all
the other libtool.m4 definitions and the last definition wins. I
believe that Christoph's problem is isolated to his build.
This patch reverts to the old AM_* macros to eliminate the LIBTOOL
problem. This enables much needed "dist" targets in the makefiles.
This patch also adds a "contrib" subdirectory where packaging files
and miscellaneous files can go. Inside of contrib is a README
describing the files, a Makefile.am and a libgii.spec.in. This spec
file is for building RPMS.
I feel strongly about these contrib files being inside of libgii and
other lib trees. It will help in tightly coupling these files to the
distribution and will make them automaticly included when working
with the "dist" targets. Having the spec file internal to a source
tar ball will enable RPM's to be built directly from source tars which
effectively eliminates SRPMS.
Trust me, I've done way to many packages. If I didn't think this was
a big deal I wouldn't present it and hope for its inclusion.
Similar things should be done for the other packages. I also have a
spec file for libggi but I haven't made the patch.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/Makefile.am,v
retrieving revision 1.4
diff -u -r1.4 Makefile.am
--- Makefile.am 2001/07/07 09:42:13 1.4
+++ Makefile.am 2001/07/10 21:23:57
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = 1.4
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = include gg gii input filter demos doc m4
+SUBDIRS = include gg gii input filter demos doc m4 contrib
giiconfdatadir = ${sysconfdir}/${ggi_subdir}
giiconfdata_DATA = libgii.conf
Index: configure.in
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/configure.in,v
retrieving revision 1.6
diff -u -r1.6 configure.in
--- configure.in 2001/07/10 18:59:56 1.6
+++ configure.in 2001/07/10 21:23:57
@@ -8,7 +8,7 @@
AM_INIT_AUTOMAKE(libgii,0.8,-)
AM_MAINTAINER_MODE
-AC_DISABLE_STATIC
+AM_DISABLE_STATIC
dnl ========================================================================
dnl Set some defaults
@@ -39,7 +39,7 @@
AC_PROG_CC
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
-AC_PROG_LIBTOOL
+AM_PROG_LIBTOOL
dnl ========================================================================
@@ -721,4 +721,6 @@
doc/man/Makefile
m4/Makefile
libgii.conf
+contrib/Makefile
+contrib/libgii.spec
)
diff -uNr contrib/Makefile.am.orig contrib/Makefile.am
--- contrib/Makefile.am.orig Wed Dec 31 17:00:00 1969
+++ contrib/Makefile.am Tue Jul 10 14:58:18 2001
@@ -0,0 +1,4 @@
+# Process this file with automake to create Makefile.in
+
+EXTRA_DIST = README libgii.spec.in libgii.spec
+
diff -uNr contrib/README.orig contrib/README
--- contrib/README.orig Wed Dec 31 17:00:00 1969
+++ contrib/README Tue Jul 10 14:25:50 2001
@@ -0,0 +1,4 @@
+These are accompanying files for supporting gii
+
+libgii.spec: Builds RPM distribution packages.
+
diff -uNr contrib/libgii.spec.in.orig contrib/libgii.spec.in
--- contrib/libgii.spec.in.orig Wed Dec 31 17:00:00 1969
+++ contrib/libgii.spec.in Tue Jul 10 15:01:57 2001
@@ -0,0 +1,73 @@
+Summary: Input library for GGI
+Name: @PACKAGE@
+Version: @VERSION@
+Release: 1
+Group: System Environment/Libraries
+Source0: ftp://ftp.ggi.sourceforge.net/%name-%{version}.tar.gz
+URL: http://ggi-project.org/
+License: LGPL
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+
+%description
+Input library for GGI
+
+
+%package devel
+Summary: Header files and libraries for developing apps which will use libgii.
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+
+%description devel
+Header files and libraries for developing apps which will use libgii.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure
+gmake
+
+
+%install
+[ -e "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+%makeinstall
+
+
+%clean
+[ -e "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root)
+%doc ChangeLog ChangeLog.1999 FAQ NEWS README
+%doc doc/env.txt doc/inputs.txt doc/docbook/*.sgml
+%config %{_sysconfdir}/ggi
+%{_bindir}/*
+%{_libdir}/*.so.*
+%{_libdir}/ggi
+%{_mandir}/man1/*
+%{_mandir}/man7/*
+
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/*.la
+%{_libdir}/*.so
+%{_includedir}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Mon Jul 02 2001 Thayne Harbaugh <[EMAIL PROTECTED]>
+- initial libggi.spec
+
===========libggi.spec - convert to .in =========================
Summary: GGI (General Graphics Interface) toolkit
Name: libggi
Version: 2.0b4
Release: 1
Group: System Environment/Libraries
Source0: ftp://ftp.ggi.sourceforge.net/%name-%{version}.tar.bz2
URL: http://ggi-project.org/
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
GGI (General Graphics Interface) toolkit
%package devel
Summary: Header files and libraries for developing apps which will use libggi.
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Header files and libraries for developing apps which will use libggi.
%package demos
Summary: Various demos for GGI
Group: Applications/Demos
Requires: %{name} = %{version}
%description demos
Demos for GGI
%prep
%setup -q
%build
%configure
gmake
%install
[ -e "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
[ -e "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README doc/env.txt doc/inputs.txt doc/docbook/*.sgml
%config %{_sysconfdir}/ggi
%{_bindir}/ggiteleserver
%{_bindir}/monitest
%{_libdir}/*.so.*
%{_libdir}/ggi
%{_mandir}/man7/*
%files devel
%defattr(-,root,root)
%doc ChangeLog
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man3/*
%files demos
%defattr(-,root,root)
%{_mandir}/man6/*
%{_bindir}/cube3d
%changelog
* Mon Jul 02 2001 Thayne Harbaugh <[EMAIL PROTECTED]>
- initial libgii.spec
--
Thayne Harbaugh