libffi321-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Summary: Foreign function interface library
  2. Summary(ja): Foreign function interface ライブラリ
  3. Name: libffi321
  4. Version: 3.2.1
  5. Release: 1%{?_dist_release}
  6. Source0: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz
  7. Patch0: libffi-3.1-fix-include-path.patch
  8. License: Distributable
  9. Group: System Environment/Libraries
  10. URL: http://sourceware.org/libffi/
  11. BuildRequires: gcc
  12. BuildRequires: texinfo
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Obsoletes: libffi < 3.3
  15. Provides: libffi = %{version}-%{release}
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. A foreign function interface is the popular name for the interface
  20. that allows code written in one language to call code written in
  21. another language.
  22. %description -l ja
  23. Foreign function interface は一般に普及しているインターフェイスで、
  24. ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ
  25. とを可能にします。
  26. #-----------------------------------------------------------------------------
  27. %prep
  28. %setup -q -n libffi-%{version}
  29. %patch0 -p1
  30. %build
  31. autoreconf -ifv
  32. %configure
  33. %{__make}
  34. %install
  35. %{__rm} -rf ${RPM_BUILD_ROOT}
  36. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  37. # move include files.
  38. %{__mv} ${RPM_BUILD_ROOT}/%{_libdir}/libffi-%{version}/include ${RPM_BUILD_ROOT}/%{_includedir}
  39. sed -i -e "s|^includedir=.*include$|includedir=%{_includedir}|" \
  40. ${RPM_BUILD_ROOT}/%{_libdir}/pkgconfig/libffi.pc
  41. # remove unnecessary files.
  42. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libffi.la
  43. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_infodir}/dir
  44. rm -f %{buildroot}%{_libdir}/pkgconfig/*
  45. rm -f %{buildroot}%{_libdir}/libffi.a
  46. rm -f %{buildroot}%{_libdir}/libffi.so
  47. rm -f %{buildroot}%{_includedir}/*.h
  48. rm -f %{buildroot}%{_infodir}/*
  49. rm -f %{buildroot}%{_mandir}/man3/*
  50. %clean
  51. %{__rm} -rf ${RPM_BUILD_ROOT}
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %defattr(-,root,root)
  56. %license LICENSE
  57. %doc ChangeLog* README
  58. %{_libdir}/libffi.so.*
  59. %changelog
  60. * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.1-1
  61. - renamed from libffi to libffi321.
  62. - built for compatibility.
  63. * Tue Jan 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.1-1
  64. - updated to 3.2.1.
  65. - imported Patch0 from rawhide.
  66. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.13-1
  67. - update to 3.0.13
  68. * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.9-4
  69. - create compat32 sub packages
  70. * Fri Nov 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.9-3
  71. - fixed includedir in libffi.pc
  72. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.9-2
  73. - build with rpm-4.8.1-1 for pkg-config file
  74. * Tue Feb 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0.9-1
  75. - new upstream release
  76. - built with new toolchain
  77. * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.8-1
  78. - new upstream release
  79. - spec in UTF-8
  80. * Thu Apr 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.5-1
  81. - updated to new upstream release
  82. * Wed Apr 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-1
  83. - apply new versioning policy
  84. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-0vl1
  85. - initial build for Vine Linux