1 Summary: Parser and analyzer for backtraces produced by GDB
2 Summary(pl.UTF-8): Analizator śladów wywołań tworzonych przez GDB
7 Group: Development/Tools
8 Source0: https://fedorahosted.org/released/btparser/%{name}-%{version}.tar.xz
9 # Source0-md5: 7fcf3f97dd6df827151638a41855c5bb
10 URL: http://fedorahosted.org/btparser/
12 BuildRequires: binutils-static
14 BuildRequires: glib2-devel >= 1:2.21
15 BuildRequires: pkgconfig
16 BuildRequires: python-devel
17 BuildRequires: python-distribute
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.219
21 Requires: %{name}-libs = %{version}-%{release}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Btparser is a backtrace parser and analyzer, which works with
26 backtraces produced by the GNU Project Debugger. It can parse a text
27 file with a backtrace to a tree of C structures, allowing to analyze
28 the threads and frames of the backtrace and work with them.
30 Btparser also contains some backtrace manipulation and extraction
32 - it can find a frame in the crash-time backtrace where the program
33 most likely crashed (a chance is that the function described in that
35 - it can produce a duplication hash of the backtrace, which helps to
36 discover that two crash-time backtraces are duplicates, triggered by
37 the same flaw of the code
38 - it can "rate" the backtrace quality, which depends on the number of
39 frames with and without the function name known (missing function
40 name is caused by missing debugging symbols)
42 %description -l pl.UTF-8
43 Btparser to analizator śladów wywołań (backtrace'ów), działający ze
44 śladami tworzonymi przez debugger GDB z projektu GNU. Potrafi
45 przetworzyć plik tekstowy ze śladem na drzewo struktur C, co pozwala
46 na analizę wątków oraz ramek śladu wywołań i dalszą pracę z nimi.
48 Btparser zawiera także trochę procedur do obróbki i wydobywania śladów
50 - potrafi znaleźć ramkę w pośmiertnym śladzie wywołań, w której
51 najprawdopodobniej nastąpiła wywrotka programu (możliwe, że to
52 funkcja w tej ramce zawiera błąd)
53 - potrafi utworzyć skrót (hasz) śladu, pozwalający wykryć, czy dwa
54 zadane ślady pośmiertne są duplikatami spowodowanymi tym samym
56 - potrafi "ocenić jakość" śladów, zależną od liczby ramek ze znaną i
57 bez znanej nazwy funkcji (brak nazwy funkcji wynika z braku symboli
61 Summary: Btparser library
62 Summary(pl.UTF-8): Biblioteka btparser
64 Requires: glib2 >= 1:2.21
69 %description libs -l pl.UTF-8
73 Summary: Header files for %{name} library
74 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
75 Group: Development/Libraries
76 Requires: %{name}-libs = %{version}-%{release}
77 Requires: glib2-devel >= 1:2.21
80 Header files for %{name} library.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki %{name}.
85 %package -n python-btparser
86 Summary: Python bindings for %{name}
87 Summary(pl.UTF-8): Wiązania Pythona do biblioteki btparser
88 Group: Libraries/Python
89 Requires: %{name}-libs = %{version}-%{release}
90 Requires: python-modules
92 %description -n python-btparser
93 Python bindings for %{name}.
95 %description -n python-btparser -l pl.UTF-8
96 Wiązania Pythona do biblioteki btparser.
104 --enable-fingerprints
110 rm -rf $RPM_BUILD_ROOT
113 DESTDIR=$RPM_BUILD_ROOT
115 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{py_sitedir}/btparser/*.la
120 rm -rf $RPM_BUILD_ROOT
122 %post libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
126 %defattr(644,root,root,755)
127 %doc ChangeLog NEWS README RELEASE TODO
128 %attr(755,root,root) %{_bindir}/btparser
129 %{_mandir}/man1/btparser.1*
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libbtparser.so.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libbtparser.so.2
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libbtparser.so
139 %{_includedir}/btparser
140 %{_pkgconfigdir}/btparser.pc
142 %files -n python-btparser
143 %defattr(644,root,root,755)
144 %dir %{py_sitedir}/btparser
145 %{py_sitedir}/btparser/__init__.py[co]
146 %attr(755,root,root) %{py_sitedir}/btparser/_btparser.so