%define name heap-buddy %define version 0.2 %define release %mkrel 3 %define libname %mklibname %name 0 Summary: Heap profiler for mono Name: %{name} Version: %{version} Release: %{release} Source0: http://go-mono.com/sources/heap-buddy/%{name}-%{version}.tar.bz2 License: GPL Group: Development/Other Url: http://www.mono-project.com/Main_Page BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: mono-devel Requires: %libname = %version %description Heap-buddy is a heap profiler for mono. It attaches to special hooks in the mono runtime and tracks all of the managed memory allocations, every garbage collection and every heap resize. These statistics are written out into a data file that we call an 'outfile'. %package -n %libname Summary: Heap profiler for mono library Group: System/Libraries %description -n %libname Heap-buddy is a heap profiler for mono. It attaches to special hooks in the mono runtime and tracks all of the managed memory allocations, every garbage collection and every heap resize. These statistics are written out into a data file that we call an 'outfile'. %prep %setup -q %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std rm -f %buildroot%_libdir/lib*.so rm -f %buildroot%_libdir/lib*a %clean rm -rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %libname -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %libname -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc README NEWS AUTHORS %_bindir/%name %_libdir/%name %files -n %libname %defattr(-,root,root) %_libdir/libmono-profiler-heap-buddy.so.* %changelog * Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.2-3mdv2009.0 + Revision: 246829 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.2-1mdv2008.1 + Revision: 140746 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Feb 07 2007 Götz Waschk <waschk@mandriva.org> 0.2-1mdv2007.0 + Revision: 117000 - new version * Thu Dec 21 2006 Götz Waschk <waschk@mandriva.org> 0.1-1mdv2007.1 + Revision: 100945 - Import heap-buddy * Thu Dec 21 2006 Götz Waschk <waschk@mandriva.org> 0.1-1mdv2007.1 - rebuild * Mon Dec 19 2005 Götz Waschk <waschk@mandriva.org> 0.1-1mdk - initial package