2010-12-03 21:36:23 +01:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
Name: libsigsegv
|
|
|
|
Version: 2.9
|
|
|
|
%define soname 2
|
|
|
|
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
|
|
|
|
URL: http://libsigsegv.sourceforge.net/
|
|
|
|
Group: System/Libraries
|
|
|
|
License: GNU General Public License version 2 or later (GPL v2 or later)
|
|
|
|
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
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{name}%{soname}
|
|
|
|
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
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{soname} = %{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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--enable-shared
|
2012-01-31 11:40:23 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-12-03 21:36:23 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
%__rm "%{buildroot}%{_libdir}/libsigsegv.la"
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make check
|
|
|
|
|
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}%{soname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog* NEWS PORTING README
|
|
|
|
%{_libdir}/libsigsegv.so.%{soname}
|
|
|
|
%{_libdir}/libsigsegv.so.%{soname}.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/sigsegv.h
|
|
|
|
%{_libdir}/libsigsegv.so
|
|
|
|
%{_libdir}/libsigsegv.a
|
|
|
|
|