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.

90 lines
2.4 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} --mandir=%{_mandir} --infodir=%{_infodir}
  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. mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  38. mv ${RPM_BUILD_ROOT}%{_datadir}/dvi/cln.dvi ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  39. rmdir ${RPM_BUILD_ROOT}%{_datadir}/dvi
  40. mv ${RPM_BUILD_ROOT}%{_datadir}/html ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  41. %clean
  42. rm -rf ${RPM_BUILD_ROOT}
  43. %post
  44. /sbin/ldconfig
  45. %postun
  46. /sbin/ldconfig
  47. %post devel
  48. /sbin/install-info --section="Math" %{_infodir}/cln.info.gz %{_infodir}/dir
  49. %preun devel
  50. if [ "$1" = 0 ]; then
  51. /sbin/install-info --delete %{_infodir}/cln.info.gz %{_infodir}/dir
  52. fi
  53. %files
  54. %defattr(-,root,root)
  55. %doc COPYING ChangeLog FILES NEWS README TODO*
  56. %{_libdir}/*.so.*
  57. %files devel
  58. %defattr(-,root,root)
  59. %{_defaultdocdir}/%{name}-devel-%{version}
  60. %{_libdir}/*.a
  61. %{_libdir}/*.la
  62. %{_libdir}/*.so
  63. %{_libdir}/pkgconfig/cln.pc
  64. %{_includedir}/cln
  65. %{_infodir}/*.info*
  66. %{_mandir}/man1/cln-config.1*
  67. %{_bindir}/cln-config
  68. %{_datadir}/aclocal/cln.m4
  69. %changelog
  70. * Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
  71. Added pkg-config metadata file to devel package
  72. * Wed Nov 6 2002 Christian Bauer <Christian.Bauer@uni-mainz.de>
  73. Added HTML and DVI docs to devel package
  74. * Tue Nov 5 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
  75. Added Packager