--- /dev/null
+# spec file for GiNaC
+
+%define ver @VERSION@
+%define rel 1
+%define prefix /usr
+
+Summary: C++ library for symbolic mathematical calculations
+Name: GiNaC
+Version: %ver
+Release: %rel
+Copyright: GPL
+Group: Libraries
+Source: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/GiNaC-%{ver}.tar.gz
+BuildRoot: /tmp/GiNaC-%{PACKAGE_VERSION}-root
+Packager: Christian Bauer <Christian.Bauer@uni-mainz.de>
+URL: http://wwwthep.physik.uni-mainz.de/GiNaC/
+Docdir: %{prefix}/doc
+
+%description
+GiNaC (which stands for "GiNaC is not a computer algebra system) is a
+C++ library for symbolic mathematical calculations. It is designed to
+allow the creation of integrated systems that embed symbolic manipulations
+together with more established areas of computer science (like computation-
+intense numeric applications, graphical interfaces, etc.) under one roof.
+
+%prep
+%setup
+
+%build
+./configure --prefix=%prefix
+make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make prefix=$RPM_BUILD_ROOT%{prefix} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+%doc AUTHORS COPYING ChangeLog NEWS README
+%{prefix}/lib/lib*.so
+%{prefix}/lib/*a
+%{prefix}/include/*
+%{prefix}/man/man1/*
+%{prefix}/share/doc/GiNaC/*
+%{prefix}/bin/*
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
-DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
-Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 config.guess \
-config.h.in config.sub configure configure.in install-sh ltconfig \
-ltmain.sh missing mkinstalldirs stamp-h.in
+CONFIG_CLEAN_FILES = GiNaC.spec
+DIST_COMMON = README AUTHORS COPYING ChangeLog GiNaC.spec.in INSTALL \
+Makefile.am Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 \
+config.guess config.h.in config.sub configure configure.in install-sh \
+ltconfig ltmain.sh missing mkinstalldirs stamp-h.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-rm -f config.h
maintainer-clean-hdr:
+GiNaC.spec: $(top_builddir)/config.status GiNaC.spec.in
+ cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
together with more established areas of computer science (like computation-
intense numeric applications, graphical interfaces, etc.) under one roof.
-The official web site it:
+The official ftp site is:
+ ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/
+
+The official web site is:
http://wwwthep.physik.uni-mainz.de/GiNaC/
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "Makefile ginac/Makefile check/Makefile ginsh/Makefile doc/Makefile doc/tutorial/Makefile doc/reference/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "
+Makefile
+GiNaC.spec
+ginac/Makefile
+check/Makefile
+ginsh/Makefile
+doc/Makefile
+doc/tutorial/Makefile
+doc/reference/Makefile
+ config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<EOF
-CONFIG_FILES=\${CONFIG_FILES-"Makefile ginac/Makefile check/Makefile ginsh/Makefile doc/Makefile doc/tutorial/Makefile doc/reference/Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"Makefile
+GiNaC.spec
+ginac/Makefile
+check/Makefile
+ginsh/Makefile
+doc/Makefile
+doc/tutorial/Makefile
+doc/reference/Makefile
+"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
dnl ===========================================================================
dnl Produce a Makefile from Makefile.in:
dnl ===========================================================================
-AC_OUTPUT([Makefile ginac/Makefile check/Makefile ginsh/Makefile doc/Makefile doc/tutorial/Makefile doc/reference/Makefile])
+AC_OUTPUT([
+Makefile
+GiNaC.spec
+ginac/Makefile
+check/Makefile
+ginsh/Makefile
+doc/Makefile
+doc/tutorial/Makefile
+doc/reference/Makefile
+])
echo "Configuration done. Now type \"make\"."