guile-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define mver 1.8
  3. Version: 1.8.7
  4. Release: 1%{?_dist_release}
  5. Summary: A GNU implementation of Scheme for application extensibility.
  6. Summary(ja): アプリケーション拡張用 Scheme の GNU な実装
  7. Name: guile
  8. Source: ftp://ftp.gnu.org/gnu/guile-%{version}.tar.gz
  9. Source2: http://ai.king.net.pl/guile-1.6-missing-tools.tar.gz
  10. Patch1: guile-1.6.7-rpath.patch
  11. Patch2: guile-1.6.0-unknown_arch.patch
  12. Patch3: guile-1.6.0-ppc64.patch
  13. Patch4: guile-1.6.7-ltdl.patch
  14. Patch5: guile-1.6.7-64bit.patch
  15. # following patchs are imported from fedora-dev
  16. #Patch11: guile-1.8.4-multilib.patch
  17. #Patch12: guile-1.8.4-testsuite.patch
  18. Patch14: guile-1.8.6-deplibs.patch
  19. License: GPL
  20. Group: Development/Languages
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: libtool libtool-ltdl-devel >= 2.2.6a
  23. BuildRequires: gmp-devel readline-devel emacs
  24. Requires(post): /sbin/install-info
  25. Requires(preun): /sbin/install-info
  26. Requires: coreutils
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. Packager: yasumichi
  30. %description
  31. GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a library
  32. implementation of the Scheme programming language, written in C. GUILE
  33. provides a machine-independent execution platform that can be linked in
  34. as a library during the building of extensible programs.
  35. Install the guile package if you'd like to add extensibility to programs
  36. that you are developing.
  37. %package devel
  38. Summary: Libraries and header files for the GUILE extensibility library.
  39. Summary(ja): GUILE 用の開発ライブラリおよびヘッダファイル
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. Requires: gmp-devel
  43. %description devel
  44. The guile-devel package includes the libraries, header files, etc.,
  45. that you'll need to develop applications that are linked with the
  46. GUILE extensibility library.
  47. You need to install the guile-devel package if you want to develop
  48. applications that will be linked to GUILE. You'll also need to
  49. install the guile package.
  50. %package -n compat32-%{name}
  51. Summary: A GNU implementation of Scheme for application extensibility.
  52. Summary(ja): アプリケーション拡張用 Scheme の GNU な実装
  53. Group: Development/Languages
  54. Requires: %{name} = %{version}-%{release}
  55. %description -n compat32-%{name}
  56. GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a library
  57. implementation of the Scheme programming language, written in C. GUILE
  58. provides a machine-independent execution platform that can be linked in
  59. as a library during the building of extensible programs.
  60. Install the guile package if you'd like to add extensibility to programs
  61. that you are developing.
  62. %package -n compat32-%{name}-devel
  63. Summary: Libraries and header files for the GUILE extensibility library.
  64. Summary(ja): GUILE 用の開発ライブラリおよびヘッダファイル
  65. Group: Development/Libraries
  66. Requires: %{name}-devel = %{version}-%{release}
  67. Requires: compat32-%{name} = %{version}-%{release}
  68. Requires: compat32-gmp-devel
  69. %description -n compat32-%{name}-devel
  70. The guile-devel package includes the libraries, header files, etc.,
  71. that you'll need to develop applications that are linked with the
  72. GUILE extensibility library.
  73. You need to install the guile-devel package if you want to develop
  74. applications that will be linked to GUILE. You'll also need to
  75. install the guile package.
  76. %prep
  77. %setup -q
  78. #%patch1 -p1 -b .rpath
  79. #%patch2 -p1 -b .unknown_arch
  80. #%patch3 -p1 -b .ppc64
  81. #%patch4 -p1 -b .ltdl
  82. #%patch5 -p1 -b .64bit
  83. #%patch11 -p1 -b .multilib
  84. #%patch12 -p1 -b .testsuite
  85. %patch14 -p1 -b .deplibs
  86. %build
  87. %configure --disable-static --disable-error-on-warning
  88. # Remove RPATH
  89. sed -i 's|" $sys_lib_dlsearch_path "|" $sys_lib_dlsearch_path %{_libdir} "|' \
  90. {,guile-readline/}libtool
  91. make %{?_smp_mflags}
  92. %install
  93. rm -rf ${RPM_BUILD_ROOT}
  94. make DESTDIR=${RPM_BUILD_ROOT} install
  95. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/guile/site
  96. rm -f ${RPM_BUILD_ROOT}%{_libdir}/libguile*.la
  97. rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
  98. # Compress large documentation
  99. bzip2 NEWS
  100. for i in ${RPM_BUILD_ROOT}%{_infodir}/goops.info; do
  101. iconv -f iso8859-1 -t utf-8 < $i > $i.utf8 && mv -f ${i}{.utf8,}
  102. done
  103. touch ${RPM_BUILD_ROOT}%{_datadir}/guile/%{mver}/slibcat
  104. ln -s ../../slib ${RPM_BUILD_ROOT}%{_datadir}/guile/%{mver}/slib
  105. %clean
  106. rm -rf ${RPM_BUILD_ROOT}
  107. %post
  108. /sbin/ldconfig
  109. /sbin/install-info %{_infodir}/guile.info.gz %{_infodir}/dir
  110. /sbin/install-info %{_infodir}/r5rs.info.gz %{_infodir}/dir
  111. /sbin/install-info %{_infodir}/goops.info.gz %{_infodir}/dir
  112. /sbin/install-info %{_infodir}/guile-tut.info.gz %{_infodir}/dir
  113. %postun -p /sbin/ldconfig
  114. %preun
  115. if [ "$1" = 0 ]; then
  116. /sbin/install-info --delete %{_infodir}/guile.info.gz %{_infodir}/dir
  117. /sbin/install-info --delete %{_infodir}/r5rs.info.gz %{_infodir}/dir
  118. /sbin/install-info --delete %{_infodir}/goops.info.gz %{_infodir}/dir
  119. /sbin/install-info --delete %{_infodir}/guile-tut.info.gz %{_infodir}/dir
  120. fi
  121. :
  122. %post -n compat32-%{name} -p /sbin/ldconfig
  123. %postun -n compat32-%{name} -p /sbin/ldconfig
  124. %files
  125. %defattr(-,root,root,-)
  126. %doc AUTHORS COPYING* ChangeLog HACKING NEWS.bz2 README THANKS
  127. %{_bindir}/guile
  128. %{_bindir}/guile-tools
  129. %{_libdir}/libguile*.so.*
  130. %{_libdir}/libguilereadline-*.so
  131. %{_libdir}/libguile-srfi-srfi-*.so
  132. %dir %{_datadir}/guile
  133. %dir %{_datadir}/guile/%{mver}
  134. %{_datadir}/guile/%{mver}/ice-9
  135. %{_datadir}/guile/%{mver}/lang
  136. %{_datadir}/guile/%{mver}/oop
  137. %{_datadir}/guile/%{mver}/scripts
  138. %{_datadir}/guile/%{mver}/srfi
  139. %{_datadir}/guile/%{mver}/guile-procedures.txt
  140. %ghost %{_datadir}/guile/%{mver}/slibcat
  141. %ghost %{_datadir}/guile/%{mver}/slib
  142. %dir %{_datadir}/guile/site
  143. %dir %{_datadir}/emacs/site-lisp
  144. %{_datadir}/emacs/site-lisp/*.el
  145. %{_infodir}/*
  146. %{_mandir}/man1/guile.1*
  147. %files devel
  148. %defattr(-,root,root,-)
  149. %{_bindir}/guile-config
  150. %{_bindir}/guile-snarf
  151. %{_datadir}/aclocal/*
  152. %{_libdir}/libguile.so
  153. %{_libdir}/pkgconfig/*.pc
  154. %{_includedir}/guile
  155. %{_includedir}/libguile
  156. %{_includedir}/libguile.h
  157. # compat32
  158. %if %{build_compat32}
  159. %files -n compat32-%{name}
  160. %defattr(-,root,root,-)
  161. %{_libdir}/libguile*.so.*
  162. %{_libdir}/libguilereadline-*.so
  163. %{_libdir}/libguile-srfi-srfi-*.so
  164. %files -n compat32-%{name}-devel
  165. %defattr(-,root,root,-)
  166. %{_libdir}/libguile.so
  167. %{_libdir}/pkgconfig/*.pc
  168. %endif
  169. %changelog
  170. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.8.7-1
  171. - new upstream release.
  172. - comment out Patch11,12.
  173. * Fri Jul 24 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.8.6-4
  174. - added Requires: gmp-devel to guile-devel
  175. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.8.6-3
  176. - added compat32 package for x86_64 arch support
  177. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.6-2
  178. - rebuild with libtool-2.2.6a
  179. * Mon Jan 12 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.8.6-1
  180. - new upstream release
  181. - import some patches from fedora development
  182. - drop some old patches
  183. - update spec based on fedora package
  184. - spec in utf-8
  185. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.6.7-6vl5
  186. - use macro for Release
  187. * Sat May 10 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.6.7-5vl5
  188. - apply new virsioning policy.
  189. - remove *.la
  190. * Sun Apr 23 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.7-4vl2
  191. - rebuilt with readline 5.1
  192. * Sun Oct 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.7-4vl1
  193. - added Patches from Fedora
  194. * Fri Sep 02 2005 Phil Knirsch <pknirsch@redhat.com> 5:1.6.7-4
  195. - Fix dynamic linking on 64bit archs (#159971)
  196. * Tue Dec 21 2004 Phil Knirsch <pknirsch@redhat.com> 5:1.6.4-16
  197. - Moved info files to base package as they are not devel related (#139948)
  198. - Moved static guilereadline and guile-srfi-srfi libs to devel package (#140893)
  199. - Fixed guile-tools not finding guile lib dir (#142642)
  200. - Added some nice tools (#142642)
  201. - Removed smp build, seems to be broken atm
  202. * Fri Jan 7 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.7-0vl1
  203. - new upstream release
  204. - dropped patch2, 4, 6
  205. - added BuildPrereq: perl
  206. * Fri Jan 2 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.4-0vl2
  207. - rebuild with new toolchains
  208. - s/Copyright/License/
  209. - added srfi libs
  210. - patch for ppc64 from Fedora package
  211. * Thu May 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.4-0vl1
  212. - update to 1.6.4
  213. * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.6.3-0vl3
  214. - rebuild with readline-4.3
  215. * Thu Feb 13 2003 Ryoichi INAGAKI <ryo1i@bc.wakwak.com> 1.6.3-0vl2
  216. - based on Rawhide 1.6.0-4
  217. - Included s390 as working arch as well, switch to general unknown arch patch
  218. - rebuild to fix broken deps
  219. - fix continuations.h on ia64
  220. - new upstream 1.6.3
  221. * Mon Mar 26 2001 Kazuhisa TAKEI <takei@vinelinux.org> 1.3.4-9vl1
  222. - porting for Vine Linux
  223. - remove 1.3 patches( not required so that upstream upgrade )
  224. * Fri Jul 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  225. - Add version number to prereq for umb-scheme to get the post-install to
  226. work properly.
  227. * Thu Jul 13 2000 Nalin Dahyabhai <nalin@redhat.com>
  228. - Add an Epoch = 1 in case anyone happened to have 1.4 installed.
  229. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  230. - automatic rebuild
  231. * Tue Jul 11 2000 Nalin Dahyabhai <nalin@redhat.com>
  232. - Back down to 1.3.4.
  233. - Fix to actually link against the version of libguile in the package.
  234. * Sun Jun 4 2000 Nalin Dahyabhai <nalin@redhat.com>
  235. - FHS fixups using the %%{makeinstall} macro.
  236. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  237. - fix preun-devel
  238. - call ldconfig directly in postun
  239. * Fri Mar 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  240. - rebuild with new readline
  241. - update to 1.3.4
  242. * Mon Feb 28 2000 Nalin Dahyabhai <nalin@redhat.com>
  243. - using the same catalog as umb-scheme makes umb-scheme a prereq
  244. * Thu Feb 17 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  245. - readline is needed for %post
  246. * Tue Feb 8 2000 Nalin Dahyabhai <nalin@redhat.com>
  247. - use the same catalog as umb-scheme
  248. * Thu Sep 2 1999 Jeff Johnson <jbj@redhat.com>
  249. - fix broken %postun
  250. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  251. - auto rebuild in the new build environment (release 6)
  252. * Wed Mar 17 1999 Michael Johnson <johnsonm@redhat.com>
  253. - added .ansi patch to fix #endif
  254. * Wed Feb 10 1999 Cristian Gafton <gafton@redhat.com>
  255. - add patch for the scm stuff
  256. * Sun Jan 17 1999 Jeff Johnson <jbj@redhat.com>
  257. - integrate changes from rhcn version (#640)
  258. * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com>
  259. - call libtoolize first to get it to compile on the arm
  260. * Sat Jan 9 1999 Todd Larason <jtl@molehill.org>
  261. - Added "Requires: guile" at suggestion of Manu Rouat <emmanuel.rouat@wanadoo.fr>
  262. * Fri Jan 1 1999 Todd Larason <jtl@molehill.org>
  263. - guile-devel does depend on guile
  264. - remove devel dependancy on m4
  265. - move guile-snarf from guile to guile-devel
  266. - Converted to rhcn
  267. * Wed Oct 21 1998 Jeff Johnson <jbj@redhat.com>
  268. - update to 1.3.
  269. - don't strip libguile.so.*.0.0. (but set the execute bits).
  270. * Thu Sep 10 1998 Cristian Gafton <gafton@redhat.com>
  271. - spec file fixups
  272. * Wed Sep 2 1998 Michael Fulbright <msf@redhat.com>
  273. - Updated for RH 5.2
  274. * Mon Jan 26 1998 Marc Ewing <marc@redhat.com>
  275. - Started with spec from Tomasz Koczko <kloczek@idk.com.pl>
  276. - added slib link
  277. * Thu Sep 18 1997 Tomasz Koczko <kloczek@idk.com.pl> (1.2-3)
  278. - added %attr(-, root, root) for %doc,
  279. - in %post, %postun ldconfig runed as parameter "-p",
  280. - removed /bin/sh from requires,
  281. - added %description,
  282. - changes in %files.
  283. * Fri Jul 11 1997 Tomasz Koczko <kloczek@rudy.mif.pg.gda.pl> (1.2-2)
  284. - all rewrited for using Buildroot,
  285. - added %postun,
  286. - removed making buid logs,
  287. - removed "--inclededir", added "--enable-dynamic-linking" to configure
  288. parameters,
  289. - added striping shared libs and /usr/bin/guile,
  290. - added "Requires: /bin/sh" (for guile-snarf) in guile package and
  291. "Requires: m4" for guile-devel,
  292. - added macro %{PACKAGE_VERSION} in "Source:" and %files,
  293. - added %attr macros in %files.