diff --git a/README.md b/README.md index 103de5c..bb2b6c4 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # libffcall +This is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters. + +The four packages are: +avcall - calling C functions with variable arguments +vacall - C functions accepting variable argument prototypes +trampoline - closures as first-class C functions +callback - closures with variable arguments as first-class C functions (a reentrant combination of vacall and trampoline) + diff --git a/libffcall.spec b/libffcall.spec new file mode 100644 index 0000000..5abed8e --- /dev/null +++ b/libffcall.spec @@ -0,0 +1,105 @@ +Name: libffcall +Version: 1.10.20120424svn +Release: 1mamba +Summary: Libraries that can be used to build foreign function call interfaces. +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.haible.de/bruno/packages-ffcall.html +# From Fedora: +# There has been no official release for several years, and the project web +# site encourages use of a CVS snapshot. Make the tarball as follows: +# cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall +# export -D 2012-04-24 ffcall +# tar cJf ffcall-20120424cvs.tar.xz ffcall +Source: http://www.haible.de/bruno/gnu/ffcall-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters. + +The four packages are: +avcall - calling C functions with variable arguments +vacall - C functions accepting variable argument prototypes +trampoline - closures as first-class C functions +callback - closures with variable arguments as first-class C functions (a reentrant combination of vacall and trampoline) + +%package devel +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters. + +This package contains libraries and header files need for development. + +%package static +Summary: Static libraries and headers for %{name} +Group: Development/Libraries +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description static +This is a collection of four libraries which can be used to build foreign function call interfaces in embedded interpreters. + +This package contains static libraries for development. + +%prep + +%setup -q -n ffcall + +%build +%configure \ + --prefix=%{_prefix} \ + --mandir=%{_mandir} \ + --enable-shared \ + --enable-static + +make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__mkdir_p} %{buildroot}%{_includedir} +%{__mkdir_p} %{buildroot}%{_libdir} +%{__mkdir_p} %{buildroot}%{_mandir} +%{__mkdir_p} %{buildroot}%{_datadir} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%{_mandir}/man3/*.3.gz +%doc %{_datadir}/html/*.html +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/*.so +%doc NEWS README + +%files static +%defattr(-,root,root) +%{_libdir}/*.a +%{_libdir}/*.la + +%changelog +* Sat Aug 24 2013 Silvan Calarco 1.10.20120424svn-1mamba +- update to 1.10.20120424svn +- should build on arm + +* Sat Aug 24 2013 Silvan Calarco 1.10-2mamba +- rebuilt + +* Mon Nov 10 2008 gil 1.10-1mamba +- package created by autospec