2013-03-21 12:47:33 +00:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
2013-09-12 09:16:06 +00:00
|
|
|
# rhel6's python-sphinx cannot build manual pages
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
%define enable_python_manpage 0
|
|
|
|
%else
|
|
|
|
%define enable_python_manpage 1
|
|
|
|
%endif
|
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%define with_python3 1
|
|
|
|
%else
|
|
|
|
# EL doesn't have Python 3
|
|
|
|
%define with_python3 0
|
|
|
|
%endif
|
|
|
|
|
2013-12-10 16:36:11 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define python2_devel python-devel
|
|
|
|
%define libdw_devel libdw-devel
|
|
|
|
%define libelf_devel libelf-devel
|
|
|
|
%else
|
|
|
|
%define python2_devel python2-devel
|
|
|
|
%define libdw_devel elfutils-devel
|
|
|
|
%define libelf_devel elfutils-libelf-devel
|
|
|
|
%endif
|
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
Name: satyr
|
2017-03-14 16:28:32 +00:00
|
|
|
Version: 0.23
|
|
|
|
Release: 1%{?dist}
|
2013-03-21 12:47:33 +00:00
|
|
|
Summary: Tools to create anonymous, machine-friendly problem reports
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/abrt/satyr
|
2017-03-14 16:28:32 +00:00
|
|
|
Source0: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.xz
|
2013-12-10 16:36:11 +00:00
|
|
|
BuildRequires: %{python2_devel}
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-06-09 20:02:07 +00:00
|
|
|
BuildRequires: python3-devel
|
2015-09-17 13:35:17 +00:00
|
|
|
%endif # if with_python3
|
2013-12-10 16:36:11 +00:00
|
|
|
BuildRequires: %{libdw_devel}
|
|
|
|
BuildRequires: %{libelf_devel}
|
|
|
|
BuildRequires: binutils-devel
|
2013-03-25 14:45:47 +00:00
|
|
|
BuildRequires: rpm-devel
|
2013-12-10 16:36:11 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
2016-12-15 06:29:54 +00:00
|
|
|
BuildRequires: gdb
|
2013-09-12 09:16:06 +00:00
|
|
|
%if %{?enable_python_manpage}
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
%endif
|
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
%description
|
|
|
|
Satyr is a library that can be used to create and process microreports.
|
|
|
|
Microreports consist of structured data suitable to be analyzed in a fully
|
|
|
|
automated manner, though they do not necessarily contain sufficient information
|
|
|
|
to fix the underlying problem. The reports are designed not to contain any
|
|
|
|
potentially sensitive data to eliminate the need for review before submission.
|
|
|
|
Included is a tool that can create microreports and perform some basic
|
|
|
|
operations on them.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development libraries for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development libraries and headers for %{name}.
|
|
|
|
|
|
|
|
%package python
|
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description python
|
|
|
|
Python bindings for %{name}.
|
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-06-09 20:02:07 +00:00
|
|
|
%package python3
|
|
|
|
Summary: Python 3 bindings for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description python3
|
|
|
|
Python 3 bindings for %{name}.
|
2015-09-17 13:35:17 +00:00
|
|
|
%endif # if with_python3
|
2015-06-09 20:02:07 +00:00
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
%prep
|
2015-02-20 11:36:21 +00:00
|
|
|
%setup -q
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%build
|
2013-09-12 09:16:06 +00:00
|
|
|
%configure \
|
|
|
|
%if ! %{?enable_python_manpage}
|
|
|
|
--disable-python-manpage \
|
2015-09-17 13:35:17 +00:00
|
|
|
%endif
|
|
|
|
%if ! %{?with_python3}
|
|
|
|
--without-python3 \
|
2013-09-12 09:16:06 +00:00
|
|
|
%endif
|
|
|
|
--disable-static
|
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
# Remove all libtool archives (*.la) from modules directory.
|
|
|
|
find %{buildroot} -name "*.la" | xargs rm --
|
|
|
|
|
|
|
|
%check
|
2015-02-20 11:36:21 +00:00
|
|
|
make check || {
|
|
|
|
# find and print the logs of failed test
|
|
|
|
# do not cat tests/testsuite.log because it contains a lot of bloat
|
|
|
|
find tests/testsuite.dir -name "testsuite.log" -print -exec cat '{}' \;
|
|
|
|
exit 1
|
|
|
|
}
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README NEWS COPYING
|
|
|
|
%{_bindir}/satyr
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2014-01-09 19:39:04 +00:00
|
|
|
%{_libdir}/libsatyr.so.3*
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%files devel
|
2014-01-09 19:39:04 +00:00
|
|
|
%{_includedir}/satyr/
|
|
|
|
%{_libdir}/libsatyr.so
|
|
|
|
%{_libdir}/pkgconfig/satyr.pc
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%files python
|
|
|
|
%dir %{python_sitearch}/%{name}
|
|
|
|
%{python_sitearch}/%{name}/*
|
|
|
|
|
2013-09-12 09:16:06 +00:00
|
|
|
%if %{?enable_python_manpage}
|
|
|
|
%{_mandir}/man3/satyr-python.3*
|
|
|
|
%endif
|
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?with_python3}
|
2015-06-09 20:02:07 +00:00
|
|
|
%files python3
|
|
|
|
%dir %{python3_sitearch}/%{name}
|
|
|
|
%{python3_sitearch}/%{name}/*
|
2015-09-17 13:35:17 +00:00
|
|
|
%endif
|
2015-06-09 20:02:07 +00:00
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
%changelog
|
2017-03-14 16:28:32 +00:00
|
|
|
* Mon Mar 13 2017 Matej Habrnal <mhabrnal@redhat.com> 0.23-1
|
|
|
|
- New upstream version
|
|
|
|
- Allow rpm to be optional at build time
|
|
|
|
- Do not use deprecated fedorahosted.org
|
|
|
|
|
2017-02-11 13:05:05 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.22-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-12-15 06:29:54 +00:00
|
|
|
* Wed Dec 14 2016 Jakub Filak <jakub@thefilaks.net> 0.22-1
|
|
|
|
- New upstream version
|
|
|
|
- Added support fof JavaScript (V8) stack traces
|
|
|
|
- Most parts of the in-hook core unwinder callable under unprivileged user
|
|
|
|
- GDB core unwinder limits number of unwound frames
|
|
|
|
- Fixed a pair of compile warnings - Chris Redmon <credmonster@gmail.com>
|
|
|
|
|
2016-07-19 12:35:02 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-05-18 11:48:13 +00:00
|
|
|
* Wed May 18 2016 Matej Habrnal <mhabrnal@redhat.com> - 0.20-1
|
|
|
|
- New upstream version
|
|
|
|
- Introduce 'serial' field in uReport
|
|
|
|
- normalization: actualize list of functions
|
|
|
|
|
2016-02-04 23:36:09 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 18:06:41 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
* Thu Sep 17 2015 Matej Habrnal <mhabrnal@redhat.com> 0.20-1
|
|
|
|
- New upstream version
|
|
|
|
- Don't parse SO files as source_files
|
|
|
|
- Add support for OS Variant
|
|
|
|
- Fix the missing frame build_id and file_name
|
|
|
|
- Bugfixes
|
|
|
|
|
2015-07-26 17:36:43 +00:00
|
|
|
* Sun Jul 26 2015 Kevin Fenzi <kevin@scrye.com> 0.19-2
|
|
|
|
- Rebuild for new librpm
|
|
|
|
|
2015-07-07 13:06:22 +00:00
|
|
|
* Tue Jul 07 2015 Martin Milata <mmilata@redhat.com> 0.19-1
|
|
|
|
- New upstream version
|
|
|
|
- Enhancements to GDB parser: Thread ID, C++ template arguments
|
|
|
|
- Tests and bugfixes
|
|
|
|
|
2015-06-19 00:17:37 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-09 20:02:07 +00:00
|
|
|
* Tue Jun 09 2015 Martin Milata <mmilata@redhat.com> - 0.18-1
|
|
|
|
- New upstream version
|
|
|
|
- Remove function fingerprinting
|
|
|
|
- New kernel taint flags
|
|
|
|
- Normalization tweaks
|
|
|
|
- More secure core stacktraces from core hook
|
|
|
|
|
2015-05-02 15:35:41 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.16-3
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-02-21 21:16:23 +00:00
|
|
|
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.16-2
|
|
|
|
- Rebuilt for Fedora 23 Change
|
|
|
|
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
|
|
2015-02-20 11:36:21 +00:00
|
|
|
* Fri Feb 20 2015 Martin Milata <mmilata@redhat.com> 0.16-1
|
|
|
|
- New upstream version
|
|
|
|
- Add support for unwinding from core dump hook
|
|
|
|
- Add support for Ruby uReports
|
|
|
|
- Bugfixes
|
|
|
|
|
2014-11-07 09:59:30 +00:00
|
|
|
* Fri Nov 07 2014 Jakub Filak <jfilak@redhat.com> 0.15-2
|
|
|
|
- Add function name into reason text for kernel page faults
|
|
|
|
|
2014-10-07 10:31:08 +00:00
|
|
|
* Tue Oct 07 2014 Jakub Filak <jfilak@redhat.com> 0.15-1
|
|
|
|
- New upstream version
|
|
|
|
- uReport enhancements (DESKTOP_SESSION, auth_data, missing values)
|
|
|
|
- Enhance the backtrace quality algorithm to tackle MiniDebuginfo
|
|
|
|
- Support unusual Python and Java exceptions
|
|
|
|
- Deal with infinite recursion in backtraces
|
|
|
|
- Bugfixes
|
|
|
|
|
2014-08-18 01:19:28 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-15 10:45:55 +00:00
|
|
|
* Wed Aug 13 2014 Martin Milata <mmilata@redhat.com> 0.14-2
|
|
|
|
- Fix unwinding of stacktraces containing VDSO frame
|
|
|
|
|
2014-06-10 13:56:41 +00:00
|
|
|
* Tue Jun 10 2014 Martin Milata <mmilata@redhat.com> 0.14-1
|
|
|
|
- New upstream version
|
|
|
|
- Ported to elfutils-0.158 unwinder API
|
|
|
|
- Frame fingerprinting disabled
|
|
|
|
- Bugfixes
|
|
|
|
|
2014-06-08 05:46:15 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-01-09 19:39:04 +00:00
|
|
|
* Thu Jan 09 2014 Rex Dieter <rdieter@fedoraproject.org> 0.13-3
|
|
|
|
- track api, abi/soname in %%files, so bumps aren't a surprise
|
|
|
|
|
2014-01-07 16:48:07 +00:00
|
|
|
* Tue Jan 07 2014 Martin Milata <mmilata@redhat.com> 0.13-2
|
|
|
|
- Fix build against elfutils-0.158
|
|
|
|
|
2014-01-07 16:25:20 +00:00
|
|
|
* Tue Jan 07 2014 Martin Milata <mmilata@redhat.com> 0.13-1
|
|
|
|
- New upstream version
|
|
|
|
- Kerneloops parser support for ppc64 and s390
|
|
|
|
- Kerneloops hashing
|
|
|
|
|
2013-12-10 16:36:11 +00:00
|
|
|
* Tue Dec 10 2013 Martin Milata <mmilata@redhat.com> 0.12-1
|
|
|
|
- New upstream version
|
|
|
|
- JVM frames normalization
|
|
|
|
- Add C++ symbol demangling
|
|
|
|
- Unsigned overflow bugfixes
|
|
|
|
- Fix malformed uReports for Java
|
|
|
|
|
2013-10-26 19:30:39 +00:00
|
|
|
* Sat Oct 26 2013 Jakub Filak <jfilak@redhat.com> 0.11-1
|
|
|
|
- New upstream version
|
|
|
|
- Make all python objects hashable
|
|
|
|
- Improve memory management in rpm module
|
|
|
|
- Extend the list of normalized functions
|
|
|
|
- Add command for debugging duphashes to satyr utility
|
|
|
|
|
2013-10-04 12:30:27 +00:00
|
|
|
* Thu Oct 03 2013 Jakub Filak <jfilak@redhat.com> 0.10-1
|
|
|
|
- New upstream version
|
|
|
|
- Fix a segmentation fault in sr_rpm_package_uniq()
|
|
|
|
- Respect kernel flavor when parsing package name
|
|
|
|
- Parse backtrace without Thread header
|
|
|
|
- Fix koops json output if there are no modules
|
|
|
|
- Add support for multiple koops stacks
|
|
|
|
|
2013-09-12 09:16:06 +00:00
|
|
|
* Wed Sep 11 2013 Jakub Filak <jfilak@redhat.com> 0.9-1
|
|
|
|
- New upstream version
|
|
|
|
- Enrich koops uReport data with koops text and kernel version.
|
|
|
|
- Improve koops modules handling.
|
|
|
|
|
|
|
|
* Wed Aug 28 2013 Richard Marko<rmarko@redhat.com> 0.8-1
|
|
|
|
- New upstream version
|
|
|
|
- Added support for json de/serialization of reports and stacktraces.
|
|
|
|
- Library version number increased, as the interface changed since the last release
|
|
|
|
|
2013-08-26 16:02:53 +00:00
|
|
|
* Mon Aug 26 2013 Martin Milata <mmilata@redhat.com> 0.7-1
|
|
|
|
- New upstream version
|
|
|
|
- Fix couple of crashes (#997076, #994747)
|
|
|
|
|
2013-07-29 17:05:26 +00:00
|
|
|
* Mon Jul 29 2013 Martin Milata <mmilata@redhat.com> 0.6-1
|
|
|
|
- New upstream version
|
|
|
|
- Do not export internal function symbols.
|
|
|
|
|
2013-07-25 17:09:34 +00:00
|
|
|
* Thu Jul 25 2013 Martin Milata <mmilata@redhat.com> 0.5-2
|
|
|
|
- Remove libunwind dependency altogether, always use GDB for unwinding.
|
|
|
|
|
2013-07-25 14:01:41 +00:00
|
|
|
* Thu Jul 25 2013 Jakub Filak <jfilak@redhat.com> 0.5-1
|
|
|
|
- Added function that creates core stacktrace from GDB output. Several bugfixes.
|
|
|
|
|
2013-07-09 10:50:07 +00:00
|
|
|
* Tue Jul 09 2013 Martin Milata <mmilata@redhat.com> 0.4-2
|
|
|
|
- Fix failing tests (failure manifests only on s390x)
|
|
|
|
|
2013-07-08 13:12:16 +00:00
|
|
|
* Mon Jul 08 2013 Martin Milata <mmilata@redhat.com> 0.4-1
|
|
|
|
- New upstream version
|
|
|
|
- Added features needed by ABRT
|
|
|
|
- Support for uReport2
|
|
|
|
- Major C and Python API changes
|
|
|
|
- Patch for python-2.6 compatibility
|
|
|
|
|
2013-04-02 08:44:05 +00:00
|
|
|
* Tue Apr 02 2013 Dan Horák <dan[at]danny.cz> 0.3-2
|
|
|
|
- libunwind exists only on selected arches
|
|
|
|
|
2013-03-25 14:45:47 +00:00
|
|
|
* Mon Mar 25 2013 Martin Milata <mmilata@redhat.com> 0.3-1
|
|
|
|
- New upstream version
|
|
|
|
- Bug fixes
|
|
|
|
- Build fixes for older systems
|
|
|
|
- Do not require libunwind on rhel
|
|
|
|
|
|
|
|
* Mon Mar 18 2013 Martin Milata <mmilata@redhat.com> 0.2-1
|
2013-03-21 12:47:33 +00:00
|
|
|
- Documentation and spec cleanup
|
|
|
|
- Build fixes (build against RPM)
|
|
|
|
|
|
|
|
* Mon Aug 30 2010 Karel Klic <kklic@redhat.com> 0.1-1
|
|
|
|
- Upstream package spec file
|