2017-12-04 11:49:09 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
2018-04-18 15:12:40 +00:00
|
|
|
# Enable python3 build by default
|
|
|
|
%bcond_without python3
|
2015-09-17 13:35:17 +00:00
|
|
|
%else
|
2018-04-18 15:12:40 +00:00
|
|
|
%bcond_with python3
|
|
|
|
%endif
|
|
|
|
|
2013-12-10 16:36:11 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define libdw_devel libdw-devel
|
|
|
|
%define libelf_devel libelf-devel
|
|
|
|
%else
|
|
|
|
%define libdw_devel elfutils-devel
|
|
|
|
%define libelf_devel elfutils-libelf-devel
|
|
|
|
%endif
|
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
Name: satyr
|
2019-10-11 11:29:15 +00:00
|
|
|
Version: 0.29
|
|
|
|
Release: 1%{?dist}
|
2013-03-21 12:47:33 +00:00
|
|
|
Summary: Tools to create anonymous, machine-friendly problem reports
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://github.com/abrt/satyr
|
2019-10-11 11:29:15 +00:00
|
|
|
Source0: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python3}
|
2015-06-09 20:02:07 +00:00
|
|
|
BuildRequires: python3-devel
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # 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
|
2017-11-01 14:53:06 +00:00
|
|
|
BuildRequires: doxygen
|
2013-12-10 16:36:11 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
2016-12-15 06:29:54 +00:00
|
|
|
BuildRequires: gdb
|
2019-10-11 11:29:15 +00:00
|
|
|
BuildRequires: gperf
|
|
|
|
BuildRequires: pkgconfig(json-c)
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
%endif # with python3
|
2019-10-11 11:29:15 +00:00
|
|
|
Requires: json-c
|
2017-12-04 11:49:09 +00:00
|
|
|
|
2018-06-29 13:20:15 +00:00
|
|
|
# git is need for '%%autosetup -S git' which automatically applies all the
|
|
|
|
# patches above. Please, be aware that the patches must be generated
|
|
|
|
# by 'git format-patch'
|
|
|
|
BuildRequires: git
|
|
|
|
|
|
|
|
|
|
|
|
|
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}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development libraries and headers for %{name}.
|
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python3}
|
2017-09-06 09:56:48 +00:00
|
|
|
%package -n python3-satyr
|
|
|
|
%{?python_provide:%python_provide python3-satyr}
|
2015-06-09 20:02:07 +00:00
|
|
|
Summary: Python 3 bindings for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2017-09-06 09:56:48 +00:00
|
|
|
%description -n python3-satyr
|
2015-06-09 20:02:07 +00:00
|
|
|
Python 3 bindings for %{name}.
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # if with python3
|
2015-06-09 20:02:07 +00:00
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
%prep
|
2018-06-29 13:20:15 +00:00
|
|
|
# http://www.rpm.org/wiki/PackagerDocs/Autosetup
|
|
|
|
# Default '__scm_apply_git' is 'git apply && git commit' but this workflow
|
|
|
|
# doesn't allow us to create a new file within a patch, so we have to use
|
|
|
|
# 'git am' (see /usr/lib/rpm/macros for more details)
|
|
|
|
%define __scm_apply_git(qp:m:) %{__git} am
|
|
|
|
%autosetup -S git
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%build
|
2013-09-12 09:16:06 +00:00
|
|
|
%configure \
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{without python3}
|
2015-09-17 13:35:17 +00:00
|
|
|
--without-python3 \
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # with python3
|
2017-11-01 14:53:06 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-doxygen-docs
|
2013-09-12 09:16:06 +00:00
|
|
|
|
2019-10-11 11:29:15 +00:00
|
|
|
%make_build
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%install
|
2019-10-11 11:29:15 +00:00
|
|
|
%make_install
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
# Remove all libtool archives (*.la) from modules directory.
|
2019-10-11 11:29:15 +00:00
|
|
|
find %{buildroot} -name "*.la" -delete
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%check
|
2018-04-18 15:12:40 +00:00
|
|
|
make check|| {
|
2015-02-20 11:36:21 +00:00
|
|
|
# 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
|
|
|
|
2018-03-27 14:40:33 +00:00
|
|
|
%if 0%{?fedora} > 27
|
|
|
|
# ldconfig is not needed
|
|
|
|
%else
|
2013-03-21 12:47:33 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2018-03-27 14:40:33 +00:00
|
|
|
%endif
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%files
|
2018-03-27 14:40:33 +00:00
|
|
|
%doc README NEWS
|
|
|
|
%license COPYING
|
2013-03-21 12:47:33 +00:00
|
|
|
%{_bindir}/satyr
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
2018-04-18 15:12:40 +00:00
|
|
|
%{_libdir}/lib*.so.*
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%files devel
|
2017-11-01 14:53:06 +00:00
|
|
|
# The complex pattern below (instead of simlpy *) excludes Makefile{.am,.in}:
|
|
|
|
%doc apidoc/html/*.{html,png,css,js}
|
2018-04-18 15:12:40 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
2013-03-21 12:47:33 +00:00
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?with_python3}
|
2017-09-06 09:56:48 +00:00
|
|
|
%files -n python3-satyr
|
2015-06-09 20:02:07 +00:00
|
|
|
%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
|
2019-10-11 11:29:15 +00:00
|
|
|
* Fri Oct 11 2019 Matěj Grabovský <mgrabovs@redhat.com> 0.29-1
|
|
|
|
- spec: Switch sources tarball compression from xz to gzip
|
|
|
|
- spec: Replace xargs rm with delete
|
|
|
|
- spec: Remove provides for satyr-python3
|
|
|
|
- spec: Replace make with rpm macros
|
|
|
|
- Replace bundled JSON parser with json-c
|
|
|
|
- lib: normalize: Hash removable function names
|
|
|
|
- rpm: Fix typo in a static function name
|
|
|
|
- json: Improve error messages on EOF
|
|
|
|
- json: Use backticks consistently in error messages
|
|
|
|
- json,style: Improve code style consistency slightly
|
|
|
|
- json: Update to latest upstream version
|
|
|
|
- core: Document unknown core frame address
|
|
|
|
- style: Correct parenthesization for bitfield tests
|
|
|
|
- style: Use specific integer types instead of the generic int
|
|
|
|
- style: Use *_MAX constants instead of -1 in unsigned comparisons
|
|
|
|
|
2019-10-03 12:38:26 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28-4
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-19 09:05:27 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 22:41:53 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-21 13:21:06 +00:00
|
|
|
* Fri Jun 21 2019 Ernestas Kulik <ekulik@redhat.com> - 0.28-1
|
|
|
|
- New version 0.28
|
|
|
|
|
2019-06-10 22:13:23 +00:00
|
|
|
* Mon Jun 10 22:13:23 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27-4
|
|
|
|
- Rebuild for RPM 4.15
|
|
|
|
|
2019-06-10 15:42:05 +00:00
|
|
|
* Mon Jun 10 15:42:05 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27-3
|
|
|
|
- Rebuild for RPM 4.15
|
|
|
|
|
2019-02-02 14:47:03 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-08 11:10:26 +00:00
|
|
|
* Mon Oct 8 2018 Martin Kutlak <mkutlak@redhat.com> 0.27-1
|
|
|
|
- New upstream version
|
|
|
|
- Improve format of truncated backtrace for Python and core
|
|
|
|
|
2018-07-14 05:43:05 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-29 13:20:15 +00:00
|
|
|
* Fri Jun 29 2018 Matej Habrnal <mhabrnal@redhat.com> 0.26-3
|
|
|
|
- Anonymize paths in frames
|
|
|
|
- Test fix: correct syntax for gdb backtrace command
|
|
|
|
|
2018-06-19 09:27:06 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.26-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
* Tue Apr 17 2018 Matej Habrnal <mhabrnal@redhat.com> 0.26-1
|
|
|
|
- spec: fix Allow python2 to be optional at build time
|
|
|
|
- Allow python2 to be optional at build time
|
|
|
|
- normalization: actualize list of functions
|
2018-03-27 14:40:33 +00:00
|
|
|
- Append Python interpreter as related package
|
2018-04-18 15:12:40 +00:00
|
|
|
- makefile: create .tar.xz with make release
|
2018-03-27 14:40:33 +00:00
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
* Thu Jan 18 2018 Martin Kutlak <mkutlak@redhat.com> 0.25-1
|
2018-01-19 14:32:26 +00:00
|
|
|
- New upstream version
|
2018-04-18 15:12:40 +00:00
|
|
|
- Normalization: actualize list of functions
|
|
|
|
- Fix some compilation warnings
|
|
|
|
- Allow to build python3 for rhel8
|
|
|
|
- Makefile: add make release-* subcommands
|
|
|
|
- Elfutils: Add missing stubs from earlier commit
|
2017-12-04 11:49:09 +00:00
|
|
|
|
2017-11-01 14:53:06 +00:00
|
|
|
* Wed Nov 1 2017 Julius Milan <jmilan@redhat.com> 0.24-1
|
|
|
|
- New upstream version
|
|
|
|
- Allow to report unpackaged problems
|
|
|
|
- apidoc: generate html docs using doxygen
|
|
|
|
- Fix parsing of subset of arm kernel oopses
|
|
|
|
|
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
|
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
* Thu Dec 1 2016 Jakub Filak <jakub@thefilaks.net> 0.22-1
|
2016-12-15 06:29:54 +00:00
|
|
|
- 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>
|
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
* Wed May 18 2016 Matej Habrnal <mhabrnal@redhat.com> 0.21-1
|
2016-05-18 11:48:13 +00:00
|
|
|
- New upstream version
|
|
|
|
- Introduce 'serial' field in uReport
|
|
|
|
- normalization: actualize list of functions
|