libffi-vl.spec 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Foreign function interface library
  3. Summary(ja): Foreign function interface ライブラリ
  4. Name: libffi
  5. Version: 3.5.0
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: Distributable
  11. URL: https://sourceware.org/libffi/
  12. Source0: https://github.com/libffi/libffi/releases/download/v%{version}/%{name}-%{version}.tar.gz
  13. BuildRequires: gcc
  14. BuildRequires: texinfo
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. %description
  17. A foreign function interface is the popular name for the interface
  18. that allows code written in one language to call code written in
  19. another language.
  20. %description -l ja
  21. Foreign function interface は一般に普及しているインターフェイスで、
  22. ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ
  23. とを可能にします。
  24. #-----------------------------------------------------------------------------
  25. %package devel
  26. Summary: Libraries and headers for %{name}
  27. Summary(ja): %{name} 用の開発ライブラリおよびヘッダファイル
  28. Group: programmming
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pkgconfig
  31. %description devel
  32. This package includes the files needed for developing and compiling
  33. applications which use the ffi library.
  34. You should install the libffi-devel package if you would like to
  35. develop applications using libffi.
  36. %description devel -l ja
  37. このパッケージは ffi ライブラリを使用するアプリケーションを開発
  38. するのに必要なライブラリやヘッダファイルを含んでいます。
  39. libffi を使用したアプリケーションを開発するなら、このパッケージ
  40. をインストールしてください。
  41. #-----------------------------------------------------------------------------
  42. %package static
  43. Summary: Static libraries for %{name}
  44. Summary(ja): %{name} の静的ライブラリ
  45. Group: programmming
  46. Requires: %{name}-devel = %{version}-%{release}
  47. %description static
  48. This package includes the static library of libffi.
  49. %description static -l ja
  50. このパッケージは ffi ライブラリの静的ライブラリを含んでいます。
  51. #-----------------------------------------------------------------------------
  52. #compat32
  53. %package -n compat32-%{name}
  54. Summary: Foreign function interface library
  55. Summary(ja): Foreign function interface ライブラリ
  56. Group: system,legacy
  57. Requires: %{name} = %{version}
  58. %description -n compat32-%{name}
  59. A foreign function interface is the popular name for the interface
  60. that allows code written in one language to call code written in
  61. another language.
  62. %description -n compat32-%{name} -l ja
  63. Foreign function interface は一般に普及しているインターフェイスで、
  64. ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ
  65. とを可能にします。
  66. #-----------------------------------------------------------------------------
  67. %package -n compat32-%{name}-devel
  68. Summary: Libraries and headers for %{name}
  69. Summary(ja): %{name} 用の開発ライブラリおよびヘッダファイル
  70. Group: programming,legacy
  71. Requires: compat32-%{name} = %{version}
  72. Requires: %{name}-devel = %{version}
  73. %description -n compat32-%{name}-devel
  74. This package includes the files needed for developing and compiling
  75. applications which use the ffi library.
  76. You should install the libffi-devel package if you would like to
  77. develop applications using libffi.
  78. %description -n compat32-%{name}-devel -l ja
  79. このパッケージは ffi ライブラリを使用するアプリケーションを開発
  80. するのに必要なライブラリやヘッダファイルを含んでいます。
  81. libffi を使用したアプリケーションを開発するなら、このパッケージ
  82. をインストールしてください。
  83. #-----------------------------------------------------------------------------
  84. %debug_package
  85. %prep
  86. %setup -q
  87. sed -i -e 's/{toolexeclibdir}/{libdir}/' libffi.pc.in
  88. %build
  89. #autoreconf -ifv
  90. %configure
  91. %{__make}
  92. %install
  93. %{__rm} -rf ${RPM_BUILD_ROOT}
  94. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  95. # remove unnecessary files.
  96. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libffi.la
  97. %{__rm} -rf ${RPM_BUILD_ROOT}/%{_infodir}/dir
  98. %files
  99. %license LICENSE
  100. %doc ChangeLog* README*
  101. %{_libdir}/libffi.so.*
  102. %files devel
  103. %{_libdir}/pkgconfig/*
  104. %{_libdir}/libffi.so
  105. %{_includedir}/*.h
  106. %{_infodir}/libffi.info*
  107. %{_mandir}/man3/*.3*
  108. %files static
  109. %{_libdir}/libffi.a
  110. # compat32
  111. %if %{build_compat32}
  112. %files -n compat32-%{name}
  113. %{_libdir}/libffi.so.*
  114. %files -n compat32-%{name}-devel
  115. %{_libdir}/libffi.so
  116. %endif
  117. %changelog
  118. * Tue Jun 10 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.5.0-1
  119. - updated to 3.5.0.
  120. * Thu Apr 3 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.7-1
  121. - updated to 3.4.7.
  122. * Sat May 04 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.6-1
  123. - updated to 3.4.6.
  124. * Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3-1
  125. - updated to 3.3.
  126. - dropped Patch0.
  127. * Tue Jan 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.1-1
  128. - updated to 3.2.1.
  129. - imported Patch0 from rawhide.
  130. * Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.13-1
  131. - update to 3.0.13
  132. * Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.9-4
  133. - create compat32 sub packages
  134. * Fri Nov 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.9-3
  135. - fixed includedir in libffi.pc
  136. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.9-2
  137. - build with rpm-4.8.1-1 for pkg-config file
  138. * Tue Feb 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0.9-1
  139. - new upstream release
  140. - built with new toolchain
  141. * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.8-1
  142. - new upstream release
  143. - spec in UTF-8
  144. * Thu Apr 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.5-1
  145. - updated to new upstream release
  146. * Wed Apr 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-1
  147. - apply new versioning policy
  148. * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-0vl1
  149. - initial build for Vine Linux