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