⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpatrol.spec

📁 debug source code under unix platform.
💻 SPEC
字号:
# mpatrol# A library for controlling and tracing dynamic memory allocations.# Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Library General Public# License as published by the Free Software Foundation; either# version 2 of the License, or (at your option) any later version.## This library is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# Library General Public License for more details.## You should have received a copy of the GNU Library General Public# License along with this library; if not, write to the Free# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,# MA 02111-1307, USA.# RPM package specification file# $Id: mpatrol.spec,v 1.73 2002/01/08 20:22:08 graeme Exp $%define libversion 1.4Summary: A library for controlling and tracing dynamic memory allocations.Name: mpatrolVersion: 1.4.8Release: 1License: LGPLGroup: Development/DebuggersSource0: http://www.cbmamiga.demon.co.uk/mpatrol/files/%{name}_%{version}.tar.gzURL: http://www.cbmamiga.demon.co.uk/mpatrol/Buildroot: %{_tmppath}/%{name}-rootPrereq: /sbin/install-info /sbin/ldconfigPackager: Graeme S. Roy <graeme.roy@analog.com>%descriptionA link library that attempts to diagnose run-time errors that are causedby the wrong use of dynamically allocated memory.  Along with providing acomprehensive and configurable log of all dynamic memory operations thatoccurred during the lifetime of a program, the mpatrol library performsextensive checking to detect any misuse of dynamically allocated memory.All of this functionality can be integrated into existing code throughthe inclusion of a single header file at compile-time.  All logging andtracing output from the mpatrol library is sent to a separate log file inorder to keep its diagnostics separate from any that the program beingtested might generate.  A wide variety of library settings can also bechanged at run-time via an environment variable, thus removing the needto recompile or relink in order to change the library's behaviour.%prep%setup -q -n %{name}%buildcd build/unixmake libmpatrol.a libmpatrol.so.%{libversion}make libmpatrolmt.a libmpatrolmt.so.%{libversion}make libmpalloc.a libmpalloc.so.%{libversion}make libmptools.amake mpatrol mprof mptrace mleak%installrm -rf $RPM_BUILD_ROOTmv doc/README README.DOCmv man/README README.MANmkdir -p $RPM_BUILD_ROOT/%{_bindir}install -m755 -s build/unix/mpatrol $RPM_BUILD_ROOT/%{_bindir}install -m755 -s build/unix/mprof $RPM_BUILD_ROOT/%{_bindir}install -m755 -s build/unix/mptrace $RPM_BUILD_ROOT/%{_bindir}install -m755 -s build/unix/mleak $RPM_BUILD_ROOT/%{_bindir}install -m755 bin/mpsym $RPM_BUILD_ROOT/%{_bindir}install -m755 bin/mpedit $RPM_BUILD_ROOT/%{_bindir}install -m755 bin/hexwords $RPM_BUILD_ROOT/%{_bindir}mv man/html .mv man/dvi .mv man/ps .mv man/pdf .mkdir -p $RPM_BUILD_ROOT/%{_includedir}install -m644 src/mpatrol.h $RPM_BUILD_ROOT/%{_includedir}install -m644 src/mpalloc.h $RPM_BUILD_ROOT/%{_includedir}install -m644 src/mpdebug.h $RPM_BUILD_ROOT/%{_includedir}mkdir -p $RPM_BUILD_ROOT/%{_includedir}/mpatrolinstall -m644 tools/*.h $RPM_BUILD_ROOT/%{_includedir}/mpatrolmkdir -p $RPM_BUILD_ROOT/%{_infodir}install -m644 doc/mpatrol.info* $RPM_BUILD_ROOT/%{_infodir}mkdir -p $RPM_BUILD_ROOT/%{_libdir}install -m644 build/unix/libmpatrol.a $RPM_BUILD_ROOT/%{_libdir}install -m755 build/unix/libmpatrol.so.%{libversion} $RPM_BUILD_ROOT/%{_libdir}install -m644 build/unix/libmpatrolmt.a $RPM_BUILD_ROOT/%{_libdir}install -m755 build/unix/libmpatrolmt.so.%{libversion} $RPM_BUILD_ROOT/%{_libdir}install -m644 build/unix/libmpalloc.a $RPM_BUILD_ROOT/%{_libdir}install -m755 build/unix/libmpalloc.so.%{libversion} $RPM_BUILD_ROOT/%{_libdir}install -m644 build/unix/libmptools.a $RPM_BUILD_ROOT/%{_libdir}mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1install -m644 man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3install -m644 man/man3/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3mkdir -p $RPM_BUILD_ROOT/usr/share/aclocalinstall -m644 extra/mpatrol.m4 $RPM_BUILD_ROOT/usr/share/aclocal%files%defattr(-,root,root)%doc README README.DOC README.MAN AUTHORS THANKS%doc COPYING COPYING.LIB NEWS ChangeLog%doc doc/mpatrol.txt doc/mpatrol.guide doc/mpatrol.html%doc doc/mpatrol.dvi doc/mpatrol.ps doc/mpatrol.pdf%doc doc/refcard.dvi doc/refcard.ps doc/refcard.pdf%doc doc/images html dvi ps pdf%doc tests%{_bindir}%{_includedir}%{_infodir}%{_libdir}%{_mandir}/usr/share/aclocal%post/sbin/ldconfig/sbin/install-info %{_infodir}/mpatrol.info* %{_infodir}/dir%preunif [ $1 = 0 ]then    /sbin/install-info --delete %{_infodir}/mpatrol.info* %{_infodir}/dirfi%postunif [ $1 = 0 ]then    /sbin/ldconfigfi%cleanrm -rf $RPM_BUILD_ROOT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -