File segv_handler.spec of Package segv_handler
#
# spec file for package segv_handler (Version 0.0.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: segv_handler
Version: 0.0.1
Release: 29
License: GNU General Public License (GPL) - all versions, Other License(s), see package
Group: Development/Tools/Other
URL: http://samba.org/ftp/unpacked/junkcode/segv_handler/
Autoreqprov: on
Summary: System wide segv handler to produces a backtrace
Source: http://samba.org/ftp/unpacked/junkcode/segv_handler/backtrace
Source1: http://samba.org/ftp/unpacked/junkcode/segv_handler/Makefile
Source2: http://samba.org/ftp/unpacked/junkcode/segv_handler/README
Source3: http://samba.org/ftp/unpacked/junkcode/segv_handler/segv_handler.c
Source4: http://samba.org/ftp/unpacked/junkcode/segv_handler/testprog.c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a useful utility for installing a system-wide segv handler that
produces a backtrace on any program that gets a SEGV signal. It is
installed as a preload, so you don't need to modify the target
programs.
Authors:
--------
Andrew Tridgell <tridge at Samba dot org>
%prep
cp -p %{S:1} %{S:2} %{S:3} %{S:4} ${RPM_BUILD_DIR}
%build
export CFLAGS=$RPM_OPT_FLAGS
make
rm -f /tmp/segv_testprog.*
%ifnarch %arm
make test
%endif
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
mkdir -p \
${RPM_BUILD_ROOT}/%{_bindir} \
${RPM_BUILD_ROOT}/%{_libdir} \
${RPM_BUILD_ROOT}/%{_docdir}/%{name}
install -m 0755 %{S:0} ${RPM_BUILD_ROOT}/%{_bindir}
install -m 0755 ${RPM_BUILD_DIR}/segv_handler.so ${RPM_BUILD_ROOT}/%{_libdir}
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%{_bindir}/backtrace
%{_libdir}/segv_handler.so
%doc README
%changelog -n segv_handler
* Fri Oct 27 2006 - dmueller@suse.de
- don't build as root
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 15 2005 - uli@suse.de
- skip the test on ARM (signal handling is not yet perfect in QEMU)
* Wed Jul 06 2005 - lmuelle@suse.de
- Set CFLAGS=$RPM_OPT_FLAGS while build.
* Thu Feb 03 2005 - lmuelle@suse.de
- Initial SuSE package.