|
|
852f77e |
Name: libffi
|
|
Anthony Green |
6b81650 |
Version: 3.0.10
|
|
Anthony Green |
6b81650 |
Release: 1%{?dist}
|
|
|
852f77e |
Summary: A portable foreign function interface library
|
|
|
852f77e |
|
|
|
852f77e |
Group: System Environment/Libraries
|
|
|
852f77e |
License: BSD
|
|
|
852f77e |
URL: http://sourceware.org/libffi
|
|
|
852f77e |
Source0: http://sourceware.org/libffi/libffi-%{version}.tar.gz
|
|
|
a95b47f |
# part of upstream commit 5feacad4
|
|
|
852f77e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
852f77e |
|
|
|
852f77e |
%description
|
|
|
852f77e |
Compilers for high level languages generate code that follow certain
|
|
|
852f77e |
conventions. These conventions are necessary, in part, for separate
|
|
|
852f77e |
compilation to work. One such convention is the "calling convention".
|
|
|
852f77e |
The calling convention is a set of assumptions made by the compiler
|
|
|
852f77e |
about where function arguments will be found on entry to a function. A
|
|
|
852f77e |
calling convention also specifies where the return value for a function
|
|
|
852f77e |
is found.
|
|
|
852f77e |
|
|
|
852f77e |
Some programs may not know at the time of compilation what arguments
|
|
|
852f77e |
are to be passed to a function. For instance, an interpreter may be
|
|
|
852f77e |
told at run-time about the number and types of arguments used to call a
|
|
|
852f77e |
given function. `Libffi' can be used in such programs to provide a
|
|
|
852f77e |
bridge from the interpreter program to compiled code.
|
|
|
852f77e |
|
|
|
852f77e |
The `libffi' library provides a portable, high level programming
|
|
|
852f77e |
interface to various calling conventions. This allows a programmer to
|
|
|
852f77e |
call any function specified by a call interface description at run time.
|
|
|
852f77e |
|
|
|
852f77e |
FFI stands for Foreign Function Interface. A foreign function
|
|
|
852f77e |
interface is the popular name for the interface that allows code
|
|
|
852f77e |
written in one language to call code written in another language. The
|
|
|
852f77e |
`libffi' library really only provides the lowest, machine dependent
|
|
|
852f77e |
layer of a fully featured foreign function interface. A layer must
|
|
|
852f77e |
exist above `libffi' that handles type conversions for values passed
|
|
|
852f77e |
between the two languages.
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%package devel
|
|
|
852f77e |
Summary: Development files for %{name}
|
|
|
852f77e |
Group: Development/Libraries
|
|
|
852f77e |
Requires: %{name} = %{version}-%{release}
|
|
|
852f77e |
Requires: pkgconfig
|
|
|
852f77e |
Requires(post): /sbin/install-info
|
|
|
852f77e |
Requires(preun): /sbin/install-info
|
|
|
852f77e |
|
|
|
852f77e |
%description devel
|
|
|
852f77e |
The %{name}-devel package contains libraries and header files for
|
|
|
852f77e |
developing applications that use %{name}.
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%prep
|
|
|
852f77e |
%setup -q
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%build
|
|
|
852f77e |
%configure --disable-static
|
|
|
852f77e |
make %{?_smp_mflags}
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%install
|
|
|
852f77e |
rm -rf $RPM_BUILD_ROOT
|
|
|
852f77e |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
852f77e |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
852f77e |
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%clean
|
|
|
852f77e |
rm -rf $RPM_BUILD_ROOT
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%post -p /sbin/ldconfig
|
|
|
852f77e |
|
|
|
852f77e |
%post devel
|
|
|
852f77e |
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libffi.info.gz
|
|
|
852f77e |
|
|
|
852f77e |
%preun devel
|
|
|
852f77e |
if [ $1 = 0 ] ;then
|
|
|
852f77e |
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libffi.info.gz
|
|
|
852f77e |
fi
|
|
|
852f77e |
|
|
|
852f77e |
%postun -p /sbin/ldconfig
|
|
|
852f77e |
|
|
|
852f77e |
|
|
|
852f77e |
%files
|
|
|
852f77e |
%defattr(-,root,root,-)
|
|
|
852f77e |
%doc LICENSE README
|
|
|
852f77e |
%{_libdir}/*.so.*
|
|
|
852f77e |
|
|
|
852f77e |
%files devel
|
|
|
852f77e |
%defattr(-,root,root,-)
|
|
|
852f77e |
%{_libdir}/pkgconfig/*.pc
|
|
|
852f77e |
%{_libdir}/%{name}-%{version}
|
|
|
852f77e |
%{_libdir}/*.so
|
|
|
852f77e |
%{_mandir}/man3/*.gz
|
|
|
852f77e |
%{_infodir}/libffi.info.gz
|
|
|
852f77e |
|
|
|
852f77e |
%changelog
|
|
Anthony Green |
6b81650 |
* Tue Aug 23 2011 Anthony Green <green@redhat.com> - 3.0.10-1
|
|
Anthony Green |
6b81650 |
- Upgrade to 3.0.10.
|
|
Anthony Green |
6b81650 |
|
|
|
a95b47f |
* Fri Mar 18 2011 Dan HorĂ¡k <dan[at]danny.cz> - 3.0.9-3
|
|
|
a95b47f |
- added patch for being careful when defining relatively generic symbols
|
|
|
a95b47f |
|
|
|
ef8a313 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.9-2
|
|
|
ef8a313 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ef8a313 |
|
|
|
bce594c |
* Tue Dec 29 2009 Anthony Green <green@redhat.com> - 3.0.9-1
|
|
|
bce594c |
- Upgrade
|
|
|
bce594c |
|
|
|
26f44d9 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.5-3
|
|
|
26f44d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
26f44d9 |
|
|
|
6f19f43 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.5-2
|
|
|
6f19f43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
6f19f43 |
|
|
|
cc7083f |
* Tue Jul 08 2008 Anthony Green <green@redhat.com> 3.0.5-1
|
|
|
cc7083f |
- Upgrade to 3.0.5
|
|
|
cc7083f |
|
|
|
2375866 |
* Fri Feb 15 2008 Anthony Green <green@redhat.com> 3.0.1-1
|
|
|
2375866 |
- Upgrade to 3.0.1
|
|
|
2375866 |
|
|
|
852f77e |
* Fri Feb 15 2008 Anthony Green <green@redhat.com> 2.99.9-1
|
|
|
852f77e |
- Upgrade to 2.99.9
|
|
|
852f77e |
- Require pkgconfig for the devel package.
|
|
|
852f77e |
- Update summary.
|
|
|
852f77e |
|
|
|
852f77e |
* Fri Feb 15 2008 Anthony Green <green@redhat.com> 2.99.8-1
|
|
|
852f77e |
- Upgrade to 2.99.8
|
|
|
852f77e |
|
|
|
852f77e |
* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.7-1
|
|
|
852f77e |
- Upgrade to 2.99.7
|
|
|
852f77e |
|
|
|
852f77e |
* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.6-1
|
|
|
852f77e |
- Upgrade to 2.99.6
|
|
|
852f77e |
|
|
|
852f77e |
* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.4-1
|
|
|
852f77e |
- Upgrade to 2.99.4
|
|
|
852f77e |
|
|
|
852f77e |
* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.3-1
|
|
|
852f77e |
- Upgrade to 2.99.3
|
|
|
852f77e |
|
|
|
852f77e |
* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.2-1
|
|
|
852f77e |
- Created.
|