@@ -2,43 +2,40 @@ Vendor: Microsoft Corporation
22Distribution: Azure Linux
33%bcond_without python3
44
5+ %define libdw_devel elfutils-devel
6+ %define libelf_devel elfutils-libelf-devel
57
6- %if 0%{?suse_version }
7- %define libdw_devel libdw-devel
8- %define libelf_devel libelf-devel
9- %else
10- %define libdw_devel elfutils-devel
11- %define libelf_devel elfutils-libelf-devel
12- %endif
8+ %define glib_ver 2.43.4
139
1410Name: satyr
15- Version: 0.30
16- Release: 3 %{?dist }
11+ Version: 0.43
12+ Release: 1 %{?dist }
1713Summary: Tools to create anonymous, machine-friendly problem reports
18- License: GPLv2+
14+ License: GPL-2.0 -or-later
1915URL: https://github.com/abrt/satyr
20- Source0: https://github.com/abrt/%{name }/archive /%{version }/%{name }-%{version }.tar.gz
16+ Source0: https://github.com/abrt/%{name }/releases/download /%{version }/%{name }-%{version }.tar.gz
2117%if %{with python3 }
2218BuildRequires: python3-devel
23- %endif # with python3
19+ %endif
2420BuildRequires: %{libdw_devel }
2521BuildRequires: %{libelf_devel }
2622BuildRequires: binutils-devel
2723BuildRequires: rpm-devel
2824BuildRequires: libtool
2925BuildRequires: doxygen
3026BuildRequires: pkgconfig
27+ BuildRequires: make
3128BuildRequires: automake
3229BuildRequires: gcc-c++
3330BuildRequires: gdb
3431BuildRequires: gperf
35- BuildRequires: nettle -devel
36- BuildRequires: pkgconfig(json-c)
32+ BuildRequires: json-c -devel
33+ BuildRequires: glib2-devel
3734%if %{with python3 }
3835BuildRequires: python3-sphinx
39- %endif # with python3
40- Requires: json-c
41- Requires: nettle
36+ %endif
37+ Requires: json-c%{? _isa }
38+ Requires: glib2%{? _isa } >= %{ glib_ver }
4239
4340%description
4441Satyr is a library that can be used to create and process microreports.
@@ -64,31 +61,32 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
6461
6562%description -n python3-satyr
6663Python 3 bindings for %{name }.
67- %endif # if with python3
64+ %endif
6865
6966%prep
7067%setup -q
7168
7269%build
70+ autoreconf
71+
7372%configure \
7473%if %{without python3}
7574 --without-python3 \
76- %endif # with python3
75+ %endif
7776 --disable-static \
7877 --enable-doxygen-docs
7978
8079%make_build
81-
8280%install
8381%make_install
84-
8582# Remove all libtool archives (*.la) from modules directory.
8683find %{buildroot } -name " *.la" -delete
8784
8885%check
8986make check|| {
9087 # find and print the logs of failed test
9188 # do not cat tests/testsuite.log because it contains a lot of bloat
89+ cat tests/test-suite.log
9290 find tests/testsuite.dir -name " testsuite.log" -print -exec cat ' {}' \;
9391 exit 1
9492}
@@ -97,7 +95,7 @@ make check|| {
9795%postun -p /sbin/ldconfig
9896
9997%files
100- %doc README NEWS
98+ %doc README.md NEWS
10199%license COPYING
102100%{_bindir }/satyr
103101%{_mandir }/man1/%{name }.1*
@@ -117,6 +115,10 @@ make check|| {
117115%endif
118116
119117%changelog
118+ * Tue Nov 12 2024 Sumit Jena <v-sumitjena@microsoft.com> - 0.43-1
119+ - Update to version 0.43
120+ - License verified.
121+
120122* Tue Jan 12 2021 Joe Schmitt <joschmit@microsoft.com> - 0.30-3
121123- Initial CBL-Mariner import from Fedora 31 (license: MIT).
122124- Build with python3
0 commit comments