]> git.pld-linux.org Git - packages/mpatrol.git/blob - mpatrol.spec
f9b978a314f2a747a46c4d0fa10ce534aa30647d
[packages/mpatrol.git] / mpatrol.spec
1 Summary:        A library for controlling and tracing dynamic memory allocations
2 Summary(pl):    Biblioteka do kontroli i ¶ledzenia dynamicznej alokacji pamiêci
3 Name:           mpatrol
4 Version:        1.4.8
5 Release:        3
6 License:        LGPL
7 Group:          Development/Debuggers
8 Source0:        http://www.cbmamiga.demon.co.uk/mpatrol/files/%{name}_%{version}.tar.gz
9 # Source0-md5:  ada423c49bc5bfa7c3e7a80a711c2a1a
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-sparc.patch
12 URL:            http://www.cbmamiga.demon.co.uk/mpatrol/index.html
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  texinfo
15 Requires(post,postun):  /sbin/ldconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
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.
32
33 %description -l pl
34 Biblioteka próbuj±ca zdiagnozowaæ b³êdy dzia³ania programu spowodowane
35 z³ym u¿ywaniem dynamicznie alokowanej pamiêci. Oprócz dawania
36 obszernego i konfigurowalnego loga wszystkich dynamicznych operacji na
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.
46
47 %prep
48 %setup -q -n mpatrol
49 %patch0 -p1
50 %patch1 -p1
51
52 %build
53 %{__make} -C build/unix libmpatrol.a libmpatrol.so mpatrol mprof mleak \
54         OFLAGS="%{rpmcflags}"
55
56 cd doc
57 makeinfo mpatrol.texi
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_infodir}} \
62         $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{1,3}}
63
64 install build/unix/{mpatrol,mprof,mleak} $RPM_BUILD_ROOT%{_bindir}
65
66 install src/mpatrol.h $RPM_BUILD_ROOT%{_includedir}
67 install build/unix/libmpatrol.{a,so*} $RPM_BUILD_ROOT%{_libdir}
68
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
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post
77 /sbin/ldconfig
78 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
79
80 %postun
81 /sbin/ldconfig
82 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
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]/*
This page took 0.045599 seconds and 3 git commands to generate.