]> git.pld-linux.org Git - packages/python-faulthandler.git/blame - python-faulthandler.spec
- use rpm python macros
[packages/python-faulthandler.git] / python-faulthandler.spec
CommitLineData
27f78cf2 1%define module faulthandler
27f78cf2
AM
2Summary: Display the Python traceback on a crash
3Name: python-faulthandler
4Version: 2.3
2aee31bb 5Release: 3
27f78cf2
AM
6License: BSD
7Group: Development/Languages/Python
8Source0: http://pypi.python.org/packages/source/f/faulthandler/faulthandler-%{version}.tar.gz
9# Source0-md5: 76d1344adc2302cf5c59a5f8a4f4f4ae
10URL: https://github.com/haypo/faulthandler/wiki
c1713701 11BuildRequires: rpmbuild(macros) >= 1.710
27f78cf2
AM
12BuildRequires: python-devel
13BuildRequires: python-modules
14BuildRequires: rpm-pythonprov
15Requires: python
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Fault handler for SIGSEGV, SIGFPE, SIGBUS and SIGILL signals: display
20the Python backtrace and restore the previous handler. Allocate an
21alternate stack for this handler, if sigaltstack() is available, to be
22able 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
31rm -rf $RPM_BUILD_ROOT
32
2aee31bb 33%py_install
27f78cf2
AM
34
35%clean
36rm -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
This page took 0.113373 seconds and 4 git commands to generate.