2018-04-18 15:12:40 +00:00
|
|
|
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2013-03-21 12:47:33 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
|
|
|
|
# Disable python2 build by default
|
|
|
|
%bcond_with python2
|
|
|
|
%else
|
|
|
|
%bcond_without python2
|
2015-09-17 13:35:17 +00:00
|
|
|
%endif
|
|
|
|
|
2013-12-10 16:36:11 +00:00
|
|
|
%if 0%{?suse_version}
|
2018-04-18 15:12:40 +00:00
|
|
|
%define python2_sitearch %{python_sitearch}
|
2013-12-10 16:36:11 +00:00
|
|
|
%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
|
2018-04-18 15:12:40 +00:00
|
|
|
Version: 0.26
|
2018-06-19 09:27:06 +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
|
2017-03-14 16:28:32 +00:00
|
|
|
Source0: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.xz
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python2}
|
2013-12-10 16:36:11 +00:00
|
|
|
BuildRequires: %{python2_devel}
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # with python2
|
|
|
|
%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
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python2}
|
2018-02-12 08:43:20 +00:00
|
|
|
BuildRequires: python2-sphinx
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # with python2
|
|
|
|
%if %{with python3}
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
%endif # with python3
|
2017-12-04 11:49:09 +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 python2}
|
2017-08-19 13:44:09 +00:00
|
|
|
%package -n python2-satyr
|
|
|
|
%{?python_provide:%python_provide python2-satyr}
|
|
|
|
# Remove before F30
|
2017-08-20 14:42:41 +00:00
|
|
|
Provides: %{name}-python = %{version}-%{release}
|
2017-08-19 13:44:09 +00:00
|
|
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
2018-04-18 15:12:40 +00:00
|
|
|
Obsoletes: %{name}-python < 0.24
|
2013-03-21 12:47:33 +00:00
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
2017-08-19 13:44:09 +00:00
|
|
|
%description -n python2-satyr
|
2013-03-21 12:47:33 +00:00
|
|
|
Python bindings for %{name}.
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif #with python2
|
2013-03-21 12:47:33 +00:00
|
|
|
|
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}
|
|
|
|
# Remove before F30
|
|
|
|
Provides: %{name}-python3 = %{version}-%{release}
|
|
|
|
Provides: %{name}-python3%{?_isa} = %{version}-%{release}
|
2018-04-18 15:12:40 +00:00
|
|
|
Obsoletes: %{name}-python3 < 0.24
|
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
|
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 \
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{without python2}
|
|
|
|
--without-python2 \
|
|
|
|
%endif # with python2
|
|
|
|
%if %{without python3}
|
2015-09-17 13:35:17 +00:00
|
|
|
--without-python3 \
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # with python3
|
|
|
|
%{?_without_python2} \
|
2017-11-01 14:53:06 +00:00
|
|
|
--disable-static \
|
|
|
|
--enable-doxygen-docs
|
2013-09-12 09:16:06 +00:00
|
|
|
|
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
|
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
|
|
|
|
2018-04-18 15:12:40 +00:00
|
|
|
%if %{with python2}
|
2017-08-19 13:44:09 +00:00
|
|
|
%files -n python2-satyr
|
2018-04-18 15:12:40 +00:00
|
|
|
%dir %{python2_sitearch}/%{name}
|
|
|
|
%{python2_sitearch}/%{name}/*
|
2013-09-12 09:16:06 +00:00
|
|
|
%{_mandir}/man3/satyr-python.3*
|
2018-04-18 15:12:40 +00:00
|
|
|
%endif # with python2
|
2013-09-12 09:16:06 +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
|
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
|