slib-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define guile_mver 1.8
  2. Summary: Platform independent library for scheme
  3. Summary(ja): プラットフォームに依存しない sheme ライブラリ
  4. Name: slib
  5. Version: 3b1
  6. Release: 1%{?_dist_release}
  7. License: SLIB
  8. Group: Development/Languages
  9. BuildArch: noarch
  10. Source0: http://swiss.csail.mit.edu/ftpdir/scm/slib-%{version}.zip
  11. Patch1: slib-3b1-guile.patch
  12. URL: http://swissnet.ai.mit.edu/~jaffer/SLIB.html
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. PreReq: guile
  15. Requires(post): /sbin/install-info
  16. Requires(preun): /sbin/install-info
  17. %description
  18. "SLIB" is a portable library for the programming language Scheme.
  19. It provides a platform independent framework for using "packages" of
  20. Scheme procedures and syntax. As distributed, SLIB contains useful
  21. packages for all Scheme implementations. Its catalog can be
  22. transparently extended to accommodate packages specific to a site,
  23. implementation, user, or directory.
  24. %prep
  25. %setup -q -n %{name}
  26. %patch1 -p1 -b .guile
  27. sed -r -i "s,/usr/(local/)?lib/slib,%{_datadir}/slib,g" *.init
  28. %build
  29. %install
  30. rm -rf ${RPM_BUILD_ROOT}
  31. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/slib
  32. cp *.scm *.init *.xyz *.txt *.dat *.ps ${RPM_BUILD_ROOT}%{_datadir}/slib
  33. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  34. install -m644 slib.info ${RPM_BUILD_ROOT}%{_infodir}
  35. # create sym link to work with guile
  36. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/guile/%{guile_mver}
  37. pushd ${RPM_BUILD_ROOT}%{_datadir}/guile/%{guile_mver}
  38. ln -s ../../slib ${RPM_BUILD_ROOT}%{_datadir}/guile/%{guile_mver}/slib
  39. popd
  40. %clean
  41. rm -rf ${RPM_BUILD_ROOT}
  42. %post
  43. /sbin/install-info %{_infodir}/slib.info.gz %{_infodir}/dir
  44. :
  45. # build guile catalog
  46. /usr/bin/guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
  47. %preun
  48. if [ "$1" = 0 ]; then
  49. /sbin/install-info --delete %{_infodir}/slib.info.gz %{_infodir}/dir
  50. fi
  51. :
  52. %files
  53. %defattr(-,root,root)
  54. %dir %{_datadir}/slib
  55. %doc ANNOUNCE README COPYING FAQ ChangeLog
  56. %{_datadir}/slib/*
  57. %{_infodir}/slib.*
  58. %{_datadir}/guile/%{guile_mver}/slib
  59. %changelog
  60. * Mon Jan 12 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3b1-1
  61. - initial build for Vine Linux based on fedora development
  62. - create sym link to work with guile
  63. - update guile catalog in %%post
  64. * Thu Feb 14 2008 Miroslav Lichvar <mlichvar@redhat.com> 3b1-1
  65. - update to 3b1
  66. * Wed Jan 09 2008 Miroslav Lichvar <mlichvar@redhat.com> 3a5-1
  67. - update to 3a5
  68. - replace slib paths only in .init files
  69. * Fri Jun 22 2007 Miroslav Lichvar <mlichvar@redhat.com> 3a4-2
  70. - fix summary and buildroot (#226421)
  71. * Tue Jan 23 2007 Miroslav Lichvar <mlichvar@redhat.com> 3a4-1
  72. - update to 3a4
  73. - make scriptlets safer (#223717)
  74. * Wed Jul 12 2006 Miroslav Lichvar <mlichvar@redhat.com> 3a3-2
  75. - fix requires for install-info
  76. - drop slibcat, include *.dat and grapheps.ps files
  77. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3a3-1.1
  78. - rebuild
  79. * Tue May 09 2006 Miroslav Lichvar <mlichvar@redhat.com> 3a3-1
  80. - update to slib3a3
  81. - install info, remove html
  82. - fix typo in description (#189650)
  83. * Mon Feb 27 2006 Miroslav Lichvar <mlichvar@redhat.com> 3a1-6
  84. - spec cleanup
  85. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  86. - rebuilt
  87. * Thu Sep 8 2005 Jindrich Novy <jnovy@redhat.com> 3a1-5
  88. - regenerate slibcat to remove all links to umb-scheme
  89. to make gnucash work with slib
  90. - don't ship slib.spec from the upstream tarball
  91. - replace bogus links to /usr/lib
  92. - don't ship unneeded files in slib directory
  93. - add slib html documentation
  94. * Thu Sep 08 2005 Florian La Roche <laroche@redhat.com> 3a1-4
  95. - no need to provide slib for this package
  96. * Tue Sep 6 2005 Jindrich Novy <jnovy@redhat.com> 3a1-3
  97. - use _datadir instead of /usr/local/lib and don't use
  98. /usr/local prefix (#167490)
  99. * Wed Dec 8 2004 Jindrich Novy <jnovy@redhat.com> 3a1-2
  100. - remove symlinks creation for guile, it's done by guile itself
  101. * Wed Oct 6 2004 Jindrich Novy <jnovy@redhat.com> 3a1-1
  102. - new package
  103. - original spec file from R. J. Meier and Radey Shouman