]> www.ginac.de Git - cln.git/commitdiff
added RPM spec file
authorcbauer <cbauer>
Thu, 5 Oct 2000 19:40:02 +0000 (19:40 +0000)
committercbauer <cbauer>
Thu, 5 Oct 2000 19:40:02 +0000 (19:40 +0000)
cln.spec.in [new file with mode: 0644]
configure.in

diff --git a/cln.spec.in b/cln.spec.in
new file mode 100644 (file)
index 0000000..5d27e2c
--- /dev/null
@@ -0,0 +1,75 @@
+%define name cln
+%define version @CL_VERSION@
+%define release 1
+
+Summary: Class Library for Numbers
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Copyright: GPL
+Group: System Environment/Libraries
+Source: %{name}-%{version}.tar.gz
+URL: http://clisp.cons.org/~haible/packages-cln.html
+Prereq: /sbin/install-info
+BuildRoot: %{_tmppath}/%{name}-root
+Prefix: %{_prefix}
+
+%description
+A GPLed collection of math classes and functions, that will bring
+efficiency, type safety, algebraic syntax to everyone in a memory
+and speed efficient library.
+
+%package devel
+Summary: Development files for programs using the CLN library
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+This package is necessary if you wish to develop software based on
+the CLN library.
+
+%prep
+%setup -q
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" ./configure --prefix=%{_prefix}
+make
+
+%install
+rm -rf ${RPM_BUILD_ROOT}
+make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
+gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%post devel
+/sbin/install-info %{_infodir}/cln.info.gz %{_infodir}/dir
+
+%preun devel
+if [ "$1" = 0 ]; then
+  /sbin/install-info --del %{_infodir}/cln.info.gz %{_infodir}/dir
+fi
+
+%files
+%defattr(-,root,root)
+%doc COPYING ChangeLog FILES NEWS README TODO*
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root)
+%doc examples
+%{_libdir}/*.a
+%{_libdir}/*.la
+%{_libdir}/*.so
+%{_includedir}/*.h
+%{_infodir}/*.info*
+%{_bindir}/cln-config
+
+%changelog
index 03cd01d7f461d43f46bbdde4c5ebea5d196a1029..e38db7d07ff8b8fb5f568420702b53284cb0b7a1 100644 (file)
@@ -181,4 +181,4 @@ changequote([,])dnl
     cp "$srcdir/$f" "$f"
   fi
 done
-AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config], [chmod +x cln-config])
+AC_OUTPUT([Makefile src/Makefile tests/Makefile benchmarks/Makefile examples/Makefile doc/Makefile cln-config cln.spec], [chmod +x cln-config])