From: Christian Bauer Date: Mon, 15 Nov 1999 17:12:50 +0000 (+0000) Subject: - added spec file X-Git-Tag: release_0-5-0~170 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=0fadde384343993c3860102edde311a8e1193d26;hp=4e3986a8583584945681ee2dc1560e0fc08e4978 - added spec file --- diff --git a/GiNaC.spec.in b/GiNaC.spec.in new file mode 100644 index 00000000..2ffbf8e4 --- /dev/null +++ b/GiNaC.spec.in @@ -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 +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/* diff --git a/Makefile.in b/Makefile.in index a73730bf..04d5e3ef 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 11b2b0ac..28392d47 100644 --- 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/ diff --git a/configure b/configure index bb720a36..e7726193 100755 --- 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 <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then diff --git a/configure.in b/configure.in index b85299bc..74227d16 100644 --- a/configure.in +++ b/configure.in @@ -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\"."