SHA256
1
0
forked from pool/ffcall
Dr. Werner Fink 2018-02-20 11:14:55 +00:00 committed by Git OBS Bridge
parent c86b6ea7e4
commit fab4c8f040
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 20 11:14:28 UTC 2018 - werner@suse.de
- Allow debuginfo
-------------------------------------------------------------------
Mon Feb 19 08:53:22 UTC 2018 - werner@suse.de

View File

@ -16,9 +16,6 @@
#
# Only a static library is provided, so no debug information can be extracted.
%global debug_package %{nil}
%global debug no
%global somajor 0
# This package uses assembly to do its work. This is the entire list of
@ -35,7 +32,7 @@ License: GPL-2.0+
Group: Development/Libraries/Other
Provides: %{name}-devel = %version-%release
Url: http://www.gnu.org/software/libffcall/
# https://git.savannah.gnu.org/cgit/libffcall.git/snapshot/libffcall-%{version}.tar.gz
# https://git.savannah.gnu.org/cgit/libffcall.git/snapshot/libffcall-<version>.tar.gz
Source0: https://ftp.gnu.org/gnu/libffcall/libffcall-%{version}.tar.gz
Patch0: ffcall-trampoline.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -82,8 +79,9 @@ fi
find . -name \*.o | xargs rm -f
%build
export CFLAGS="%{optflags} -fPIC -fno-strict-aliasing"
%configure --disable-rpath --with-gnu-ld
export CFLAGS="%{optflags} -g -fPIC -fno-strict-aliasing"
export STRIP=true STRIPPROG=true
%configure --disable-rpath --with-gnu-ld --enable-thread=posix
if test -e /.build.log
then
grep -E '^#define (CODE|HAVE)' config.h
@ -95,7 +93,8 @@ make # %{?_smp_mflags}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
make install DESTDIR=%{buildroot}
export STRIP=true STRIPPROG=true
make install DESTDIR=%{buildroot} STRIP=true STRIPPROG=true
rm -fr %{buildroot}%{_datadir}/html
rm -f %{buildroot}%{_libdir}/*.la
if test %debug = yes ; then