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