-AC_INIT(dtd/cic.dtd)
+AC_INIT(http_getter.pl.in)
if test "x$prefix" != xNONE; then
RESOLVED_PREFIX=$prefix
RESOLVED_PREFIX=$ac_default_prefix
fi
+if test "x$exec_prefix" != xNONE; then
+ RESOLVED_EXEC_PREFIX=$exec_prefix
+else
+ RESOLVED_EXEC_PREFIX=$RESOLVED_PREFIX
+fi
+
dnl General
-AC_MSG_CHECKING("for the share/helm/dtd dir")
+AC_MSG_CHECKING("for configuration.pl")
RES=""
-AC_CACHE_VAL(helm_cv_HELM_DTDS_DIR,
- echo "Where should I put the DTDs? Note: your answer must be the entry of value dtd_dir in the configuration.xml file of the helm_configuration package that you should have already installed."
- read helm_cv_HELM_DTDS_DIR
+AC_CACHE_VAL(helm_cv_DEFAULT_HELM_LIBRARY_DIR,
+ echo "Where is configuration.pl (part of the helm_configuration package)?"
+ read helm_cv_DEFAULT_HELM_LIBRARY_DIR
RES="Asked"
)
-HELM_DTDS_DIR=$helm_cv_HELM_DTDS_DIR
+DEFAULT_HELM_LIBRARY_DIR=$helm_cv_DEFAULT_HELM_LIBRARY_DIR
if test "$RES" != "Asked" ; then
- HELM_DTDS_DIR=`eval "echo $HELM_DTDS_DIR"`
- AC_MSG_RESULT($HELM_DTDS_DIR)
+ DEFAULT_HELM_LIBRARY_DIR=`eval "echo $DEFAULT_HELM_LIBRARY_DIR"`
+ AC_MSG_RESULT($DEFAULT_HELM_LIBRARY_DIR)
fi
AC_CACHE_SAVE
-AC_MSG_CHECKING("for the share/helm/style dir")
-HELM_STYLES_DIR=$RESOLVED_PREFIX/share/helm/style
-AC_MSG_RESULT($HELM_STYLES_DIR)
+AC_PATH_PROG(PERL_BINARY,perl,no)
+if test $PERL_BINARY = no ; then
+ AC_MSG_ERROR(Could not find perl)
+fi
-AC_SUBST(HELM_DTDS_DIR)
-AC_SUBST(HELM_STYLES_DIR)
+AC_MSG_CHECKING("for the bin dir")
+HELM_BIN_DIR=$RESOLVED_EXEC_PREFIX/bin
+AC_MSG_RESULT($HELM_BIN_DIR)
+AC_SUBST(HELM_BIN_DIR)
AC_SUBST(DEFAULT_HELM_LIBRARY_DIR)
AC_SUBST(PERL_BINARY)
-AC_OUTPUT([Makefile])
+AC_OUTPUT([
+ Makefile
+ http_getter.pl
+])
--- /dev/null
+Summary: The HELM http getter
+Name: helm_http_getter
+Version: 0.0.1
+Release: 1
+Copyright: GPL
+URL: http://www.cs.unibo.it/helm
+Packager: Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>
+Requires: helm_configuration = 0.0.1, helm_data = 0.0.1
+Group: Applications/Publishing
+Source: www.cs.unibo.it:/~lpadovan/mml-widget/helm_http_getter-0.0.1-1.tar.gz
+%description
+HELM (Hypertextual Electronic Library of Mathematics) is a project aimed
+at the creation of tools for the development and exploitation of a huge
+distributed library of formal mathematical knowledge. This package holds
+the getter used to map logical names into phisical names and download
+the required files.
+For more information see http://www.cs.unibo.it/helm
+
+%prep
+%setup
+
+%build
+cp config.cache.pkg config.cache
+./configure
+
+%install
+make install
+
+%files
+%doc AUTHORS COPYING ChangeLog NEWS README
+
+/usr/local/share/helm/dtd
+/usr/local/share/helm/style