[521] | 1 | %define name libffi |
---|
| 2 | %define version 3.0.9 |
---|
[2233] | 3 | %define release 3%{?_dist_release} |
---|
[521] | 4 | |
---|
| 5 | Summary: Foreign function interface library |
---|
| 6 | Summary(ja): Foreign function interface ライブラリ |
---|
| 7 | Name: %{name} |
---|
| 8 | Version: %{version} |
---|
| 9 | Release: %{release} |
---|
[2233] | 10 | Source0: ftp://sourceware.org/pub/libffi/%{name}-%{version}.tar.gz |
---|
[521] | 11 | License: Distributable |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | URL: http://sourceware.org/libffi/ |
---|
| 14 | |
---|
| 15 | BuildRequires: gcc |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | A foreign function interface is the popular name for the interface |
---|
| 21 | that allows code written in one language to call code written in |
---|
| 22 | another language. |
---|
| 23 | |
---|
| 24 | %description -l ja |
---|
| 25 | Foreign function interface は一般に普及しているインターフェイスで、 |
---|
| 26 | ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ |
---|
| 27 | とを可能にします。 |
---|
| 28 | |
---|
| 29 | #----------------------------------------------------------------------------- |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Libraries and headers for %{name} |
---|
| 33 | Summary(ja): %{name} 用の開発ライブラリおよびヘッダファイル |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: %{name} = %{version} |
---|
| 36 | |
---|
| 37 | %description devel |
---|
| 38 | This package includes the files needed for developing and compiling |
---|
| 39 | applications which use the ffi library. |
---|
| 40 | |
---|
| 41 | You should install the libffi-devel package if you would like to |
---|
| 42 | develop applications using libffi. |
---|
| 43 | |
---|
| 44 | %description devel -l ja |
---|
| 45 | このパッケージは ffi ライブラリを使用するアプリケーションを開発 |
---|
| 46 | するのに必要なライブラリやヘッダファイルを含んでいます。 |
---|
| 47 | |
---|
| 48 | libffi を使用したアプリケーションを開発するなら、このパッケージ |
---|
| 49 | をインストールしてください。 |
---|
| 50 | |
---|
| 51 | #----------------------------------------------------------------------------- |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %prep |
---|
| 55 | |
---|
| 56 | %setup -q |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | %configure |
---|
| 61 | %{__make} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %install |
---|
| 65 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 66 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 67 | |
---|
| 68 | # move include files. |
---|
| 69 | %{__mv} ${RPM_BUILD_ROOT}/%{_libdir}/libffi-%{version}/include ${RPM_BUILD_ROOT}/%{_includedir} |
---|
[2233] | 70 | sed -i -e "s|^includedir=.*include$|includedir=%{_includedir}|" \ |
---|
| 71 | ${RPM_BUILD_ROOT}/%{_libdir}/pkgconfig/libffi.pc |
---|
[521] | 72 | |
---|
| 73 | # remove unnecessary files. |
---|
| 74 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libffi.la |
---|
| 75 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_infodir}/dir |
---|
| 76 | |
---|
| 77 | %clean |
---|
| 78 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 79 | |
---|
| 80 | %post -p /sbin/ldconfig |
---|
| 81 | |
---|
| 82 | %postun -p /sbin/ldconfig |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root) |
---|
| 87 | %doc ChangeLog* LICENSE README |
---|
| 88 | %{_libdir}/libffi.so.* |
---|
| 89 | %{_infodir}/libffi.info* |
---|
| 90 | %{_mandir}/man3/ffi.3* |
---|
| 91 | %{_mandir}/man3/ffi_call.3* |
---|
| 92 | %{_mandir}/man3/ffi_prep_cif.3* |
---|
| 93 | |
---|
| 94 | %files devel |
---|
| 95 | %defattr(-,root,root) |
---|
| 96 | %{_libdir}/pkgconfig/* |
---|
| 97 | %{_libdir}/libffi.a |
---|
| 98 | %{_libdir}/libffi.so |
---|
| 99 | %{_includedir}/*.h |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %changelog |
---|
[2233] | 103 | * Fri Nov 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.9-3 |
---|
| 104 | - fixed includedir in libffi.pc |
---|
| 105 | |
---|
[1856] | 106 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.9-2 |
---|
| 107 | - build with rpm-4.8.1-1 for pkg-config file |
---|
| 108 | |
---|
[521] | 109 | * Tue Feb 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0.9-1 |
---|
| 110 | - new upstream release |
---|
| 111 | - built with new toolchain |
---|
| 112 | |
---|
| 113 | * Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.8-1 |
---|
| 114 | - new upstream release |
---|
| 115 | - spec in UTF-8 |
---|
| 116 | |
---|
| 117 | * Thu Apr 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.5-1 |
---|
| 118 | - updated to new upstream release |
---|
| 119 | |
---|
| 120 | * Wed Apr 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-1 |
---|
| 121 | - apply new versioning policy |
---|
| 122 | |
---|
| 123 | * Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-0vl1 |
---|
| 124 | - initial build for Vine Linux |
---|