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
|
|
|
|
|
2020-11-24 20:13:25 +00:00
|
|
|
%define glib_ver 2.43.4
|
|
|
|
|
2013-03-21 12:47:33 +00:00
|
|
|
Name: satyr
|
2021-01-12 10:48:21 +00:00
|
|
|
Version: 0.36
|
2021-01-27 19:56:00 +00:00
|
|
|
Release: 2%{?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
|
2020-11-24 20:13:25 +00:00
|
|
|
Source0: https://github.com/abrt/%{name}/releases/download/%{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
|
2020-11-24 20:13:25 +00:00
|
|
|
BuildRequires: make
|
2013-12-10 16:36:11 +00:00
|
|
|
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
|
2020-02-06 10:11:24 +00:00
|
|
|
BuildRequires: nettle-devel
|
2020-11-24 20:13:25 +00:00
|
|
|
BuildRequires: json-c-devel
|
|
|
|
BuildRequires: glib2-devel
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
%endif # with python3
|
2020-08-18 14:17:32 +00:00
|
|
|
Requires: json-c%{?_isa}
|
|
|
|
Requires: nettle%{?_isa}
|
2020-11-24 20:13:25 +00:00
|
|
|
Requires: glib2%{?_isa} >= %{glib_ver}
|
2018-06-29 13:20:15 +00:00
|
|
|
|
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
|
2020-02-06 10:11:24 +00:00
|
|
|
%setup -q
|
2013-03-21 12:47:33 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-11 14:18:24 +00:00
|
|
|
autoreconf
|
|
|
|
|
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
|
2020-11-24 20:13:25 +00:00
|
|
|
cat tests/test-suite.log
|
2015-02-20 11:36:21 +00:00
|
|
|
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
|
2020-11-24 20:13:25 +00:00
|
|
|
%doc README.md NEWS
|
2018-03-27 14:40:33 +00:00
|
|
|
%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
|
2021-01-27 19:56:00 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.36-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-12 10:48:21 +00:00
|
|
|
* Tue Jan 12 2021 Michal Fabik <mfabik@redhat.com> 0.36-1
|
|
|
|
- New upstream version
|
|
|
|
- Fix builds with python3.10
|
|
|
|
|
2021-01-11 14:18:24 +00:00
|
|
|
* Mon Jan 11 2021 Michal Fabik <mfabik@redhat.com> - 0.35-2
|
|
|
|
- Add fix for https://bugzilla.redhat.com/show_bug.cgi?id=1898063
|
|
|
|
|
2020-11-24 20:13:25 +00:00
|
|
|
* Tue Dec 01 2020 Michal Fabik <mfabik@redhat.com> 0.35-1
|
|
|
|
- New upstream version
|
|
|
|
- Fix leaks in koops stacktrace- and report-handling code
|
|
|
|
- Replace utility code with GLib functions
|
|
|
|
- Fix unit test portability issue
|
|
|
|
- Add build dependency on make
|
|
|
|
|
2020-08-18 12:41:10 +00:00
|
|
|
* Tue Aug 18 2020 Michal Fabik <mfabik@redhat.com> - 0.31-1
|
|
|
|
- Remove #define PyString_AsString PyUnicode_AsUTF8
|
|
|
|
- python: Adapt to changes made in PEP 590
|
|
|
|
|
2020-07-29 10:14:12 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:49:56 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.30-4
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-04-21 19:42:46 +00:00
|
|
|
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 0.30-3
|
|
|
|
- Rebuild (json-c)
|
|
|
|
|
2020-02-07 08:01:28 +00:00
|
|
|
* Fri Feb 07 2020 Ernestas Kulik <ekulik@redhat.com> - 0.30-2
|
|
|
|
- Bump for side tag rebuild
|
|
|
|
|
2020-02-06 10:11:24 +00:00
|
|
|
* Thu Feb 06 2020 Michal Fabik <mfabik@redhat.com> - 0.30-1
|
|
|
|
- Fix registers being parsed as modules in kernel oopses in some cases
|
|
|
|
- Use Nettle for cryptographic calculations
|
|
|
|
|
2020-01-30 14:15:01 +00:00
|
|
|
* Thu Jan 30 2020 Martin Kutlak <mkutlak@redhat.com> - 0.29-3
|
|
|
|
- Add patch to fix build failure with gcc -fno-common
|
|
|
|
- Resolves: #1796384
|
|
|
|
|
2019-11-11 08:29:04 +00:00
|
|
|
* Mon Nov 11 2019 Ernestas Kulik <ekulik@redhat.com> - 0.29-2
|
|
|
|
- Add patch for https://bugzilla.redhat.com/show_bug.cgi?id=1518943
|
|
|
|
|
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
|