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)")}
|
|
|
|
|
2017-12-04 11:49:09 +00:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
2015-09-17 13:35:17 +00:00
|
|
|
%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
|
2018-01-19 14:32:26 +00:00
|
|
|
Version: 0.25
|
2018-03-27 14:40:33 +00:00
|
|
|
Release: 4%{?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
|
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
|
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-02-12 08:43:20 +00:00
|
|
|
BuildRequires: python2-sphinx
|
2013-09-12 09:16:06 +00:00
|
|
|
|
2018-03-27 14:40:33 +00:00
|
|
|
#Patch0001: 0001-ldconfig-is-not-needed-in-rawhide.patch
|
|
|
|
#Patch0002: 0002-mark-license-as-license.patch
|
|
|
|
#Patch0003: 0003-we-do-not-build-for-el6-any-more.patch
|
|
|
|
#Patch0004: 0004-remove-Groups.patch
|
|
|
|
#Patch0005: 0005-remove-2-years-old-changelog-entries.patch
|
|
|
|
#Patch0006: 0006-makefile-create-.tar.xz-with-make-release.patch
|
|
|
|
#Patch0007: 0007-spec-Update-Python-2-dependency-declarations.patch
|
|
|
|
Patch0008: 0008-Append-Python-interpreter-as-related-package.patch
|
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}.
|
|
|
|
|
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}
|
|
|
|
Obsoletes: %{name}-python < %{version}-%{release}
|
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}.
|
|
|
|
|
2015-09-17 13:35:17 +00:00
|
|
|
%if 0%{?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}
|
|
|
|
Obsoletes: %{name}-python3 < %{version}-%{release}
|
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}.
|
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 \
|
2015-09-17 13:35:17 +00:00
|
|
|
%if ! %{?with_python3}
|
|
|
|
--without-python3 \
|
2013-09-12 09:16:06 +00:00
|
|
|
%endif
|
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
|
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
|
|
|
|
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*
|
2014-01-09 19:39:04 +00:00
|
|
|
%{_libdir}/libsatyr.so.3*
|
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}
|
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
|
|
|
|
2017-08-19 13:44:09 +00:00
|
|
|
%files -n python2-satyr
|
2013-03-21 12:47:33 +00:00
|
|
|
%dir %{python_sitearch}/%{name}
|
|
|
|
%{python_sitearch}/%{name}/*
|
2013-09-12 09:16:06 +00:00
|
|
|
%{_mandir}/man3/satyr-python.3*
|
|
|
|
|
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-03-27 14:40:33 +00:00
|
|
|
* Tue Mar 27 2018 Martin Kutlak <mkutlak@redhat.com> - 0.25-4
|
|
|
|
- Modernize spec file
|
|
|
|
- Append Python interpreter as related package
|
|
|
|
|
2018-02-12 08:43:20 +00:00
|
|
|
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.25-3
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 16:06:48 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-19 14:32:26 +00:00
|
|
|
* Fri Jan 19 2018 Martin Kutlak <mkutlak@redhat.com> 0.25-1
|
|
|
|
- New upstream version
|
|
|
|
- Add more normalized functions to the list (#1509086)
|
|
|
|
|
2017-12-04 11:49:09 +00:00
|
|
|
* Mon Dec 04 2017 Matej Habrnal <mhabrnal@redhat.com> 0.24-2
|
|
|
|
- actualize list of normalized functions (#1509086)
|
|
|
|
- elfutils: Add missing stubs from earlier commit
|
|
|
|
|
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-09-06 09:56:48 +00:00
|
|
|
* Wed Sep 6 2017 Martin Kutlak <mkutlak@redhat.com> - 0.23-9
|
|
|
|
- Python 3 binary package renamed to python3-satyr
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-08-20 14:42:41 +00:00
|
|
|
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.23-8
|
|
|
|
- Add Provides for the old name without %%_isa
|
|
|
|
|
2017-08-19 13:44:09 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.23-7
|
|
|
|
- Python 2 binary package renamed to python2-satyr
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-08-11 07:50:31 +00:00
|
|
|
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.23-6
|
|
|
|
- Rebuilt after RPM update (№ 3)
|
|
|
|
|
2017-08-10 20:13:40 +00:00
|
|
|
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.23-5
|
|
|
|
- Rebuilt for RPM soname bump
|
|
|
|
|
2017-08-10 18:33:17 +00:00
|
|
|
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.23-4
|
|
|
|
- Rebuilt for RPM soname bump
|
|
|
|
|
2017-08-03 08:07:16 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 18:08:54 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.23-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
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
|