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.

94 lines
2.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. License: GPL
  9. Group: System Environment/Libraries
  10. Source0: %{name}-%{version}.tar.gz
  11. URL: http://www.ginac.de/CLN/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. Prefix: %{_prefix}
  14. Requires(post): /sbin/install-info
  15. Requires(preun): /sbin/install-info
  16. BuildRequires: gcc-c++
  17. %description
  18. A GPLed collection of math classes and functions, that will bring
  19. efficiency, type safety, algebraic syntax to everyone in a memory
  20. and speed efficient library.
  21. %package devel
  22. Summary: Development files for programs using the CLN library
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %description devel
  26. This package is necessary if you wish to develop software based on
  27. the CLN library.
  28. %prep
  29. %setup -q
  30. %build
  31. %configure
  32. make
  33. %install
  34. rm -rf ${RPM_BUILD_ROOT}
  35. %makeinstall
  36. mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  37. mv ${RPM_BUILD_ROOT}%{_datadir}/dvi/cln.dvi ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  38. rmdir ${RPM_BUILD_ROOT}%{_datadir}/dvi
  39. mv ${RPM_BUILD_ROOT}%{_datadir}/html ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-devel-%{version}
  40. %clean
  41. rm -rf ${RPM_BUILD_ROOT}
  42. %post -p /sbin/ldconfig
  43. %postun -p /sbin/ldconfig
  44. %post devel
  45. /sbin/install-info --section="Math" --info-dir=%{_infodir} %{_infodir}/cln.info.gz %{_infodir}/dir 2>/dev/null || :
  46. %preun devel
  47. if [ "$1" = 0 ]; then
  48. /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cln.info.gz %{_infodir}/dir 2>/dev/null || :
  49. fi
  50. %files
  51. %defattr(-,root,root)
  52. %doc COPYING ChangeLog FILES NEWS README TODO*
  53. %{_libdir}/*.so.*
  54. %files devel
  55. %defattr(-,root,root)
  56. %{_defaultdocdir}/%{name}-devel-%{version}
  57. %{_libdir}/*.a
  58. %{_libdir}/*.la
  59. %{_libdir}/*.so
  60. %{_libdir}/pkgconfig/cln.pc
  61. %{_includedir}/cln
  62. %{_infodir}/*.info*
  63. %{_mandir}/man1/cln-config.1*
  64. %{_bindir}/cln-config
  65. %{_datadir}/aclocal/cln.m4
  66. %changelog
  67. * Tue Oct 25 2005 Christian Bauer <Christian.Bauer@uni-mainz.de>
  68. - "Copyright:" -> "License:"
  69. - Fixed broken install-info command
  70. - Added missing BuildRequires
  71. - Added release to Requires for devel
  72. - Remove processing of info files (this is supposed to be automatic)
  73. * Thu Nov 20 2003 Christian Bauer <Christian.Bauer@uni-mainz.de>
  74. Added pkg-config metadata file to devel package
  75. * Wed Nov 6 2002 Christian Bauer <Christian.Bauer@uni-mainz.de>
  76. Added HTML and DVI docs to devel package
  77. * Tue Nov 5 2001 Christian Bauer <Christian.Bauer@uni-mainz.de>
  78. Added Packager