[5972] | 1 | %define debug_package %{nil} |
---|
| 2 | |
---|
[521] | 3 | Name: ffcall |
---|
| 4 | Version: 1.10 |
---|
[5972] | 5 | Release: 6.20100903cvs.1%{?_dist_release} |
---|
[521] | 6 | Summary: Libraries for foreign function call interfaces |
---|
| 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: GPLv2+ |
---|
[5972] | 10 | URL: http://www.gnu.org/software/libffcall/ |
---|
| 11 | # There has been no official release for several years, and the project web |
---|
| 12 | # site encourages use of a CVS snapshot. Make the tarball as follows: |
---|
| 13 | # cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall |
---|
| 14 | # export -D 2010-09-04 ffcall |
---|
| 15 | # tar cJf ffcall-20100903cvs.tar.xz ffcall |
---|
| 16 | Source0: ffcall-20100903cvs.tar.xz |
---|
| 17 | # This patch will not be sent upstream. It removes the possibility of using |
---|
| 18 | # mprotect() to make memory executable, as that runs afoul of SELinux. |
---|
| 19 | Patch0: ffcall-trampoline.patch |
---|
[521] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | This is a collection of four libraries which can be used to build |
---|
| 25 | foreign function call interfaces in embedded interpreters. |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n ffcall |
---|
[5972] | 30 | %patch0 |
---|
[521] | 31 | |
---|
[5972] | 32 | find . -name \*.o | xargs rm -f |
---|
| 33 | |
---|
[521] | 34 | %build |
---|
[5972] | 35 | export CFLAGS="%{optflags} -fPIC -DMAP_VARIABLE=2" |
---|
[521] | 36 | %configure |
---|
| 37 | make # %{?_smp_mflags} |
---|
| 38 | |
---|
| 39 | %install |
---|
[5972] | 40 | rm -rf %{buildroot} |
---|
| 41 | mkdir -p %{buildroot}%{_libdir} |
---|
| 42 | mkdir -p %{buildroot}%{_mandir} |
---|
| 43 | make install DESTDIR=%{buildroot} |
---|
| 44 | rm -fr %{buildroot}%{_datadir}/html |
---|
| 45 | rm -f %{buildroot}%{_libdir}/*.la |
---|
[521] | 46 | |
---|
| 47 | %clean |
---|
[5972] | 48 | rm -rf %{buildroot} |
---|
[521] | 49 | |
---|
| 50 | %files |
---|
| 51 | %defattr(-,root,root,-) |
---|
| 52 | %doc README NEWS COPYING |
---|
| 53 | %doc avcall/avcall.html |
---|
| 54 | %doc callback/callback.html |
---|
| 55 | %doc callback/trampoline_r/trampoline_r.html |
---|
| 56 | %doc trampoline/trampoline.html |
---|
| 57 | %doc vacall/vacall.html |
---|
| 58 | %{_libdir}/*.a |
---|
| 59 | %{_includedir}/* |
---|
| 60 | %{_mandir}/man*/* |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %changelog |
---|
[5972] | 64 | * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.10-6.20100903cvs.1 |
---|
| 65 | - updated to 20100903 cvs source |
---|
| 66 | |
---|
[521] | 67 | * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.10-5.20080704cvs.1 |
---|
| 68 | - initial build for Vine Linux |
---|
| 69 | |
---|
| 70 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4.20080704cvs.1 |
---|
| 71 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 72 | |
---|
| 73 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3.20080704cvs.1 |
---|
| 74 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 75 | |
---|
| 76 | * Wed Dec 10 2008 Jochen Schmitt <Jochen herr-schmitt de> - 1.10-2.20080704cvs.1 |
---|
| 77 | - Fix -FPIC issue (BZ #475112) |
---|
| 78 | |
---|
| 79 | * Fri Jul 4 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-2.20080704cvs |
---|
| 80 | - update to cvs 20080704 |
---|
| 81 | - support for ppc64 |
---|
| 82 | |
---|
| 83 | * Mon Feb 25 2008 Gerard Milmeister <gemi@bluewin.ch> - 1.10-1 |
---|
| 84 | - first Fedora release |
---|