Sync from SUSE:ALP:Source:Standard:1.0 libkdumpfile revision fcbad62fb4fb2eabc46e9de0c0db4da0

This commit is contained in:
Adrian Schröter 2024-03-15 15:56:29 +01:00
parent 35f9696d8a
commit 5c34efbfd0
4 changed files with 23 additions and 105 deletions

BIN
libkdumpfile-0.5.2.tar.xz (Stored with Git LFS)

Binary file not shown.

BIN
libkdumpfile-0.5.4.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Sun Nov 19 11:08:18 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Upgrade to libkdumpfile version 0.5.4
* Full support for 64-bit RISC-V.
* Improve error messages (detailed OS error, optional file names)
* Bug fixes and minor performance tweaks.
-------------------------------------------------------------------
Wed Nov 8 06:50:42 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Do not build Python bindings.
-------------------------------------------------------------------
Mon Nov 6 14:27:10 UTC 2023 - Petr Tesařík <petr@tesarici.cz>
- Upgrade to libkdumpfile version 0.5.3
* Support flattened KDUMP format.
-------------------------------------------------------------------
Mon Jul 17 10:04:11 UTC 2023 - Petr Tesařík <petr@tesarici.cz>

View File

@ -29,26 +29,11 @@
%endif
%endif
# There was no Python single-spec before SLE15
%if %{defined pythons}
%define new_python_macros 1
%else
%define new_python_macros 0
%define python_module() python-%{**} python3-%{**}
%define ifpython2 %if 0
%define python_build python setup.py build
%define python_install python setup.py install --skip-build --root %{?buildroot}
%define python3_build python3 setup.py build
%define python3_install python3 setup.py install --skip-build --root %{?buildroot}
%endif
#
# End compatibility cruft
%define oldpython python
Name: libkdumpfile
Version: 0.5.2
Version: 0.5.4
Release: 0
%if "%name" == "libkdumpfile"
Summary: Kernel dump file access library
@ -68,54 +53,16 @@ BuildRequires: libtool
%if %{have_zstd}
BuildRequires: libzstd-devel
%endif
BuildRequires: %{python_module devel}
BuildRequires: lzo-devel
BuildRequires: pkgconfig
BuildRequires: snappy-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%ifpython2
Provides: %{oldpython}-libaddrxlat = %{version}-%{release}
Obsoletes: %{oldpython}-libaddrxlat < %{version}-%{release}
%endif
%if %new_python_macros
%python_subpackages
%endif
%description
%if "%name" == "libkdumpfile"
A library that provides an abstraction layer for reading kernel dump
core files. It supports different kernel dump core formats, virtual
to physical translation, Xen mappings and more.
%else
This package contains all necessary python modules to use libkdumpfile via
the Python interpreter.
%endif
%if !%new_python_macros
%package -n python2-libkdumpfile
Summary: Python interface for libkdumpfile
Group: Development/Languages/Python
Provides: python-libkdumpfile = %{version}-%{release}
Obsoletes: python-libkdumpfile < %{version}-%{release}
Provides: python-libaddrxlat = %{version}-%{release}
Obsoletes: python-libaddrxlat < %{version}-%{release}
%description -n python2-libkdumpfile
This package contains all necessary python modules to use libkdumpfile via
the Python interpreter.
%package -n python3-libkdumpfile
Summary: Python interface for libkdumpfile
Group: Development/Languages/Python
%description -n python3-libkdumpfile
This package contains all necessary python modules to use libkdumpfile via
the Python interpreter.
%endif
%package -n %{name}-devel
Summary: Include files and libraries for libkdumpfile development
@ -167,28 +114,9 @@ aclocal
autoreconf -fvi
%configure --disable-static --without-python
make %{?_smp_mflags}
cd python
%if %new_python_macros
%{python_expand # Build for each Python version
rm -f setup.cfg
make setup.cfg DESTDIR=%{?buildroot} pyexecdir=%{$python_sitearch}
%$python_build
}
%else
make setup.cfg DESTDIR=%{?buildroot} pyexecdir=%{python_sitearch}
%python_build
rm -f setup.cfg
make setup.cfg DESTDIR=%{?buildroot} pyexecdir=%{python3_sitearch}
%python3_build
%endif
%install
%make_install
cd python
%python_install
%if !%new_python_macros
%python3_install
%endif
# Do not install example code
rm -v %{?buildroot}%{_bindir}/dumpattr
@ -197,17 +125,6 @@ rm -v %{?buildroot}%{_bindir}/showxlat
# Remove Libtool files
rm -v %{?buildroot}%{_libdir}/libkdumpfile.la
rm -v %{?buildroot}%{_libdir}/libaddrxlat.la
%if %new_python_macros
%{python_expand # Libtool files for extension modules
rm -v %{?buildroot}%{$python_sitearch}/_kdumpfile*.la
rm -v %{?buildroot}%{$python_sitearch}/_addrxlat*.la
}
%else
rm -v %{?buildroot}%{python_sitearch}/_kdumpfile*.la
rm -v %{?buildroot}%{python_sitearch}/_addrxlat*.la
rm -v %{?buildroot}%{python3_sitearch}/_kdumpfile*.la
rm -v %{?buildroot}%{python3_sitearch}/_addrxlat*.la
%endif
%post -n libkdumpfile10 -p /sbin/ldconfig
@ -242,22 +159,4 @@ rm -v %{?buildroot}%{python3_sitearch}/_addrxlat*.la
%{_libdir}/libaddrxlat.so
%{_libdir}/pkgconfig/libaddrxlat.pc
%if %new_python_macros
%files %{python_files}
%defattr(-,root,root)
%{python_sitearch}/*
%else
%files -n python2-libkdumpfile
%defattr(-,root,root)
%{python_sitearch}/*
%files -n python3-libkdumpfile
%defattr(-,root,root)
%{python3_sitearch}/*
%endif
%changelog