libffcall/libffcall.spec

124 lines
3.5 KiB
RPMSpec

Name: libffcall
Version: 2.3
Release: 1mamba
Summary: Libraries that can be used to build foreign function call interfaces.
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gnu.org/software/libffcall/
Source: https://ftp.gnu.org/gnu/libffcall/libffcall-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%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.
%debug_package
%prep
%setup -q
%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
chmod +x %{buildroot}%{_libdir}/lib*.so.*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libavcall.so.*
%{_libdir}/libffcall.so.*
%{_libdir}/libcallback.so.*
%{_libdir}/libtrampoline.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libavcall.so
%{_libdir}/libffcall.so
%{_libdir}/libcallback.so
%{_libdir}/libtrampoline.so
%{_mandir}/man3/*.3*
%doc %{_datadir}/html/*.html
%doc NEWS README
%files static
%defattr(-,root,root)
%{_libdir}/*.a
%{_libdir}/*.la
%changelog
* Mon Jun 07 2021 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
- automatic version update by autodist
* Tue May 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2-2mamba
- fix libraries +x permissions
* Wed Nov 27 2019 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
- automatic version update by autodist
* Sat Jun 01 2019 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
- automatic version update by autodist
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1mamba
- update to 2.0
* Sat Aug 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.20120424svn-1mamba
- update to 1.10.20120424svn
- should build on arm
* Sat Aug 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10-2mamba
- rebuilt
* Mon Nov 10 2008 gil <puntogil@libero.it> 1.10-1mamba
- package created by autospec