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.

75 lines
1.5 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. make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
  34. gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/cln.info*
  35. %clean
  36. rm -rf ${RPM_BUILD_ROOT}
  37. %post
  38. /sbin/ldconfig
  39. %postun
  40. /sbin/ldconfig
  41. %post devel
  42. /sbin/install-info %{_infodir}/cln.info.gz %{_infodir}/dir
  43. %preun devel
  44. if [ "$1" = 0 ]; then
  45. /sbin/install-info --del %{_infodir}/cln.info.gz %{_infodir}/dir
  46. fi
  47. %files
  48. %defattr(-,root,root)
  49. %doc COPYING ChangeLog FILES NEWS README TODO*
  50. %{_libdir}/*.so.*
  51. %files devel
  52. %defattr(-,root,root)
  53. %doc examples
  54. %{_libdir}/*.a
  55. %{_libdir}/*.la
  56. %{_libdir}/*.so
  57. %{_includedir}/*.h
  58. %{_infodir}/*.info*
  59. %{_bindir}/cln-config
  60. %changelog