Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 16373fa7be379b1e8906fe8ee43b8723 > files > 2

libffi-3.0.11-3.mga3.src.rpm

%define major 6
%define libname %mklibname ffi %major
%define develname %mklibname -d ffi
Name:		libffi
Version:	3.0.11
Release:	%mkrel 3
Summary:	A portable foreign function interface library
Group:		System/Libraries
License:	BSD
URL:		http://sourceware.org/libffi
Source0:	ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz

%description
Compilers for high level languages generate code that follow certain
conventions.  These conventions are necessary, in part, for separate
compilation to work.  One such convention is the "calling convention".
The calling convention is a set of assumptions made by the compiler
about where function arguments will be found on entry to a function.  A
calling convention also specifies where the return value for a function
is found.  

Some programs may not know at the time of compilation what arguments
are to be passed to a function.  For instance, an interpreter may be
told at run-time about the number and types of arguments used to call a
given function.  `Libffi' can be used in such programs to provide a
bridge from the interpreter program to compiled code.

The `libffi' library provides a portable, high level programming
interface to various calling conventions.  This allows a programmer to
call any function specified by a call interface description at run time.

FFI stands for Foreign Function Interface.  A foreign function
interface is the popular name for the interface that allows code
written in one language to call code written in another language.  The
`libffi' library really only provides the lowest, machine dependent
layer of a fully featured foreign function interface.  A layer must
exist above `libffi' that handles type conversions for values passed
between the two languages.  

%package -n %libname
Summary:	A portable foreign function interface library
Group:		System/Libraries
Provides:       %name = %version-%release
Provides:       %name%major = %version-%release
%description -n %libname
Compilers for high level languages generate code that follow certain
conventions.  These conventions are necessary, in part, for separate
compilation to work.  One such convention is the "calling convention".
The calling convention is a set of assumptions made by the compiler
about where function arguments will be found on entry to a function.  A
calling convention also specifies where the return value for a function
is found.  

Some programs may not know at the time of compilation what arguments
are to be passed to a function.  For instance, an interpreter may be
told at run-time about the number and types of arguments used to call a
given function.  `Libffi' can be used in such programs to provide a
bridge from the interpreter program to compiled code.

The `libffi' library provides a portable, high level programming
interface to various calling conventions.  This allows a programmer to
call any function specified by a call interface description at run time.

FFI stands for Foreign Function Interface.  A foreign function
interface is the popular name for the interface that allows code
written in one language to call code written in another language.  The
`libffi' library really only provides the lowest, machine dependent
layer of a fully featured foreign function interface.  A layer must
exist above `libffi' that handles type conversions for values passed
between the two languages.

%package -n %develname
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Provides:	 libffi-devel = %version-%release
Provides:	 ffi5-devel = %version-%release
Obsoletes:	 %{mklibname -d ffi 5}
Obsoletes:	 %{mklibname -d ffi 6}

%description -n %develname
This package contains libraries and header files for developing
applications that use %{name}.


%prep
%setup -q


%build
%configure2_5x --disable-static
%make


%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
rm -f $RPM_BUILD_ROOT%{_infodir}/dir


%clean
rm -rf $RPM_BUILD_ROOT


%post -n %develname
%_install_info libffi.info

%preun -n %develname
%_remove_install_info libffi.info


%files -n %libname
%defattr(-,root,root,-)
%doc LICENSE README
%{_libdir}/*.so.%{major}*

%files -n %develname
%defattr(-,root,root,-)
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}-%{version}
%{_libdir}/*.so
%{_mandir}/man3/*
%{_infodir}/libffi.info.*





%changelog

* Thu May 09 2013 colin <colin> 3.0.11-3.mga3
+ Revision: 412789
- Rename -devel package to fit library policy (gcj no longer conflicts)

* Sat Jan 12 2013 umeabot <umeabot> 3.0.11-2.mga3
+ Revision: 357102
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Aug 06 2012 luigiwalser <luigiwalser> 3.0.11-1.mga3
+ Revision: 278977
- 3.0.11 (updates major to 6)

* Fri Aug 26 2011 tv <tv> 3.0.10-1.mga2
+ Revision: 135554
- new release

* Sun Mar 27 2011 dmorgan <dmorgan> 3.0.9-4.mga1
+ Revision: 77949
- Add an other provides to help to choose the one we want

* Sun Mar 27 2011 dmorgan <dmorgan> 3.0.9-3.mga1
+ Revision: 77909
- Fix provides

  + ennael <ennael>
    - clean spec file

* Wed Jan 12 2011 dmorgan <dmorgan> 3.0.9-2.mga1
+ Revision: 7046
- imported package libffi


* Sun Nov 28 2010 Oden Eriksson <oeriksson@mandriva.com> 3.0.9-2mdv2011.0
+ Revision: 602541
- rebuild

* Fri Jan 01 2010 Götz Waschk <waschk@mandriva.org> 3.0.9-1mdv2010.1
+ Revision: 484651
- update to new version 3.0.9

* Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 3.0.8-2mdv2010.0
+ Revision: 425540
- rebuild

* Wed Feb 18 2009 Götz Waschk <waschk@mandriva.org> 3.0.8-1mdv2009.1
+ Revision: 342439
- update to new version 3.0.8

* Mon Dec 01 2008 Götz Waschk <waschk@mandriva.org> 3.0.7-1mdv2009.1
+ Revision: 308725
- update to new version 3.0.7

* Fri Sep 05 2008 Götz Waschk <waschk@mandriva.org> 3.0.6-2mdv2009.0
+ Revision: 281039
- fix conflict with gcc's libffi package

* Tue Sep 02 2008 Götz Waschk <waschk@mandriva.org> 3.0.6-1mdv2009.0
+ Revision: 278859
- new version
- update source URL
- add conflict with other libffi-devel

* Mon Sep 01 2008 Götz Waschk <waschk@mandriva.org> 3.0.5-1mdv2009.0
+ Revision: 278177
- import libffi


* Tue Jul 08 2008 Anthony Green <green@redhat.com> 3.0.5-1
- Upgrade to 3.0.5

* Fri Feb 15 2008 Anthony Green <green@redhat.com> 3.0.1-1
- Upgrade to 3.0.1

* Fri Feb 15 2008 Anthony Green <green@redhat.com> 2.99.9-1
- Upgrade to 2.99.9
- Require pkgconfig for the devel package.
- Update summary.

* Fri Feb 15 2008 Anthony Green <green@redhat.com> 2.99.8-1
- Upgrade to 2.99.8

* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.7-1
- Upgrade to 2.99.7

* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.6-1
- Upgrade to 2.99.6

* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.4-1
- Upgrade to 2.99.4

* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.3-1
- Upgrade to 2.99.3

* Thu Feb 14 2008 Anthony Green <green@redhat.com> 2.99.2-1
- Created.