]> www.ginac.de Git - ginac.git/commitdiff
- added spec file
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 15 Nov 1999 17:12:50 +0000 (17:12 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 15 Nov 1999 17:12:50 +0000 (17:12 +0000)
GiNaC.spec.in [new file with mode: 0644]
Makefile.in
README
configure
configure.in

diff --git a/GiNaC.spec.in b/GiNaC.spec.in
new file mode 100644 (file)
index 0000000..2ffbf8e
--- /dev/null
@@ -0,0 +1,52 @@
+# 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/*
index a73730bfadc47bad5e9b2dd691b28c18afd63005..04d5e3efdff8eaff9d443ab2de429c4c111dff3d 100644 (file)
@@ -97,11 +97,11 @@ SUBDIRS = ginac check ginsh doc
 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)
@@ -146,6 +146,8 @@ distclean-hdr:
        -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.
diff --git a/README b/README
index 11b2b0ac11ff3f91e13da86a8f9874f1e7107dec..28392d47efaaedfd806d6bff2b07aad4071d99b0 100644 (file)
--- a/README
+++ b/README
@@ -7,7 +7,10 @@ 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.
 
-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/
 
 
index bb720a36308965856b91ea377115afc4d8264b67..e7726193e744d9c1fc0a70ecb1b6921343367570 100755 (executable)
--- a/configure
+++ b/configure
@@ -2573,7 +2573,16 @@ done
 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
 
@@ -2693,7 +2702,15 @@ 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
index b85299bcdd3167ff8d404221778ee2ed0ea457f3..74227d16761854f3370c02afb5f20c631d89215b 100644 (file)
@@ -113,5 +113,14 @@ AC_SUBST(REFERENCE_TARGETS)
 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\"."