mfabik / rpms / satyr

Forked from rpms/satyr 3 years ago
Clone

Blame SPECS/satyr.spec

e2ad32
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
e2ad32
e2ad32
# rhel6's python-sphinx cannot build manual pages
e2ad32
%if 0%{?rhel} && 0%{?rhel} <= 6
e2ad32
  %define enable_python_manpage 0
e2ad32
%else
e2ad32
  %define enable_python_manpage 1
e2ad32
%endif
e2ad32
e2ad32
Name: satyr
e2ad32
Version: 0.9
e2ad32
Release: 1%{?dist}
e2ad32
Summary: Tools to create anonymous, machine-friendly problem reports
e2ad32
Group: System Environment/Libraries
e2ad32
License: GPLv2+
e2ad32
URL: https://github.com/abrt/satyr
e2ad32
Source0: https://fedorahosted.org/released/abrt/satyr-%{version}.tar.xz
e2ad32
BuildRequires: python2-devel
e2ad32
BuildRequires: elfutils-devel, elfutils-libelf-devel, binutils-devel
e2ad32
BuildRequires: rpm-devel
e2ad32
e2ad32
# We're going to switch to elfutils unwinder once it's available
e2ad32
%if 0%{?rhel}
e2ad32
%else
e2ad32
# libunwind exists only on selected arches
e2ad32
%ifarch %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64
e2ad32
BuildRequires: libunwind-devel >= 1.1
e2ad32
%endif
e2ad32
%endif
e2ad32
e2ad32
%if %{?enable_python_manpage}
e2ad32
BuildRequires: python-sphinx
e2ad32
%endif
e2ad32
e2ad32
%description
e2ad32
Satyr is a library that can be used to create and process microreports.
e2ad32
Microreports consist of structured data suitable to be analyzed in a fully
e2ad32
automated manner, though they do not necessarily contain sufficient information
e2ad32
to fix the underlying problem. The reports are designed not to contain any
e2ad32
potentially sensitive data to eliminate the need for review before submission.
e2ad32
Included is a tool that can create microreports and perform some basic
e2ad32
operations on them.
e2ad32
e2ad32
%package devel
e2ad32
Summary: Development libraries for %{name}
e2ad32
Group: Development/Libraries
e2ad32
Requires: %{name}%{?_isa} = %{version}-%{release}
e2ad32
e2ad32
%description devel
e2ad32
Development libraries and headers for %{name}.
e2ad32
e2ad32
%package python
e2ad32
Summary: Python bindings for %{name}
e2ad32
Group: Development/Libraries
e2ad32
Requires: %{name}%{?_isa} = %{version}-%{release}
e2ad32
e2ad32
%description python
e2ad32
Python bindings for %{name}.
e2ad32
e2ad32
%prep
e2ad32
%setup -q
e2ad32
e2ad32
%build
e2ad32
%configure \
e2ad32
%if ! %{?enable_python_manpage}
e2ad32
        --disable-python-manpage \
e2ad32
%endif
e2ad32
        --disable-static
e2ad32
e2ad32
make %{?_smp_mflags}
e2ad32
e2ad32
%install
e2ad32
make install DESTDIR=%{buildroot}
e2ad32
e2ad32
# Remove all libtool archives (*.la) from modules directory.
e2ad32
find %{buildroot} -name "*.la" | xargs rm --
e2ad32
e2ad32
%check
e2ad32
make check
e2ad32
e2ad32
%post -p /sbin/ldconfig
e2ad32
%postun -p /sbin/ldconfig
e2ad32
e2ad32
%files
e2ad32
%doc README NEWS COPYING
e2ad32
%{_bindir}/satyr
e2ad32
%{_mandir}/man1/%{name}.1*
e2ad32
%{_libdir}/lib*.so.*
e2ad32
e2ad32
%files devel
e2ad32
%{_includedir}/*
e2ad32
%{_libdir}/lib*.so
e2ad32
%{_libdir}/pkgconfig/*
e2ad32
e2ad32
%files python
e2ad32
%dir %{python_sitearch}/%{name}
e2ad32
%{python_sitearch}/%{name}/*
e2ad32
e2ad32
%if %{?enable_python_manpage}
e2ad32
%{_mandir}/man3/satyr-python.3*
e2ad32
%endif
e2ad32
e2ad32
%changelog
e2ad32
* Wed Sep 11 2013 Jakub Filak <jfilak@redhat.com> 0.9-1
e2ad32
- New upstream version
e2ad32
  - Enrich koops uReport data with koops text and kernel version.
e2ad32
  - Improve koops modules handling.
e2ad32
e2ad32
* Wed Aug 28 2013 Richard Marko<rmarko@redhat.com> 0.8-1
e2ad32
- New upstream version
e2ad32
  - Added support for json de/serialization of reports and stacktraces.
e2ad32
  - Library version number increased, as the interface changed since the last release
e2ad32
e2ad32
* Mon Aug 26 2013 Martin Milata <mmilata@redhat.com> 0.7-1
e2ad32
- New upstream version
e2ad32
  - Fix couple of crashes (#997076, #994747)
e2ad32
e2ad32
* Mon Jul 29 2013 Martin Milata <mmilata@redhat.com> 0.6-1
e2ad32
- New upstream version
e2ad32
  - Do not export internal function symbols.
e2ad32
e2ad32
* Thu Jul 25 2013 Martin Milata <mmilata@redhat.com> 0.5-2
e2ad32
- Remove libunwind dependency altogether, always use GDB for unwinding.
e2ad32
e2ad32
* Thu Jul 25 2013 Jakub Filak <jfilak@redhat.com> 0.5-1
e2ad32
- Added function that creates core stacktrace from GDB output. Several bugfixes.
e2ad32
e2ad32
* Tue Jul 09 2013 Martin Milata <mmilata@redhat.com> 0.4-2
e2ad32
- Fix failing tests (failure manifests only on s390x)
e2ad32
e2ad32
* Mon Jul 08 2013 Martin Milata <mmilata@redhat.com> 0.4-1
e2ad32
- New upstream version
e2ad32
  - Added features needed by ABRT
e2ad32
  - Support for uReport2
e2ad32
  - Major C and Python API changes
e2ad32
- Patch for python-2.6 compatibility
e2ad32
e2ad32
* Tue Apr 02 2013 Dan HorĂ¡k <dan[at]danny.cz> 0.3-2
e2ad32
- libunwind exists only on selected arches
e2ad32
e2ad32
* Mon Mar 25 2013 Martin Milata <mmilata@redhat.com> 0.3-1
e2ad32
- New upstream version
e2ad32
  - Bug fixes
e2ad32
  - Build fixes for older systems
e2ad32
- Do not require libunwind on rhel
e2ad32
e2ad32
* Mon Mar 18 2013 Martin Milata <mmilata@redhat.com> 0.2-1
e2ad32
- Documentation and spec cleanup
e2ad32
- Build fixes (build against RPM)
e2ad32
e2ad32
* Mon Aug 30 2010 Karel Klic <kklic@redhat.com> 0.1-1
e2ad32
- Upstream package spec file