2013-05-08 15:12:43 +02:00
|
|
|
#
|
2013-07-03 14:51:25 +02:00
|
|
|
# spec file for package libsigsegv
|
2013-05-08 15:12:43 +02:00
|
|
|
#
|
2019-04-25 08:36:18 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-05-08 15:12:43 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-04-25 08:36:18 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-03 14:51:25 +02:00
|
|
|
#
|
|
|
|
|
2010-12-03 21:36:23 +01:00
|
|
|
|
2017-05-22 16:22:52 +02:00
|
|
|
%define somajor 2
|
|
|
|
%define lname libsigsegv%{somajor}
|
2013-07-03 14:51:25 +02:00
|
|
|
Name: libsigsegv
|
2018-02-05 11:51:20 +01:00
|
|
|
Version: 2.12
|
2013-07-03 14:51:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for Handling Page Faults in User Mode
|
2019-04-25 08:36:18 +02:00
|
|
|
License: GPL-2.0-or-later
|
2013-07-03 14:51:25 +02:00
|
|
|
Group: System/Libraries
|
2017-02-22 08:30:56 +01:00
|
|
|
Url: https://www.gnu.org/software/libsigsegv/
|
2017-05-22 16:22:52 +02:00
|
|
|
Source0: https://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz.sig
|
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring
|
2019-04-25 13:25:06 +02:00
|
|
|
Patch0: libsigsegv-2.12-lto.dif
|
2017-05-22 16:22:52 +02:00
|
|
|
BuildRequires: pkgconfig
|
2010-12-03 21:36:23 +01:00
|
|
|
|
2019-04-25 08:36:18 +02:00
|
|
|
%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} %{**}
|
|
|
|
|
2010-12-03 21:36:23 +01:00
|
|
|
%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
|
|
|
|
available.
|
|
|
|
|
2017-05-22 16:22:52 +02:00
|
|
|
%package -n %{lname}
|
2013-07-03 14:51:25 +02:00
|
|
|
Summary: Library for Handling Page Faults in User Mode
|
|
|
|
Group: System/Libraries
|
2010-12-03 21:36:23 +01:00
|
|
|
|
2017-05-22 16:22:52 +02:00
|
|
|
%description -n %{lname}
|
2010-12-03 21:36:23 +01:00
|
|
|
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
|
|
|
|
available.
|
|
|
|
|
|
|
|
%package devel
|
2013-07-03 14:51:25 +02:00
|
|
|
Summary: Library for Handling Page Faults in User Mode
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-05-22 16:22:52 +02:00
|
|
|
Requires: %{lname} = %{version}-%{release}
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
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
|
|
|
|
available.
|
|
|
|
|
2013-05-08 15:12:43 +02:00
|
|
|
%package doc
|
2013-07-03 14:51:25 +02:00
|
|
|
Summary: Library for Handling Page Faults in User Mode
|
|
|
|
Group: Documentation/Other
|
2013-05-08 15:12:43 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
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
|
|
|
|
available.
|
|
|
|
|
2010-12-03 21:36:23 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-04-25 13:25:06 +02:00
|
|
|
%patch0
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%build
|
2019-04-25 09:05:57 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2019-04-25 13:25:06 +02:00
|
|
|
%add_optflags -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
2010-12-03 21:36:23 +01:00
|
|
|
%configure \
|
2017-05-22 16:22:52 +02:00
|
|
|
--enable-shared \
|
|
|
|
--enable-static
|
2012-01-31 11:40:23 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%install
|
2017-05-22 16:22:52 +02:00
|
|
|
%make_install
|
|
|
|
rm "%{buildroot}%{_libdir}/libsigsegv.la"
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%check
|
2013-07-03 14:51:25 +02:00
|
|
|
%if 0%{?qemu_user_space_build:1}
|
|
|
|
# qemu does not support stack overflows well ;)
|
2017-05-22 16:22:52 +02:00
|
|
|
make %{?_smp_mflags} check TESTS='sigsegv1 sigsegv2 sigsegv3'
|
2017-02-22 09:42:20 +01:00
|
|
|
%else
|
2017-05-22 16:22:52 +02:00
|
|
|
make %{?_smp_mflags} check
|
2017-02-22 09:42:20 +01:00
|
|
|
%endif
|
2010-12-03 21:36:23 +01:00
|
|
|
|
2017-05-22 16:22:52 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2010-12-03 21:36:23 +01:00
|
|
|
|
2013-05-08 15:12:43 +02:00
|
|
|
%files doc
|
2019-04-25 08:36:18 +02:00
|
|
|
%if %{defined license}
|
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog* NEWS PORTING README
|
|
|
|
%else
|
2010-12-03 21:36:23 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
|
2019-04-25 08:36:18 +02:00
|
|
|
%endif
|
2013-05-08 15:12:43 +02:00
|
|
|
|
2017-05-22 16:22:52 +02:00
|
|
|
%files -n %{lname}
|
|
|
|
%{_libdir}/libsigsegv.so.%{somajor}*
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/sigsegv.h
|
|
|
|
%{_libdir}/libsigsegv.so
|
|
|
|
%{_libdir}/libsigsegv.a
|
2013-07-03 14:51:25 +02:00
|
|
|
|
|
|
|
%changelog
|