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
046a1c
%if 0%{?suse_version}
046a1c
  %define python2_devel python-devel
046a1c
  %define libdw_devel libdw-devel
046a1c
  %define libelf_devel libelf-devel
046a1c
%else
046a1c
  %define python2_devel python2-devel
046a1c
  %define libdw_devel elfutils-devel
046a1c
  %define libelf_devel elfutils-libelf-devel
046a1c
%endif
046a1c
e2ad32
Name: satyr
046a1c
Version: 0.13
046a1c
Release: 4%{?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
046a1c
BuildRequires: %{python2_devel}
046a1c
BuildRequires: %{libdw_devel}
046a1c
BuildRequires: %{libelf_devel}
046a1c
BuildRequires: binutils-devel
e2ad32
BuildRequires: rpm-devel
046a1c
BuildRequires: libtool
046a1c
BuildRequires: pkgconfig
046a1c
BuildRequires: automake
046a1c
BuildRequires: gcc-c++
e2ad32
%if %{?enable_python_manpage}
e2ad32
BuildRequires: python-sphinx
e2ad32
%endif
e2ad32
046a1c
Patch0: satyr-0.13-elfutils-0.158.patch
046a1c
Patch1: satyr-0.13-elfutils-unwinder.patch
046a1c
Patch2: satyr-0.13-disable-fingerprints.patch
046a1c
Patch3: satyr-0.13-unwinder-refresh-config-h.patch
046a1c
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
046a1c
%patch0 -p1
046a1c
%patch1 -p1
046a1c
%patch2 -p1
046a1c
%patch3 -p1
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
046a1c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.13-4
046a1c
- Mass rebuild 2014-01-24
046a1c
046a1c
* Wed Jan 22 2014 Martin Milata <mmilata@redhat.com> 0.13-3
046a1c
- Fix build with elfutils unwinder
046a1c
  - Resolves: #1051569
046a1c
046a1c
* Tue Jan 14 2014 Martin Milata <mmilata@redhat.com> 0.13-2
046a1c
- Use elfutils unwinder
046a1c
  - Resolves: #1051569
046a1c
- Disable function fingerprinting
046a1c
  - Resolves: #1052402
046a1c
046a1c
* Tue Jan 07 2014 Martin Milata <mmilata@redhat.com> 0.13-1
046a1c
- Rebase to satyr-0.13
046a1c
  - Resolves: #1040900
046a1c
- Includes patch to build against elfutils-0.158
046a1c
046a1c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9-3
046a1c
- Mass rebuild 2013-12-27
046a1c
046a1c
* Wed Dec 04 2013 Martin Milata <mmilata@redhat.com> 0.9-2
046a1c
- Fix malformed JSON for some Java and koops reports
046a1c
  - Resolves: #1035317
046a1c
  - Resolves: #1036790
046a1c
- Fix memory leak in RPM handling
046a1c
  - Resolves: #1016780
046a1c
- Check for unsigned overflows
046a1c
  - Resolves: #1034869
046a1c
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