]> git.pld-linux.org Git - packages/heap-shot.git/blob - heap-shot.spec
42189b903bbcf2b4ded19c57439a9f1c2822a65c
[packages/heap-shot.git] / heap-shot.spec
1 #
2 %include        /usr/lib/rpm/macros.mono
3 #
4 Summary:        A profiler to explore live objects in the heap
5 Summary(pl.UTF-8):      Profiler do podglądania żywych obiektów na stercie
6 Name:           heap-shot
7 Version:        0.1
8 Release:        5
9 License:        GPL v3
10 Group:          Development/Tools
11 # git clone http://github.com/mono/heap-shot.git
12 Source0:        %{name}.tar.bz2
13 # Source0-md5:  976f917b5703eb321b7acac42e6f9000
14 Patch0:         %{name}-unicode-dot.patch
15 Patch1:         %{name}-build.patch
16 Patch2:         %{name}-fix.patch
17 URL:            http://www.mono-project.com/HeapShot
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  dotnet-gtk-sharp2-devel >= 2
21 BuildRequires:  glib2-devel >= 2.0
22 BuildRequires:  libtool
23 BuildRequires:  mono-csharp >= 2.8
24 BuildRequires:  pkgconfig
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Heap Shot is a profiler to explore memory allocation patterns in an
29 application is it part of the Mono profiling tools. Heap Shot works by
30 taking snapshots of the Mono managed heap from running Mono
31 applications and displaying the results. Additionally, Heap Shot can
32 compare the differences in live objects between a number of snapshots,
33 this is very helpful to understand which objects are alive and which
34 objects have been allocated. Heap Shot can either explore one snapshot
35 of memory at a point, or it can be used to compare the objects between
36 two separate points in time.
37
38 %description -l pl.UTF-8
39 Heap Shot to profiler do obserwacji wzorców przydzielania pamięci w
40 aplikacji. Jest częścią narzędzi profilujących Mono. Działa poprzez
41 wykonywanie migawek sterty zarządzanej przez Mono z działających
42 aplikacji Mono oraz wyświetlanie wyników. Dodatkowo Heap Shot potrafi
43 porównywać różnice w żywych obiektach między wieloma migawkami, co
44 jest bardzo pomocne dla zrozumienia, które obiekty zostały powołane do
45 życia, a które przydzielone. Heap Shot pozwala przeglądać pojedynczą
46 migawkę pamięci z jakiejś chwili, albo porównywać obiekty między
47 dwiema różnymi chwilami.
48
49 %prep
50 %setup -q -n %{name}
51 %patch0 -p1
52 %patch1 -p1
53 %patch2 -p1
54
55 %build
56 %{__libtoolize}
57 %{__aclocal}
58 %{__autoconf}
59 %{__automake}
60 %configure \
61         --disable-static
62
63 %{__make} -j1
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} -j1 install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 # mono dlopens profiler library by libmono-profiler-NAME.so
72 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README
83 %attr(755,root,root) %{_bindir}/heap-shot
84 %attr(755,root,root) %{_bindir}/heap-shot-gui
85 %attr(755,root,root) %{_libdir}/libmono-profiler-heap-shot.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libmono-profiler-heap-shot.so.0
87 %attr(755,root,root) %{_libdir}/libmono-profiler-heap-shot.so
88 %{_prefix}/lib/%{name}
This page took 0.056763 seconds and 2 git commands to generate.