2024-11-20 13:21:19 +00:00
|
|
|
## START: Set by rpmautospec
|
|
|
|
## (rpmautospec version 0.6.1)
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
release_number = 5;
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
2024-04-01 13:28:14 +00:00
|
|
|
%global mainlibsover 10
|
|
|
|
%global addrlibsover 3
|
|
|
|
|
|
|
|
Name: libkdumpfile
|
2024-11-20 13:21:19 +00:00
|
|
|
Version: 0.5.4
|
|
|
|
Release: %autorelease
|
2024-04-01 13:28:14 +00:00
|
|
|
Summary: Kernel coredump file access
|
|
|
|
|
|
|
|
License: LGPL-3.0-or-later OR GPL-2.0-or-later
|
|
|
|
URL: https://github.com/ptesarik/libkdumpfile
|
|
|
|
Source: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2024-11-20 13:21:19 +00:00
|
|
|
Patch0: libkdumpfile-c99.patch
|
2024-04-01 13:28:14 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: libzstd-devel
|
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: snappy-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
libkdumpfile is a library to read kdump-compressed kernel core dumps.}
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
# keep this until F38 is EOL (so Fedora < 41) as 0.5.1 was not noarch due to
|
|
|
|
# doxygen being run *after* rather than *before* build so it indexes "built"
|
|
|
|
# Python sources too
|
|
|
|
# likewise, EPEL 8 and 9 are affected
|
|
|
|
%if (0%{?fedora} && 0%{?fedora} < 41) || (0%{?rhel} && 0%{?rhel} < 10)
|
|
|
|
Obsoletes: %{name}-doc < 0.5.2-1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc %{_description}
|
|
|
|
|
|
|
|
The %{name}-doc package contains documentation for %{name}.
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python bindings for %{name}
|
|
|
|
Obsoletes: %{name}-python < 0.4.0-6
|
|
|
|
Provides: %{name}-python = %{version}-%{release}
|
|
|
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n python3-%{name} %{_description}
|
|
|
|
|
|
|
|
The python3-%{name} package contains Python bindings for %{name}.
|
|
|
|
|
|
|
|
%package util
|
|
|
|
Summary: Utilities to read kernel core dumps
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description util %{_description}
|
|
|
|
The %{name}-devel package contains misc utilities built with %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
# Remove unneeded shebang
|
|
|
|
sed -e "\|#!/usr/bin/env python|d" -i python/*/*.py
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%{__make} doxygen-doc
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
# static artifacts are needed to run tests, but we don't
|
|
|
|
# want to ship them
|
|
|
|
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%make_build check
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv3
|
|
|
|
%doc README.md NEWS
|
|
|
|
%{_libdir}/libaddrxlat.so.%{addrlibsover}{,.*}
|
|
|
|
%{_libdir}/libkdumpfile.so.%{mainlibsover}{,.*}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libaddrxlat.so
|
|
|
|
%{_libdir}/libkdumpfile.so
|
|
|
|
%{_libdir}/pkgconfig/libaddrxlat.pc
|
|
|
|
%{_libdir}/pkgconfig/libkdumpfile.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license COPYING COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv3
|
|
|
|
%doc doc/html
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%{python3_sitearch}/%{name}-%{version}-*.egg-info
|
|
|
|
%{python3_sitearch}/addrxlat/
|
|
|
|
%{python3_sitearch}/_addrxlat.*.so
|
|
|
|
%{python3_sitearch}/kdumpfile/
|
|
|
|
%{python3_sitearch}/_kdumpfile.*.so
|
|
|
|
|
|
|
|
%files util
|
|
|
|
%{_bindir}/dumpattr
|
|
|
|
%{_bindir}/listxendoms
|
|
|
|
%{_bindir}/showxlat
|
|
|
|
|
|
|
|
%changelog
|
2024-11-20 13:21:19 +00:00
|
|
|
## START: Generated by rpmautospec
|
|
|
|
* Thu May 02 2024 Philipp Rudo <prudo@redhat.com> - 0.5.4-5
|
|
|
|
- Add gating.yaml to RHEL10 libkdumpfile
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jan 04 2024 Florian Weimer <fweimer@redhat.com> - 0.5.4-2
|
|
|
|
- More complete Python 3 port for improved C compatibility
|
|
|
|
|
|
|
|
* Tue Nov 28 2023 Michel Lind <salimma@fedoraproject.org> - 0.5.4-1
|
|
|
|
- Update to 0.5.4
|
|
|
|
|
|
|
|
* Fri Nov 10 2023 Michel Lind <salimma@fedoraproject.org> - 0.5.3-1
|
|
|
|
- Update to 0.5.3
|
|
|
|
|
2024-04-01 13:28:14 +00:00
|
|
|
* Wed Jul 26 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.2-1
|
|
|
|
- Update to 0.5.2
|
|
|
|
- Use SPDX license identifiers
|
|
|
|
- Fix documentation build to be properly be noarch
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.5.1-3
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
* Tue Feb 07 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.1-2
|
|
|
|
- remove old quilt series listing
|
|
|
|
|
|
|
|
* Tue Feb 07 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.1-1
|
|
|
|
- Update to 0.5.1
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.0-3
|
|
|
|
- Minor fixes for Python 3.12 compatibility
|
|
|
|
- Fix Python unit tests to use the right assert methods
|
|
|
|
- Explicitly BR python3-setuptools
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Aug 15 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.5.0-1
|
|
|
|
- Update to 0.5.0
|
|
|
|
|
|
|
|
* Sat Aug 06 2022 Michel Alexandre Salim <michel@michel-slm.name> - 0.4.1^202208069184e5c-1
|
|
|
|
- Include diskdump endianness fix
|
|
|
|
|
|
|
|
* Fri Aug 05 2022 Michel Alexandre Salim <michel@michel-slm.name> - 0.4.1^202207144829feb-1
|
|
|
|
- Update to latest Git snapshot
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.4.1-6
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
* Thu May 19 2022 Davide Cavalca <dcavalca@fedoraproject.org> - 0.4.1-5
|
|
|
|
- Number the patches for epel8 compatibility
|
|
|
|
|
|
|
|
* Thu May 12 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.1-4
|
|
|
|
- Re-enable all tests on x86_64
|
|
|
|
|
|
|
|
* Thu May 12 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.1-3
|
|
|
|
- Disable failing tests to work around upstream issue #40
|
|
|
|
|
|
|
|
* Wed May 11 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.1-2
|
|
|
|
- Enable tests
|
|
|
|
|
|
|
|
* Thu Apr 21 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.1-1
|
|
|
|
- Update to 0.4.1
|
|
|
|
|
|
|
|
* Tue Apr 12 2022 Neal Gompa <ngompa@datto.com> - 0.4.0-6
|
|
|
|
- Update spec to comply with packaging guidelines
|
|
|
|
+ Use correct globbing for libraries in file list
|
|
|
|
+ Rename Python binding subpackage to match Python guidelines
|
|
|
|
+ Stop globbing binaries in util subpackage
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2024-11-20 13:21:19 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.4.0-3
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
* Fri Apr 2 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.4.0-2
|
|
|
|
- Fix license
|
|
|
|
|
|
|
|
* Fri Feb 26 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.4.0-1
|
|
|
|
- Initial package
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|