1 %define module faulthandler
3 Summary: Display the Python traceback on a crash
4 Name: python-faulthandler
8 Group: Development/Languages/Python
9 Source0: http://pypi.python.org/packages/source/f/faulthandler/faulthandler-%{version}.tar.gz
10 # Source0-md5: 76d1344adc2302cf5c59a5f8a4f4f4ae
11 URL: https://github.com/haypo/faulthandler/wiki
12 BuildRequires: rpmbuild(macros) >= 1.710
13 BuildRequires: python-devel
14 BuildRequires: python-modules
15 BuildRequires: rpm-pythonprov
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Fault handler for SIGSEGV, SIGFPE, SIGBUS and SIGILL signals: display
21 the Python backtrace and restore the previous handler. Allocate an
22 alternate stack for this handler, if sigaltstack() is available, to be
23 able to allocate memory on the stack, even on stack overflow.
26 %setup -q -n %{module}-%{version}
29 %py_build --build-base py2
32 rm -rf $RPM_BUILD_ROOT
38 --root=$RPM_BUILD_ROOT
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %doc AUTHORS PKG-INFO README TODO
46 %attr(755,root,root) %{py_sitedir}/%{module}.so
47 %{py_sitedir}/*egg-info