Dr. Werner Fink 2013-05-08 13:12:43 +00:00 committed by Git OBS Bridge
parent 6ab37ebcf3
commit 43eb423c89
5 changed files with 94 additions and 24 deletions

26
fix-build-in-qemu.patch Normal file
View File

@ -0,0 +1,26 @@
---
libsigsegv-2.10/tests/Makefile.am | 2 +-
libsigsegv-2.10/tests/Makefile.in | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
--- a/libsigsegv-2.10/tests/Makefile.am
+++ b/libsigsegv-2.10/tests/Makefile.am
@@ -20,7 +20,7 @@
AUTOMAKE_OPTIONS = 1.11 gnits no-dependencies color-tests
-TESTS = sigsegv1 sigsegv2 sigsegv3 stackoverflow1 stackoverflow2
+TESTS = sigsegv1 sigsegv2 sigsegv3
EXTRA_DIST = mmaputil.h altstack.h
--- a/libsigsegv-2.10/tests/Makefile.in
+++ b/libsigsegv-2.10/tests/Makefile.in
@@ -35,7 +35,6 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
TESTS = sigsegv1$(EXEEXT) sigsegv2$(EXEEXT) sigsegv3$(EXEEXT) \
- stackoverflow1$(EXEEXT) stackoverflow2$(EXEEXT) \
$(am__EXEEXT_1) $(am__EXEEXT_2)
noinst_PROGRAMS = sigsegv1$(EXEEXT) sigsegv2$(EXEEXT) \
sigsegv3$(EXEEXT) stackoverflow1$(EXEEXT) \

3
libsigsegv-2.10.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a
size 402279

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:43614d495ec1aa73b2aec63b6a702508955025de53b1ab1a9f4f96799bd5b1e5
size 319113

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 8 13:09:02 UTC 2013 - werner@suse.de
- Update tp version 2.10
- Adopt patch fix-build-in-qemu.patch
-------------------------------------------------------------------
Tue Jan 31 10:39:15 UTC 2012 - jengelh@medozas.de

View File

@ -1,49 +1,85 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package sigsegv
#
# 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
Version: 2.9
%define soname 2
%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: Handling Page Faults in User Mode
# ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
Source: libsigsegv-%{version}.tar.bz2
Summary: Library for Handling Page Faults in User Mode
URL: http://libsigsegv.sourceforge.net/
Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz
# PATCH-FIX-OPENSUSE -- make it build in qemu
Patch0: fix-build-in-qemu.patch
Group: System/Libraries
License: GNU General Public License version 2 or later (GPL v2 or later)
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: gcc make glibc-devel pkgconfig
BuildRequires: autoconf automake libtool
%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 %{name}%{soname}
Summary: Handling Page Faults in User Mode
%package -n %lname
Summary: Library for Handling Page Faults in User Mode
Group: System/Libraries
%description -n %{name}%{soname}
%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: Handling Page Faults in User Mode
Summary: Library for Handling Page Faults in User Mode
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}-%{release}
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: Development/Libraries/C and C++
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
%if 0%{?qemu_user_space_build:1}
# qemu does not support stack overflows well ;)
%patch0 -p1 -b .qemu
%endif
%build
%configure \
--enable-shared
--enable-shared \
--enable-static
make %{?_smp_mflags}
%install
@ -53,18 +89,20 @@ make %{?_smp_mflags}
%check
%__make check
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %{name}%{soname}
%files doc
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
%{_libdir}/libsigsegv.so.%{soname}
%{_libdir}/libsigsegv.so.%{soname}.*
%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