satyr/satyr.spec

163 lines
4.4 KiB
RPMSpec
Raw Normal View History

%define with_python3 1
2020-02-28 09:36:23 +08:00
Name: satyr
Version: 0.43
2023-02-03 07:27:53 +00:00
Release: 1
2020-02-28 09:36:23 +08:00
Summary: Tools to create anonymous, machine-friendly problem reports
License: GPLv2+
URL: https://github.com/abrt/satyr
2020-09-08 17:47:22 +08:00
Source0: https://github.com/abrt/%{name}/archive/%{version}.tar.gz
2020-02-28 09:36:23 +08:00
2021-01-29 09:54:49 +08:00
Requires: json-c nettle glib2 >= 2.43.4
2020-08-01 11:29:21 +08:00
BuildRequires: elfutils-devel elfutils-libelf-devel binutils-devel rpm-devel
2021-07-21 14:33:59 +08:00
BuildRequires: doxygen pkgconfig automake gcc-c++ git libtool
2022-02-28 16:53:15 +08:00
BuildRequires: pkgconfig(json-c) nettle nettle-devel gperf glib2-devel
# we should require gdb for test suite
BuildRequires: gdb
2019-11-06 19:52:00 +08:00
%if %{with_python3}
BuildRequires: python3-devel python3-sphinx
%endif
%description
Satyr is a collection of low-level algorithms for program failure processing,
analysis, and reporting supporting kernel space, user space, Python, and Java
programs. Considering failure processing, it allows to parse failure
description from various sources such as GDB-created stack traces, Python stack
traces with a description of uncaught exception, and kernel oops message.
Information can also be extracted from the core dumps of unexpectedly
terminated user space processes and from the machine executable code of
binaries. Considering failure analysis, the stack traces of failed processes
can be normalized, trimmed, and compared. Clusters of similar stack traces can
be calculated. In multi-threaded stack traces, the threads that caused the
failure can be discovered. Considering failure reporting, the library can
generate a failure report in a well-specified format, and the report can be
sent to a remote machine.
%package devel
Summary: Header files for satyr
Requires: %{name} = %{version}-%{release}
%description devel
Header files for satyr.
%if %{with_python3}
%package -n python3-satyr
Summary: python3 for satyr
Requires: %{name} = %{version}-%{release}
Provides: %{name}-python3 = %{version}-%{release}
Provides: %{name}-python3%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python3 < 0.24
%{?python_provide:%python_provide python3-satyr}
%description -n python3-satyr
python3 for satyr
%endif
%package_help
%prep
%define __scm_apply_git(qp:m:) %{__git} am
2020-07-27 11:35:37 +08:00
%autosetup -n %{name}-%{version} -p1
2021-01-29 09:54:49 +08:00
sed -i 's/dist_doc_DATA = README.md//' Makefile.am
2020-07-27 11:35:37 +08:00
bash autogen.sh
2021-01-29 09:54:49 +08:00
2019-11-06 19:52:00 +08:00
%build
%configure --enable-doxygen-docs
%make_build
%install
%make_install
%delete_la
2020-02-28 09:36:23 +08:00
2019-11-06 19:52:00 +08:00
%check
make check|| {
find tests/testsuite.dir -name "testsuite.log" -print -exec cat '{}' \;
exit 1
}
2020-08-01 11:29:21 +08:00
%ldconfig_scriptlets
2019-11-06 19:52:00 +08:00
%files
%defattr(-,root,root)
%license COPYING
%{_bindir}/satyr
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%if %{with_python3}
2021-01-29 09:54:49 +08:00
%files -n python3-satyr
2019-11-06 19:52:00 +08:00
%{python3_sitearch}/*
%endif
2021-01-29 09:54:49 +08:00
%files help
2019-11-06 19:52:00 +08:00
%defattr(-,root,root)
2021-01-29 09:54:49 +08:00
%doc README.md NEWS
2019-11-06 19:52:00 +08:00
%{_mandir}/*
%changelog
* Fri Mar 01 2024 wangqia <wangqia@uniontech.com> - 0.43-1
- update to 0.43
2023-07-17 08:25:20 +00:00
* Mon Jul 17 2023 zhangpan <zhangpan103@h-partners.com> - 0.42-1
- update to 0.42
2023-02-03 07:27:53 +00:00
* Fri Feb 03 2023 zhangpan <zhangpan@h-partners.com> - 0.40-1
- update to 0.40
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 0.38-4
- Rebuild for next release
2022-02-28 16:53:15 +08:00
* Tue Feb 22 2022 dongyuzhen <dongyuzhen@h-partners.com> - 0.38-3
- Test fix: add gdb buildrequires for fix core_stacktrace fail
- fix changelog
* Mon Jan 10 2022 yangcheng <yangcheng87@huawei.com> - 0.38-2
- no longer includes libstatyr.so.3
* Mon Dec 06 2021 wuchaochao <wuchaochao4@huawei.com> - 0.38-1
- update version to 0.38
2021-07-21 14:33:59 +08:00
* Wed Jul 21 2021 yushaogui <yushaogui@huawei.com> - 0.36-2
- Delete a buildrequires for gdb
2021-01-29 09:54:49 +08:00
* Fri Jan 29 2021 jinzhimin <jinzhimin2@huawei.com> - 0.36-1
- Upgrade to 0.36
2020-09-08 17:47:22 +08:00
* Tue Sep 8 2020 hanhui <hanhui15@huawei.com> - 0.30-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source url
2020-07-27 14:45:50 +08:00
* Mon Jul 27 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.30-1
- update package
2020-02-28 09:36:23 +08:00
* Fri Feb 28 2020 hexiujun <hexiujun1@huawei.com> - 0.27-5
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:use python2 explicitly in configure
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.27-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add the definition of with_python2 and with_python3
2019-12-31 17:03:39 +08:00
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.27-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization
2019-11-06 19:52:00 +08:00
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.27-2
- Package init