Blame SPECS/satyr.spec

846271
%if 0%{?fedora} || 0%{?rhel} > 7
846271
# Enable python3 build by default
846271
%bcond_without python3
846271
%else
846271
%bcond_with python3
846271
%endif
846271
846271
%if 0%{?suse_version}
846271
  %define libdw_devel libdw-devel
846271
  %define libelf_devel libelf-devel
846271
%else
846271
  %define libdw_devel elfutils-devel
846271
  %define libelf_devel elfutils-libelf-devel
846271
%endif
846271
846271
%define glib_ver 2.43.4
846271
846271
Name: satyr
846271
Version: 0.38
683562
Release: 3%{?dist}
846271
Summary: Tools to create anonymous, machine-friendly problem reports
846271
License: GPLv2+
846271
URL: https://github.com/abrt/satyr
846271
Source0: https://github.com/abrt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
846271
%if %{with python3}
846271
BuildRequires: python3-devel
846271
%endif
846271
BuildRequires: %{libdw_devel}
846271
BuildRequires: %{libelf_devel}
846271
BuildRequires: binutils-devel
846271
BuildRequires: rpm-devel
846271
BuildRequires: libtool
846271
BuildRequires: doxygen
846271
BuildRequires: pkgconfig
846271
BuildRequires: make
846271
BuildRequires: automake
846271
BuildRequires: gcc-c++
846271
BuildRequires: gdb
846271
BuildRequires: gperf
846271
BuildRequires: json-c-devel
846271
BuildRequires: glib2-devel
846271
%if %{with python3}
846271
BuildRequires: python3-sphinx
846271
%endif
846271
Requires: json-c%{?_isa}
846271
Requires: glib2%{?_isa} >= %{glib_ver}
846271
846271
%description
846271
Satyr is a library that can be used to create and process microreports.
846271
Microreports consist of structured data suitable to be analyzed in a fully
846271
automated manner, though they do not necessarily contain sufficient information
846271
to fix the underlying problem. The reports are designed not to contain any
846271
potentially sensitive data to eliminate the need for review before submission.
846271
Included is a tool that can create microreports and perform some basic
846271
operations on them.
846271
846271
%package devel
846271
Summary: Development libraries for %{name}
846271
Requires: %{name}%{?_isa} = %{version}-%{release}
846271
846271
%description devel
846271
Development libraries and headers for %{name}.
846271
846271
%if %{with python3}
846271
%package -n python3-satyr
846271
%{?python_provide:%python_provide python3-satyr}
846271
Summary: Python 3 bindings for %{name}
846271
Requires: %{name}%{?_isa} = %{version}-%{release}
846271
846271
%description -n python3-satyr
846271
Python 3 bindings for %{name}.
846271
%endif
846271
846271
%prep
846271
%setup -q
846271
846271
%build
846271
autoreconf
846271
846271
%configure \
846271
%if %{without python3}
846271
        --without-python3 \
846271
%endif
846271
        --disable-static \
846271
        --enable-doxygen-docs
846271
846271
%make_build
846271
846271
%install
846271
%make_install
846271
846271
# Remove all libtool archives (*.la) from modules directory.
846271
find %{buildroot} -name "*.la" -delete
846271
846271
%check
846271
make check|| {
846271
    # find and print the logs of failed test
846271
    # do not cat tests/testsuite.log because it contains a lot of bloat
846271
    cat tests/test-suite.log
846271
    find tests/testsuite.dir -name "testsuite.log" -print -exec cat '{}' \;
846271
    exit 1
846271
}
846271
846271
%if 0%{?fedora} > 27
846271
# ldconfig is not needed
846271
%else
846271
%post -p /sbin/ldconfig
846271
%postun -p /sbin/ldconfig
846271
%endif
846271
846271
%files
846271
%doc README.md NEWS
846271
%license COPYING
846271
%{_bindir}/satyr
846271
%{_mandir}/man1/%{name}.1*
846271
%{_libdir}/lib*.so.*
846271
846271
%files devel
846271
# The complex pattern below (instead of simlpy *) excludes Makefile{.am,.in}:
846271
%doc apidoc/html/*.{html,png,css,js}
846271
%{_includedir}/*
846271
%{_libdir}/lib*.so
846271
%{_libdir}/pkgconfig/*
846271
846271
%if 0%{?with_python3}
846271
%files -n python3-satyr
846271
%dir %{python3_sitearch}/%{name}
846271
%{python3_sitearch}/%{name}/*
846271
%endif
846271
846271
%changelog
683562
* Fri Dec 10 2021 Michal Fabik <mfabik@redhat.com> - 0.38-3
683562
- Rebuild against json-c-0.14-11
683562
  Related: rhbz#2023326
683562
846271
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.38-2
846271
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
846271
  Related: rhbz#1991688
846271
846271
* Fri Jun 18 2021 Michal Fabik <mfabik@redhat.com> 0.38-1
846271
- New upstream version
846271
 - lib: Use GLib for computing SHA-1 digests
846271
 - sr_distances_cluster_objects: Check arg safety
846271
846271
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.36-3
846271
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
846271
846271
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.36-2
846271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
846271
846271
* Tue Jan 12 2021 Michal Fabik <mfabik@redhat.com> 0.36-1
846271
- New upstream version
846271
 - Fix builds with python3.10
846271
846271
* Mon Jan 11 2021 Michal Fabik <mfabik@redhat.com> - 0.35-2
846271
- Add fix for https://bugzilla.redhat.com/show_bug.cgi?id=1898063
846271
846271
* Tue Dec 01 2020 Michal Fabik <mfabik@redhat.com> 0.35-1
846271
- New upstream version
846271
 - Fix leaks in koops stacktrace- and report-handling code
846271
 - Replace utility code with GLib functions
846271
 - Fix unit test portability issue
846271
 - Add build dependency on make
846271
846271
* Tue Aug 18 2020 Michal Fabik <mfabik@redhat.com> - 0.31-1
846271
- Remove #define PyString_AsString PyUnicode_AsUTF8
846271
- python: Adapt to changes made in PEP 590
846271
846271
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-5
846271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
846271
846271
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.30-4
846271
- Rebuilt for Python 3.9
846271
846271
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 0.30-3
846271
- Rebuild (json-c)
846271
846271
* Fri Feb 07 2020 Ernestas Kulik <ekulik@redhat.com> - 0.30-2
846271
- Bump for side tag rebuild
846271
846271
* Thu Feb 06 2020 Michal Fabik <mfabik@redhat.com> - 0.30-1
846271
- Fix registers being parsed as modules in kernel oopses in some cases
846271
- Use Nettle for cryptographic calculations
846271
846271
* Thu Jan 30 2020 Martin Kutlak <mkutlak@redhat.com> - 0.29-3
846271
- Add patch to fix build failure with gcc -fno-common
846271
- Resolves: #1796384
846271
846271
* Mon Nov 11 2019 Ernestas Kulik <ekulik@redhat.com> - 0.29-2
846271
- Add patch for https://bugzilla.redhat.com/show_bug.cgi?id=1518943
846271
846271
* Fri Oct 11 2019 Matěj Grabovský <mgrabovs@redhat.com> 0.29-1
846271
- spec: Switch sources tarball compression from xz to gzip
846271
- spec: Replace xargs rm with delete
846271
- spec: Remove provides for satyr-python3
846271
- spec: Replace make with rpm macros
846271
- Replace bundled JSON parser with json-c
846271
- lib: normalize: Hash removable function names
846271
- rpm: Fix typo in a static function name
846271
- json: Improve error messages on EOF
846271
- json: Use backticks consistently in error messages
846271
- json,style: Improve code style consistency slightly
846271
- json: Update to latest upstream version
846271
- core: Document unknown core frame address
846271
- style: Correct parenthesization for bitfield tests
846271
- style: Use specific integer types instead of the generic int
846271
- style: Use *_MAX constants instead of -1 in unsigned comparisons
846271
846271
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28-4
846271
- Rebuilt for Python 3.8.0rc1 (#1748018)
846271
846271
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28-3
846271
- Rebuilt for Python 3.8
846271
846271
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-2
846271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
846271
846271
* Fri Jun 21 2019 Ernestas Kulik <ekulik@redhat.com> - 0.28-1
846271
- New version 0.28
846271
846271
* Mon Jun 10 22:13:23 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27-4
846271
- Rebuild for RPM 4.15
846271
846271
* Mon Jun 10 15:42:05 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27-3
846271
- Rebuild for RPM 4.15
846271
846271
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-2
846271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
846271
846271
* Mon Oct 8 2018 Martin Kutlak <mkutlak@redhat.com> 0.27-1
846271
- New upstream version
846271
 - Improve format of truncated backtrace for Python and core
846271
846271
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-4
846271
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
846271
846271
* Fri Jun 29 2018 Matej Habrnal <mhabrnal@redhat.com> 0.26-3
846271
- Anonymize paths in frames
846271
- Test fix: correct syntax for gdb backtrace command
846271
846271
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.26-2
846271
- Rebuilt for Python 3.7
846271
846271
* Tue Apr 17 2018 Matej Habrnal <mhabrnal@redhat.com> 0.26-1
846271
- spec: fix Allow python2 to be optional at build time
846271
- Allow python2 to be optional at build time
846271
- normalization: actualize list of functions
846271
- Append Python interpreter as related package
846271
- makefile: create .tar.xz with make release
846271
846271
* Thu Jan 18 2018 Martin Kutlak <mkutlak@redhat.com> 0.25-1
846271
- New upstream version
846271
 - Normalization: actualize list of functions
846271
 - Fix some compilation warnings
846271
 - Allow to build python3 for rhel8
846271
 - Makefile: add make release-* subcommands
846271
 - Elfutils: Add missing stubs from earlier commit
846271
846271
* Wed Nov 1 2017 Julius Milan <jmilan@redhat.com> 0.24-1
846271
- New upstream version
846271
  - Allow to report unpackaged problems
846271
  - apidoc: generate html docs using doxygen
846271
  - Fix parsing of subset of arm kernel oopses
846271
846271
* Mon Mar 13 2017 Matej Habrnal <mhabrnal@redhat.com> 0.23-1
846271
- New upstream version
846271
  - Allow rpm to be optional at build time
846271
  - Do not use deprecated fedorahosted.org
846271
846271
* Thu Dec 1 2016 Jakub Filak <jakub@thefilaks.net> 0.22-1
846271
- New upstream version
846271
  - Added support fof JavaScript (V8) stack traces
846271
  - Most parts of the in-hook core unwinder callable under unprivileged user
846271
  - GDB core unwinder limits number of unwound frames
846271
  - Fixed a pair of compile warnings - Chris Redmon <credmonster@gmail.com>
846271
846271
* Wed May 18 2016 Matej Habrnal <mhabrnal@redhat.com> 0.21-1
846271
- New upstream version
846271
  - Introduce 'serial' field in uReport
846271
  - normalization: actualize list of functions