]>
Commit | Line | Data |
---|---|---|
27f78cf2 | 1 | %define module faulthandler |
27f78cf2 AM |
2 | Summary: Display the Python traceback on a crash |
3 | Name: python-faulthandler | |
4 | Version: 2.3 | |
2aee31bb | 5 | Release: 3 |
27f78cf2 AM |
6 | License: BSD |
7 | Group: Development/Languages/Python | |
8 | Source0: http://pypi.python.org/packages/source/f/faulthandler/faulthandler-%{version}.tar.gz | |
9 | # Source0-md5: 76d1344adc2302cf5c59a5f8a4f4f4ae | |
10 | URL: https://github.com/haypo/faulthandler/wiki | |
c1713701 | 11 | BuildRequires: rpmbuild(macros) >= 1.710 |
27f78cf2 AM |
12 | BuildRequires: python-devel |
13 | BuildRequires: python-modules | |
14 | BuildRequires: rpm-pythonprov | |
15 | Requires: python | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Fault handler for SIGSEGV, SIGFPE, SIGBUS and SIGILL signals: display | |
20 | the Python backtrace and restore the previous handler. Allocate an | |
21 | alternate stack for this handler, if sigaltstack() is available, to be | |
22 | able to allocate memory on the stack, even on stack overflow. | |
23 | ||
24 | %prep | |
2aee31bb | 25 | %setup -q -n %{module}-%{version} |
27f78cf2 AM |
26 | |
27 | %build | |
2aee31bb | 28 | %py_build |
27f78cf2 AM |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
2aee31bb | 33 | %py_install |
27f78cf2 AM |
34 | |
35 | %clean | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %files | |
39 | %defattr(644,root,root,755) | |
40 | %doc AUTHORS PKG-INFO README TODO | |
41 | %attr(755,root,root) %{py_sitedir}/%{module}.so | |
42 | %{py_sitedir}/*egg-info |