diff --git a/libsigsegv.changes b/libsigsegv.changes index a9ebdc6..007f431 100644 --- a/libsigsegv.changes +++ b/libsigsegv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 25 06:34:02 UTC 2019 - Dr. Werner Fink + +- Avoid none debugging libsigsegv, that is add -fno-lto (boo#1133245) +- Use %license is known + ------------------------------------------------------------------- Thu Feb 1 20:16:44 UTC 2018 - astieger@suse.com diff --git a/libsigsegv.spec b/libsigsegv.spec index 1a9bafd..9105458 100644 --- a/libsigsegv.spec +++ b/libsigsegv.spec @@ -1,7 +1,7 @@ # # spec file for package libsigsegv # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,7 +22,7 @@ Name: libsigsegv Version: 2.12 Release: 0 Summary: Library for Handling Page Faults in User Mode -License: GPL-2.0+ +License: GPL-2.0-or-later Group: System/Libraries Url: https://www.gnu.org/software/libsigsegv/ Source0: https://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz @@ -30,6 +30,9 @@ Source1: https://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring BuildRequires: pkgconfig +%define add_optflags(a:f:t:p:w:W:d:g:O:A:C:D:E:H:i:M:n:P:U:u:l:s:X:B:I:L:b:V:m:x:c:S:E:o:v:) \ +%global optflags %{optflags} %{**} + %description This is a library for handling page faults in user mode. A page fault occurs when a program tries to access to a region of memory that is currently not @@ -67,6 +70,7 @@ available. %setup -q %build +%add_optflags -fno-lto %configure \ --enable-shared \ --enable-static @@ -88,7 +92,12 @@ make %{?_smp_mflags} check %postun -n %{lname} -p /sbin/ldconfig %files doc +%if %{defined license} +%license COPYING +%doc AUTHORS ChangeLog* NEWS PORTING README +%else %doc AUTHORS COPYING ChangeLog* NEWS PORTING README +%endif %files -n %{lname} %{_libdir}/libsigsegv.so.%{somajor}*