]> git.pld-linux.org Git - packages/mpatrol.git/blame - mpatrol.spec
- updated to 1.3.3,
[packages/mpatrol.git] / mpatrol.spec
CommitLineData
60dde86f 1Summary: A library for controlling and tracing dynamic memory allocations
2Name: mpatrol
601ef36c 3Version: 1.3.3
0759ca27 4Release: 1
60dde86f 5License: LGPL
6Group: Development/Debuggers
7Group(pl): Programowanie/Odpluskwiacze
8Source0: http://www.cbmamiga.demon.co.uk/mpatrol/files/%{name}_%{version}.tar.gz
601ef36c 9Patch0: %{name}-info.patch
10BuildRequires: texinfo
60dde86f 11URL: http://www.cbmamiga.demon.co.uk/mpatrol/index.html
12Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4e0735ef 13
14%description
60dde86f 15A link library that attempts to diagnose run-time errors that are
16caused by the wrong use of dynamically allocated memory. Along with
17providing a comprehensive and configurable log of all dynamic memory
18operations that occurred during the lifetime of a program, the mpatrol
19library performs extensive checking to detect any misuse of
20dynamically allocated memory. All of this functionality can be
21integrated into existing code through the inclusion of a single header
22file at compile-time. All logging and tracing output from the mpatrol
23library is sent to a separate log file in order to keep its
24diagnostics separate from any that the program being tested might
25generate. A wide variety of library settings can also be changed at
26run-time via an environment variable, thus removing the need to
27recompile or relink in order to change the library's behaviour.
4e0735ef 28
4e0735ef 29%prep
601ef36c 30%setup -q -n mpatrol
31%patch -p1
4e0735ef 32
33%build
601ef36c 34(cd build/unix
35 %{__make} libmpatrol.a libmpatrol.so mpatrol mprof mleak \
36 OFLAGS="%{?debug:-O -g}%{!?debug:$RPM_OPT_FLAGS}"
37)
38(cd doc; makeinfo mpatrol.texi)
4e0735ef 39
40%install
41rm -rf $RPM_BUILD_ROOT
60dde86f 42install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_infodir}} \
33add642 43 $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man{1,3}}
4e0735ef 44
601ef36c 45install build/unix/{mpatrol,mprof,mleak} $RPM_BUILD_ROOT%{_bindir}
33add642 46
47install src/mpatrol.h $RPM_BUILD_ROOT%{_includedir}
601ef36c 48install build/unix/libmpatrol.{a,so*} $RPM_BUILD_ROOT%{_libdir}
33add642 49
601ef36c 50install doc/mpatrol.info* $RPM_BUILD_ROOT%{_infodir}
51install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
52install man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3
33add642 53
601ef36c 54gzip -9nf README NEWS ChangeLog
4e0735ef 55
56%files
60dde86f 57%defattr(644,root,root,755)
601ef36c 58%doc *.gz
60dde86f 59%attr(755,root,root) %{_bindir}/*
60dde86f 60%{_includedir}/*
60dde86f 61%{_libdir}/*
33add642 62%{_infodir}/*
60dde86f 63%{_mandir}/man[13]/*
4e0735ef 64
65%post
66/sbin/ldconfig
33add642 67[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
4e0735ef 68
33add642 69%postun
70/sbin/ldconfig
71[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
4e0735ef 72
73%clean
74rm -rf $RPM_BUILD_ROOT
This page took 0.229984 seconds and 4 git commands to generate.