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