]>
Commit | Line | Data |
---|---|---|
60dde86f | 1 | Summary: A library for controlling and tracing dynamic memory allocations |
2 | Name: mpatrol | |
601ef36c | 3 | Version: 1.3.3 |
0759ca27 | 4 | Release: 1 |
60dde86f | 5 | License: LGPL |
6 | Group: Development/Debuggers | |
7 | Group(pl): Programowanie/Odpluskwiacze | |
8 | Source0: http://www.cbmamiga.demon.co.uk/mpatrol/files/%{name}_%{version}.tar.gz | |
601ef36c | 9 | Patch0: %{name}-info.patch |
10 | BuildRequires: texinfo | |
60dde86f | 11 | URL: http://www.cbmamiga.demon.co.uk/mpatrol/index.html |
12 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
4e0735ef | 13 | |
14 | %description | |
60dde86f | 15 | A link library that attempts to diagnose run-time errors that are |
16 | caused by the wrong use of dynamically allocated memory. Along with | |
17 | providing a comprehensive and configurable log of all dynamic memory | |
18 | operations that occurred during the lifetime of a program, the mpatrol | |
19 | library performs extensive checking to detect any misuse of | |
20 | dynamically allocated memory. All of this functionality can be | |
21 | integrated into existing code through the inclusion of a single header | |
22 | file at compile-time. All logging and tracing output from the mpatrol | |
23 | library is sent to a separate log file in order to keep its | |
24 | diagnostics separate from any that the program being tested might | |
25 | generate. A wide variety of library settings can also be changed at | |
26 | run-time via an environment variable, thus removing the need to | |
27 | recompile or relink in order to change the library's behaviour. | |
4e0735ef | 28 | |
4e0735ef | 29 | %prep |
601ef36c | 30 | %setup -q -n mpatrol |
31 | %patch -p1 | |
4e0735ef | 32 | |
33 | %build | |
601ef36c | 34 | (cd build/unix |
35 | %{__make} libmpatrol.a libmpatrol.so mpatrol mprof mleak \ | |
36 | OFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}" | |
37 | ) | |
38 | (cd doc; makeinfo mpatrol.texi) | |
4e0735ef | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
60dde86f | 42 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_infodir}} \ |
33add642 | 43 | $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{1,3}} |
4e0735ef | 44 | |
601ef36c | 45 | install build/unix/{mpatrol,mprof,mleak} $RPM_BUILD_ROOT%{_bindir} |
33add642 | 46 | |
47 | install src/mpatrol.h $RPM_BUILD_ROOT%{_includedir} | |
601ef36c | 48 | install build/unix/libmpatrol.{a,so*} $RPM_BUILD_ROOT%{_libdir} |
33add642 | 49 | |
601ef36c | 50 | install doc/mpatrol.info* $RPM_BUILD_ROOT%{_infodir} |
51 | install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1 | |
52 | install man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 | |
33add642 | 53 | |
601ef36c | 54 | gzip -9nf README NEWS ChangeLog |
4e0735ef | 55 | |
56 | %files | |
60dde86f | 57 | %defattr(644,root,root,755) |
601ef36c | 58 | %doc *.gz |
60dde86f | 59 | %attr(755,root,root) %{_bindir}/* |
60dde86f | 60 | %{_includedir}/* |
60dde86f | 61 | %{_libdir}/* |
33add642 | 62 | %{_infodir}/* |
60dde86f | 63 | %{_mandir}/man[13]/* |
4e0735ef | 64 | |
65 | %post | |
66 | /sbin/ldconfig | |
33add642 | 67 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
4e0735ef | 68 | |
33add642 | 69 | %postun |
70 | /sbin/ldconfig | |
71 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
4e0735ef | 72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT |