From 9a9ac38c269eaeb76bdc63c3d33fc97579c09fdb5360f4bffe0190fc294a63ce Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 14 Mar 2017 08:50:31 +0000 Subject: [PATCH] Build libffi7-32bit OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libffi?expand=0&rev=2 --- baselibs.conf | 1 + libffi.changes | 5 +++++ libffi.spec | 33 ++++++++++++++++----------------- 3 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 baselibs.conf diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..234226e --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libffi7 diff --git a/libffi.changes b/libffi.changes index ecd8063..84953e5 100644 --- a/libffi.changes +++ b/libffi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 14 08:14:20 UTC 2017 - dleuenberger@suse.com + +- Add baselibs.conf in order to build libffi7-32bit (bgo#1029263). + ------------------------------------------------------------------- Tue Feb 28 14:51:07 UTC 2017 - rguenther@suse.com diff --git a/libffi.spec b/libffi.spec index 801618e..2325c0e 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,7 +1,7 @@ # # spec file for package libffi # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define libffi_sover 7 Name: libffi @@ -25,17 +26,18 @@ License: MIT Group: Development/Languages/C and C++ Url: https://github.com/libffi/ Source: %name-%version.tar.xz -Patch: libffi-include-location.patch +Source99: baselibs.conf +Patch: libffi-include-location.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gcc-c++ -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: libtool -BuildRequires: makeinfo -BuildRequires: pkg-config +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: makeinfo +BuildRequires: pkg-config # for make check -BuildRequires: dejagnu -BuildRequires: expect +BuildRequires: dejagnu +BuildRequires: expect %description The libffi library provides a portable, high level programming @@ -46,9 +48,9 @@ time. %package devel Summary: Include files for development with libffi -Group: Development/Languages/C and C++ -Requires: libffi%{libffi_sover} = %{version} -PreReq: %{install_info_prereq} +Group: Development/Languages/C and C++ +Requires: libffi%{libffi_sover} = %{version} +PreReq: %{install_info_prereq} %description devel The libffi library provides a portable, high level programming @@ -62,9 +64,8 @@ time. %preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi.info.gz - %package -n libffi%{libffi_sover} -Summary: Foreign Function Interface Library +Summary: Foreign Function Interface Library Group: System/Libraries %description -n libffi%{libffi_sover} @@ -95,7 +96,6 @@ make DESTDIR=%{buildroot} install rm %{buildroot}%{_libdir}/libffi.a rm %{buildroot}%{_libdir}/libffi.la - %files devel %defattr(-,root,root) %{_libdir}/libffi.so @@ -113,5 +113,4 @@ rm %{buildroot}%{_libdir}/libffi.la %defattr(-,root,root) %{_libdir}/libffi.so.%{libffi_sover}* - %changelog