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.

78 lines
1.6 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. Prereq: /sbin/install-info
  13. BuildRoot: %{_tmppath}/%{name}-root
  14. Prefix: %{_prefix}
  15. %description
  16. A GPLed collection of math classes and functions, that will bring
  17. efficiency, type safety, algebraic syntax to everyone in a memory
  18. and speed efficient library.
  19. %package devel
  20. Summary: Development files for programs using the CLN library
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}
  23. %description devel
  24. This package is necessary if you wish to develop software based on
  25. the CLN library.
  26. %prep
  27. %setup -q
  28. %build
  29. CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions" ./configure --prefix=%{_prefix}
  30. make
  31. %install
  32. rm -rf ${RPM_BUILD_ROOT}
  33. mkdir -p ${RPM_BUILD_ROOT}/usr
  34. make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
  35. gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
  36. %clean
  37. rm -rf ${RPM_BUILD_ROOT}
  38. %post
  39. /sbin/ldconfig
  40. %postun
  41. /sbin/ldconfig
  42. %post devel
  43. /sbin/install-info %{_infodir}/cln.info.gz %{_infodir}/dir
  44. %preun devel
  45. if [ "$1" = 0 ]; then
  46. /sbin/install-info --del %{_infodir}/cln.info.gz %{_infodir}/dir
  47. fi
  48. %files
  49. %defattr(-,root,root)
  50. %doc COPYING ChangeLog FILES NEWS README TODO*
  51. %{_libdir}/*.so.*
  52. %files devel
  53. %defattr(-,root,root)
  54. %doc examples/*.cc
  55. %{_libdir}/*.a
  56. %{_libdir}/*.la
  57. %{_libdir}/*.so
  58. %{_includedir}/cln/*.h
  59. %{_infodir}/*.info*
  60. %{_mandir}/man1/cln-config.1
  61. %{_bindir}/cln-config
  62. %{_datadir}/aclocal/*
  63. %changelog