Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37559418
en ru br
ALT Linux repos
S:2.5.15-alt4
5.0: 2.5.14-alt1
4.1: 2.5.11-alt1

Group :: Development/Other
RPM: duma

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# $Id: duma.spec 6105 2008-01-21 09:55:51Z dries $
# Authority: dries
# Upstream:  Hayati Ayguen <h_ayguen$web,de>

%define real_version 2_5_11

Summary: Detect Unintended Memory Access
Name: duma
Version: 2.5.11
Release: alt1
License: GPL
Group: Development/Other
Url: http://duma.sourceforge.net/

Packager: Fr. Br. George <george at altlinux.ru>

Source: http://dl.sf.net/duma/duma_%real_version.tar.gz

BuildRequires: gcc-c++

%description
DUMA (Detect Unintended Memory Access) stops your program on the exact
instruction that overruns (or underruns) a malloc() memory buffer. GDB
will then display the source-code line that causes the bug. It works by
using the virtual-memory hardware to create a red-zone at the border of
each buffer: touch that, and your program stops. It can catch formerly
impossible-to-catch overrun bugs.

DUMA is a fork of Bruce Perens' Electric Fence library.

%package devel
Summary: Header files, libraries and development documentation for %name
Group: Development/Other
Requires: %name = %version-%release

%description devel
This package contains the header files, static libraries and development
documentation for %name. If you like to develop programs using %name,
you will need to install %name-devel.

%prep
%setup -n duma_%real_version
# disable 'testoperators' because it doesn't stop
%__perl -pi.orig -e "s|..CURPATH.testoperators..EXEPOSTFIX.||g;" Makefile

%build
# duma doesn't build with _smp_mflags
%__make

%install
%__rm -rf %buildroot
%__install -d -m0755 %buildroot%_bindir
%__install -d -m0755 %buildroot%_mandir/man3/
%__install -d -m0755 %buildroot%_libdir
%makeinstall BIN_INSTALL_DIR="%buildroot%_bindir" \
   LIB_INSTALL_DIR="%buildroot%_libdir" \
   MAN_INSTALL_DIR="%buildroot%_mandir/man3/"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%doc INSTALL README.txt TODO
%doc %_mandir/man3/duma.3*
%_bindir/duma
%_libdir/libduma.so.*

%files devel
%exclude %_libdir/libduma.a
%_libdir/libduma.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin