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