]>
Commit | Line | Data |
---|---|---|
60dde86f | 1 | Summary: A library for controlling and tracing dynamic memory allocations |
c6eec622 | 2 | Summary(pl.UTF-8): Biblioteka do kontroli i śledzenia dynamicznej alokacji pamięci |
60dde86f | 3 | Name: mpatrol |
575c5e44 | 4 | Version: 1.4.8 |
c9e5ea72 | 5 | Release: 3 |
60dde86f | 6 | License: LGPL |
7 | Group: Development/Debuggers | |
60dde86f | 8 | Source0: http://www.cbmamiga.demon.co.uk/mpatrol/files/%{name}_%{version}.tar.gz |
f7044e34 | 9 | # Source0-md5: ada423c49bc5bfa7c3e7a80a711c2a1a |
601ef36c | 10 | Patch0: %{name}-info.patch |
c9e5ea72 | 11 | Patch1: %{name}-sparc.patch |
0396ce65 | 12 | URL: http://www.cbmamiga.demon.co.uk/mpatrol/index.html |
1482bbec | 13 | BuildRequires: binutils-devel |
ea438632 | 14 | BuildRequires: libstdc++-devel |
601ef36c | 15 | BuildRequires: texinfo |
686a2ead | 16 | Requires(post,postun): /sbin/ldconfig |
ca8f8196 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4e0735ef | 18 | |
19 | %description | |
60dde86f | 20 | A link library that attempts to diagnose run-time errors that are |
21 | caused by the wrong use of dynamically allocated memory. Along with | |
22 | providing a comprehensive and configurable log of all dynamic memory | |
23 | operations that occurred during the lifetime of a program, the mpatrol | |
24 | library performs extensive checking to detect any misuse of | |
25 | dynamically allocated memory. All of this functionality can be | |
26 | integrated into existing code through the inclusion of a single header | |
27 | file at compile-time. All logging and tracing output from the mpatrol | |
28 | library is sent to a separate log file in order to keep its | |
29 | diagnostics separate from any that the program being tested might | |
30 | generate. A wide variety of library settings can also be changed at | |
31 | run-time via an environment variable, thus removing the need to | |
32 | recompile or relink in order to change the library's behaviour. | |
4e0735ef | 33 | |
8446407c JR |
34 | %description -l pl.UTF-8 |
35 | Biblioteka próbująca zdiagnozować błędy działania programu spowodowane | |
36 | złym używaniem dynamicznie alokowanej pamięci. Oprócz dawania | |
0396ce65 | 37 | obszernego i konfigurowalnego loga wszystkich dynamicznych operacji na |
8446407c JR |
38 | pamięci, które wystąpiły podczas działania programu, biblioteka |
39 | mpatrol stara się wykryć wszelkie niewłaściwe użycia dynamicznie | |
40 | przydzielonej pamięci. Cała funkcjonalność może być zintegrowana z | |
41 | istniejącym kodem poprzez dołączenie jednego pliku nagłówkowego w | |
42 | czasie kompilacji. Całe logi i zapis śledzenia z biblioteki mpatrol są | |
43 | zapisywane do oddzielnego pliku aby oddzielić je od wszystkiego | |
44 | innego, co program może wygenerować. Szeroki zakres ustawień | |
45 | biblioteki może być zmieniany bez rekompilacji poprzez ustawianie | |
46 | zmiennych środowiskowych. | |
0396ce65 | 47 | |
4e0735ef | 48 | %prep |
601ef36c | 49 | %setup -q -n mpatrol |
c9e5ea72 JB |
50 | %patch0 -p1 |
51 | %patch1 -p1 | |
4e0735ef | 52 | |
53 | %build | |
686a2ead | 54 | %{__make} -C build/unix libmpatrol.a libmpatrol.so mpatrol mprof mleak \ |
a22d48b1 | 55 | OFLAGS="%{rpmcflags}" |
686a2ead JB |
56 | |
57 | cd doc | |
58 | makeinfo mpatrol.texi | |
4e0735ef | 59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
60dde86f | 62 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_infodir}} \ |
33add642 | 63 | $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{1,3}} |
4e0735ef | 64 | |
601ef36c | 65 | install build/unix/{mpatrol,mprof,mleak} $RPM_BUILD_ROOT%{_bindir} |
33add642 | 66 | |
67 | install src/mpatrol.h $RPM_BUILD_ROOT%{_includedir} | |
601ef36c | 68 | install build/unix/libmpatrol.{a,so*} $RPM_BUILD_ROOT%{_libdir} |
33add642 | 69 | |
601ef36c | 70 | install doc/mpatrol.info* $RPM_BUILD_ROOT%{_infodir} |
71 | install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1 | |
72 | install man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 | |
33add642 | 73 | |
0396ce65 JB |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
4e0735ef | 77 | %post |
78 | /sbin/ldconfig | |
c160b2f9 | 79 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
4e0735ef | 80 | |
33add642 | 81 | %postun |
82 | /sbin/ldconfig | |
c160b2f9 | 83 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
686a2ead JB |
84 | |
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | %doc README NEWS ChangeLog | |
88 | %attr(755,root,root) %{_bindir}/* | |
89 | %attr(755,root,root) %{_libdir}/*.so* | |
90 | %{_libdir}/*.a | |
91 | %{_includedir}/* | |
92 | %{_infodir}/*.info* | |
93 | %{_mandir}/man[13]/* |