You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.8 KiB

  1. %define name cln
  2. %define version @CL_VERSION@
  3. %define release 1
  4. Summary: Class Library for Numbers
  5. Name: %{name}
  6. Version: %{version}
  7. Release: %{release}
  8. Copyright: GPL
  9. Group: System Environment/Libraries
  10. Source: %{name}-%{version}.tar.gz
  11. URL: http://clisp.cons.org/~haible/packages-cln.html
  12. Packager: Christian Bauer <cbauer@ginac.de>
  13. Prereq: /sbin/install-info
  14. BuildRoot: %{_tmppath}/%{name}-root
  15. Prefix: %{_prefix}
  16. %description
  17. A GPLed collection of math classes and functions, that will bring
  18. efficiency, type safety, algebraic syntax to everyone in a memory
  19. and speed efficient library.
  20. %package devel
  21. Summary: Development files for programs using the CLN library
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}
  24. %description devel
  25. This package is necessary if you wish to develop software based on
  26. the CLN library.
  27. %prep
  28. %setup -q
  29. %build
  30. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" ./configure --prefix=%{_prefix}
  31. make
  32. %install
  33. rm -rf ${RPM_BUILD_ROOT}
  34. mkdir -p ${RPM_BUILD_ROOT}/usr
  35. make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
  36. gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
  37. %clean
  38. rm -rf ${RPM_BUILD_ROOT}
  39. %post
  40. /sbin/ldconfig
  41. %postun
  42. /sbin/ldconfig
  43. %post devel
  44. /sbin/install-info --section="Math" %{_infodir}/cln.info.gz %{_infodir}/dir
  45. %preun devel
  46. if [ "$1" = 0 ]; then
  47. /sbin/install-info --delete %{_infodir}/cln.info.gz %{_infodir}/dir
  48. fi
  49. %files
  50. %defattr(-,root,root)
  51. %doc COPYING ChangeLog FILES NEWS README TODO*
  52. %{_libdir}/*.so.*
  53. %files devel
  54. %defattr(-,root,root)
  55. %doc examples/*.cc
  56. %{_libdir}/*.a
  57. %{_libdir}/*.la
  58. %{_libdir}/*.so
  59. %{_includedir}/cln/*.h
  60. %{_infodir}/*.info*
  61. %{_mandir}/man1/cln-config.1*
  62. %{_bindir}/cln-config
  63. %{_datadir}/aclocal/*
  64. %changelog
  65. * Tue Nov 5 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
  66. Added Packager