libsigsegv/libsigsegv.spec
2017-05-22 14:22:52 +00:00

105 lines
3.1 KiB
RPMSpec

#
# spec file for package libsigsegv
#
# 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define somajor 2
%define lname libsigsegv%{somajor}
Name: libsigsegv
Version: 2.11
Release: 0
Summary: Library for Handling Page Faults in User Mode
License: GPL-2.0+
Group: System/Libraries
Url: https://www.gnu.org/software/libsigsegv/
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
BuildRequires: pkgconfig
%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.
%package -n %{lname}
Summary: Library for Handling Page Faults in User Mode
Group: System/Libraries
%description -n %{lname}
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
Summary: Library for Handling Page Faults in User Mode
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}-%{release}
%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.
%package doc
Summary: Library for Handling Page Faults in User Mode
Group: Documentation/Other
%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.
%prep
%setup -q
%build
%configure \
--enable-shared \
--enable-static
make %{?_smp_mflags}
%install
%make_install
rm "%{buildroot}%{_libdir}/libsigsegv.la"
%check
%if 0%{?qemu_user_space_build:1}
# qemu does not support stack overflows well ;)
make %{?_smp_mflags} check TESTS='sigsegv1 sigsegv2 sigsegv3'
%else
make %{?_smp_mflags} check
%endif
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files doc
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libsigsegv.so.%{somajor}*
%files devel
%defattr(-,root,root)
%{_includedir}/sigsegv.h
%{_libdir}/libsigsegv.so
%{_libdir}/libsigsegv.a
%changelog