ffcall-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %define debug_package %{nil}
  2. Name: ffcall
  3. Version: 1.10
  4. Release: 6.20100903cvs.1%{?_dist_release}
  5. Summary: Libraries for foreign function call interfaces
  6. Group: System Environment/Libraries
  7. License: GPLv2+
  8. URL: http://www.gnu.org/software/libffcall/
  9. # There has been no official release for several years, and the project web
  10. # site encourages use of a CVS snapshot. Make the tarball as follows:
  11. # cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall
  12. # export -D 2010-09-04 ffcall
  13. # tar cJf ffcall-20100903cvs.tar.xz ffcall
  14. Source0: ffcall-20100903cvs.tar.xz
  15. # This patch will not be sent upstream. It removes the possibility of using
  16. # mprotect() to make memory executable, as that runs afoul of SELinux.
  17. Patch0: ffcall-trampoline.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. %description
  20. This is a collection of four libraries which can be used to build
  21. foreign function call interfaces in embedded interpreters.
  22. %prep
  23. %setup -q -n ffcall
  24. %patch0
  25. find . -name \*.o | xargs rm -f
  26. %build
  27. export CFLAGS="%{optflags} -fPIC -DMAP_VARIABLE=2"
  28. %configure
  29. make # %{?_smp_mflags}
  30. %install
  31. rm -rf %{buildroot}
  32. mkdir -p %{buildroot}%{_libdir}
  33. mkdir -p %{buildroot}%{_mandir}
  34. make install DESTDIR=%{buildroot}
  35. rm -fr %{buildroot}%{_datadir}/html
  36. rm -f %{buildroot}%{_libdir}/*.la
  37. %clean
  38. rm -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc README NEWS COPYING
  42. %doc avcall/avcall.html
  43. %doc callback/callback.html
  44. %doc callback/trampoline_r/trampoline_r.html
  45. %doc trampoline/trampoline.html
  46. %doc vacall/vacall.html
  47. %{_libdir}/*.a
  48. %{_includedir}/*
  49. %{_mandir}/man*/*
  50. %changelog
  51. * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.10-6.20100903cvs.1
  52. - updated to 20100903 cvs source
  53. * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.10-5.20080704cvs.1
  54. - initial build for Vine Linux
  55. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4.20080704cvs.1
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  57. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3.20080704cvs.1
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  59. * Wed Dec 10 2008 Jochen Schmitt <Jochen herr-schmitt de> - 1.10-2.20080704cvs.1
  60. - Fix -FPIC issue (BZ #475112)
  61. * Fri Jul 4 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-2.20080704cvs
  62. - update to cvs 20080704
  63. - support for ppc64
  64. * Mon Feb 25 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-1
  65. - first Fedora release