2013-03-27 21:06:57 +00:00
|
|
|
# Only a static library is provided, so no debug information can be extracted.
|
2012-01-08 22:33:30 +00:00
|
|
|
%global debug_package %{nil}
|
|
|
|
|
2013-03-27 21:06:57 +00:00
|
|
|
# This package uses assembly to do its work. This is the entire list of
|
|
|
|
# supported architectures understood by RPM, even those not currently supported
|
|
|
|
# by Fedora. RPM hasn't heard about line continuations, hence the mess.
|
|
|
|
%global ffcall_arches %{ix86} x86_64 amd64 %{alpha} armv3l armv4b armv4l armv4tl armv5tel armv5tejl armv6l armv7l armv7hl armv7hnl parisc hppa1.0 hppa1.1 hppa1.2 hppa2.0 ia64 m68k mips mipsel ppc ppc8260 ppc8560 ppc32dy4 ppciseries ppcpseries %{power64} s390 s390x %{sparc}
|
|
|
|
|
2008-04-18 16:39:37 +00:00
|
|
|
Name: ffcall
|
2015-09-30 03:55:27 +00:00
|
|
|
Version: 1.12
|
2017-02-10 09:44:32 +00:00
|
|
|
Release: 3%{?dist}
|
2008-04-18 16:39:37 +00:00
|
|
|
Summary: Libraries for foreign function call interfaces
|
|
|
|
|
|
|
|
License: GPLv2+
|
2012-01-08 22:33:30 +00:00
|
|
|
URL: http://www.gnu.org/software/libffcall/
|
2015-09-30 03:55:27 +00:00
|
|
|
Source0: https://github.com/libffcall/libffcall/archive/%{name}-%{version}.tar.gz
|
2012-01-10 20:01:58 +00:00
|
|
|
# This patch will not be sent upstream. It removes the possibility of using
|
|
|
|
# mprotect() to make memory executable, as that runs afoul of SELinux.
|
2013-03-27 21:06:57 +00:00
|
|
|
Patch0: %{name}-trampoline.patch
|
2013-09-04 20:51:11 +00:00
|
|
|
# Upstream is dead, so this patch will not be sent. Update some uses of OABI
|
|
|
|
# on ARM to their EABI equivalents.
|
|
|
|
Patch1: %{name}-arm.patch
|
2013-03-27 21:06:57 +00:00
|
|
|
|
2017-01-28 23:37:34 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
|
2013-03-27 21:06:57 +00:00
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2008-04-18 16:39:37 +00:00
|
|
|
|
2013-03-27 21:06:57 +00:00
|
|
|
ExclusiveArch: %{ffcall_arches}
|
2008-04-18 16:39:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a collection of four libraries which can be used to build
|
2012-01-08 22:33:30 +00:00
|
|
|
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)
|
2008-04-18 16:39:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2015-09-30 03:55:27 +00:00
|
|
|
%setup -q -n libffcall-%{name}-%{version}
|
2012-01-10 20:01:58 +00:00
|
|
|
%patch0
|
2013-09-04 20:51:11 +00:00
|
|
|
%patch1
|
2012-01-10 20:01:58 +00:00
|
|
|
|
|
|
|
# Remove prebuilt object files
|
|
|
|
find . -name \*.o | xargs rm -f
|
2008-04-18 16:39:37 +00:00
|
|
|
|
|
|
|
%build
|
2012-01-10 20:01:58 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DMAP_VARIABLE=2"
|
2008-04-18 16:39:37 +00:00
|
|
|
%configure
|
|
|
|
make # %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -fr $RPM_BUILD_ROOT%{_datadir}/html
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2013-03-27 21:06:57 +00:00
|
|
|
cd $RPM_BUILD_ROOT%{_mandir}/man3
|
|
|
|
|
|
|
|
# Advertise supported architectures
|
2014-02-03 16:59:50 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
|
|
|
|
cat > $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.%{name} << EOF
|
2013-03-27 21:06:57 +00:00
|
|
|
# arches that ffcall supports
|
|
|
|
%%ffcall_arches %{ffcall_arches}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Fix man pages with overly generic names (bz 800360)
|
|
|
|
for page in *; do
|
|
|
|
mv $page %{name}-$page
|
|
|
|
done
|
2008-04-18 16:39:37 +00:00
|
|
|
|
|
|
|
%files
|
2015-02-13 20:40:49 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README NEWS
|
2008-04-18 16:39:37 +00:00
|
|
|
%doc avcall/avcall.html
|
|
|
|
%doc callback/callback.html
|
|
|
|
%doc callback/trampoline_r/trampoline_r.html
|
|
|
|
%doc trampoline/trampoline.html
|
|
|
|
%doc vacall/vacall.html
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_mandir}/man*/*
|
2014-02-03 16:59:50 +00:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.%{name}
|
2008-04-18 16:39:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2017-02-10 09:44:32 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-03 20:27:33 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-09-30 03:55:27 +00:00
|
|
|
* Tue Sep 29 2015 Jerry James <loganjerry@gmail.com> - 1.12-1
|
|
|
|
- New upstream release
|
|
|
|
|
2015-06-17 06:15:41 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-18.20120424cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-13 20:40:49 +00:00
|
|
|
* Fri Feb 13 2015 Jerry James <loganjerry@gmail.com> - 1.10-17.20120424cvs
|
|
|
|
- Use license macro
|
|
|
|
|
2014-08-16 12:17:44 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-16.20120424cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 11:59:05 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-15.20120424cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-03 16:59:50 +00:00
|
|
|
* Mon Feb 3 2014 Jerry James <loganjerry@gmail.com> - 1.10-14.20120424cvs
|
|
|
|
- Update location of rpm macro file for rpm >= 4.11
|
|
|
|
|
2013-09-06 17:26:56 +00:00
|
|
|
* Fri Sep 6 2013 Jerry James <loganjerry@gmail.com> - 1.10-13.20120424cvs
|
|
|
|
- Update -arm patch to really use the EABI and hopefully fix clisp
|
|
|
|
|
2013-09-04 20:51:11 +00:00
|
|
|
* Wed Sep 4 2013 Jerry James <loganjerry@gmail.com> - 1.10-12.20120424cvs
|
|
|
|
- Add -arm patch to fix clisp build failure
|
|
|
|
|
2013-08-03 11:08:49 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-11.20120424cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-27 21:06:57 +00:00
|
|
|
* Wed Mar 27 2013 Jerry James <loganjerry@gmail.com> - 1.10-10.20120424cvs
|
|
|
|
- Update to CVS 20120424
|
|
|
|
- List all architectures supported by this package (bz 925335)
|
|
|
|
- Rename man pages to avoid conflicts (bz 800360)
|
|
|
|
- Add Provides: ffcall-static
|
|
|
|
|
2013-02-13 21:38:06 +00:00
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-9.20100903cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 02:12:51 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-8.20100903cvs
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-10 20:01:58 +00:00
|
|
|
* Tue Jan 10 2012 Jerry James <loganjerry@gmail.com> - 1.10-7.20100903cvs
|
|
|
|
- Clean out prebuilt object files
|
|
|
|
- Add trampoline patch to force use of mmap() to get executable memory
|
|
|
|
|
|
|
|
* Mon Jan 9 2012 Jerry James <loganjerry@gmail.com> - 1.10-6.20100903cvs
|
2012-01-08 22:33:30 +00:00
|
|
|
- Update to CVS 20100903
|
|
|
|
- Minor spec file cleanups
|
|
|
|
|
2011-02-08 19:53:07 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-5.20080704cvs.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-07-24 22:42:38 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4.20080704cvs.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-24 16:53:15 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3.20080704cvs.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-10 17:50:56 +00:00
|
|
|
* Wed Dec 10 2008 Jochen Schmitt <Jochen herr-schmitt de> - 1.10-2.20080704cvs.1
|
|
|
|
- Fix -FPIC issue (BZ #475112)
|
|
|
|
|
2008-07-04 18:43:25 +00:00
|
|
|
* Fri Jul 4 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-2.20080704cvs
|
|
|
|
- update to cvs 20080704
|
|
|
|
- support for ppc64
|
|
|
|
|
2008-04-18 16:39:37 +00:00
|
|
|
* Mon Feb 25 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-1
|
|
|
|
- first Fedora release
|