File libsigsegv.spec of Package libsigsegv

#
# spec file for package libsigsegv
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#


Name:           libsigsegv
%define somajor	    2
%define lname	    libsigsegv%somajor
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  pkgconfig
Version:        2.10
Release:        0
Summary:        Library for Handling Page Faults in User Mode
License:        GPL-2.0+
Group:          System/Libraries
Url:            http://libsigsegv.sourceforge.net/
Source:         ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
%makeinstall
%__rm "%{buildroot}%{_libdir}/libsigsegv.la"

%check
%if 0%{?qemu_user_space_build:1}
# qemu does not support stack overflows well ;)
export XFAIL_TESTS="stackoverflow1 stackoverflow2"
%endif
%__make check

%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}
%{_libdir}/libsigsegv.so.%{somajor}.*

%files devel
%defattr(-,root,root)
%{_includedir}/sigsegv.h
%{_libdir}/libsigsegv.so
%{_libdir}/libsigsegv.a

%changelog
openSUSE Build Service is sponsored by