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