|
@@ -1,12 +1,22 @@
|
|
|
|
+%define debug_package %{nil}
|
|
|
|
+
|
|
Name: ffcall
|
|
Name: ffcall
|
|
Version: 1.10
|
|
Version: 1.10
|
|
-Release: 5.20080704cvs.1%{?_dist_release}
|
|
+Release: 6.20100903cvs.1%{?_dist_release}
|
|
Summary: Libraries for foreign function call interfaces
|
|
Summary: Libraries for foreign function call interfaces
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
-URL: http://www.haible.de/bruno/packages-ffcall-README.html
|
|
+URL: http://www.gnu.org/software/libffcall/
|
|
-Source0: ftp://ftp.santafe.edu/pub/gnu/ffcall-20080704cvs.tar.bz2
|
|
+# 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 2010-09-04 ffcall
|
|
|
|
+# tar cJf ffcall-20100903cvs.tar.xz ffcall
|
|
|
|
+Source0: ffcall-20100903cvs.tar.xz
|
|
|
|
+# This patch will not be sent upstream. It removes the possibility of using
|
|
|
|
+# mprotect() to make memory executable, as that runs afoul of SELinux.
|
|
|
|
+Patch0: ffcall-trampoline.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
@@ -14,26 +24,28 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
This is a collection of four libraries which can be used to build
|
|
This is a collection of four libraries which can be used to build
|
|
foreign function call interfaces in embedded interpreters.
|
|
foreign function call interfaces in embedded interpreters.
|
|
|
|
|
|
-%define debug_package %{nil}
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n ffcall
|
|
%setup -q -n ffcall
|
|
|
|
+%patch0
|
|
|
|
+
|
|
|
|
+find . -name \*.o | xargs rm -f
|
|
|
|
|
|
%build
|
|
%build
|
|
-export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
+export CFLAGS="%{optflags} -fPIC -DMAP_VARIABLE=2"
|
|
%configure
|
|
%configure
|
|
make # %{?_smp_mflags}
|
|
make # %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
+mkdir -p %{buildroot}%{_libdir}
|
|
-mkdir -p $RPM_BUILD_ROOT%{_mandir}
|
|
+mkdir -p %{buildroot}%{_mandir}
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
+make install DESTDIR=%{buildroot}
|
|
-rm -fr $RPM_BUILD_ROOT%{_datadir}/html
|
|
+rm -fr %{buildroot}%{_datadir}/html
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
+rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -49,6 +61,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.10-6.20100903cvs.1
|
|
|
|
+- updated to 20100903 cvs source
|
|
|
|
+
|
|
* Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.10-5.20080704cvs.1
|
|
* Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.10-5.20080704cvs.1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|
|
|
|
|