* Fix crash while creating mapper for a volume which lacks of
partitions
* Make libldm to parse and return volume GUID
* Change the way we sanitise LDM partition name
* Set UUID for device mapper devices (partitions and volumes)
* Fix potential memory leak
* Use device mapper device UUID instead of name to find device in
a tree
* New API: ldm_volume_dm_get_device
* New API: ldm_partition_dm_get_device
* Fix bug in libldm to allow for all spanned LDM volumes to bex
correctly identified/mounted
- Upstream fixes post 0.2.5
001-Add-example-systemd-unit-file.patch
002-ldmtool-fix-NULL-pointer-dereference.patch
003-Add-ability-to-override-device-mapper-UUID.patch
004-src-Fix-declaration-of-ldm_new.patch
005-Update-gtkdocize.patch
- Drop patch contained in new tarball
Remove-deprecated-g_type_class_add_private.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/ldmtool?expand=0&rev=18
108 lines
3.1 KiB
RPMSpec
108 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package ldmtool
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define srcname libldm
|
|
%define sover 1_0-0
|
|
|
|
Name: ldmtool
|
|
Version: 0.2.5
|
|
Release: 0
|
|
Summary: A tool to manage Windows dynamic disks
|
|
License: GPL-3.0-only
|
|
Group: System/Base
|
|
|
|
URL: https://github.com/mdbooth/libldm
|
|
Source0: %{srcname}-%{version}.tar.gz
|
|
Patch1: 001-Add-example-systemd-unit-file.patch
|
|
Patch2: 002-ldmtool-fix-NULL-pointer-dereference.patch
|
|
Patch3: 003-Add-ability-to-override-device-mapper-UUID.patch
|
|
Patch4: 004-src-Fix-declaration-of-ldm_new.patch
|
|
Patch5: 005-Update-gtkdocize.patch
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: device-mapper-devel >= 1.0
|
|
BuildRequires: glib2-devel >= 2.38.0
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: json-glib-devel >= 0.14.0
|
|
BuildRequires: libtool
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: zlib-devel
|
|
|
|
Requires: %{srcname}-%{sover} = %{version}-%{release}
|
|
|
|
%description
|
|
Command-line tool for managing Microsoft Windows dynamic disks, which use
|
|
Microsoft's LDM metadata. It can inspect them, and also create and remove
|
|
device-mapper block devices which can be mounted.
|
|
|
|
%package -n %{srcname}-%{sover}
|
|
Summary: Library to manage Windows dynamic disks
|
|
License: LGPL-3.0-only
|
|
Group: System/Libraries
|
|
|
|
%description -n %{srcname}-%{sover}
|
|
Library for managing Microsoft Windows dynamic disks, which use Microsoft's
|
|
LDM metadata. It can inspect them, and also create and remove device-mapper
|
|
block devices which can be mounted.
|
|
|
|
%package -n %{srcname}-%{sover}-devel
|
|
Summary: Development files for %{name}
|
|
License: LGPL-3.0-only
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{srcname}-%{sover} = %{version}-%{release}
|
|
|
|
%description -n %{srcname}-%{sover}-devel
|
|
Contains libraries and header files for developing applications using
|
|
%{srcname}.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
|
%build
|
|
gtkdocize
|
|
autoreconf -fiv
|
|
%configure --disable-static --enable-gtk-doc
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
find "%buildroot" -type f -name '*.la' -delete
|
|
|
|
%post -n %{srcname}-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{srcname}-%{sover} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING.gpl
|
|
%{_bindir}/ldmtool
|
|
%{_mandir}/man1/ldmtool.1.gz
|
|
|
|
%files -n %{srcname}-%{sover}
|
|
%license COPYING.lgpl
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n %{srcname}-%{sover}-devel
|
|
%{_includedir}/ldm.h
|
|
%{_libdir}/libldm*.so
|
|
%{_libdir}/pkgconfig/ldm-1.0.pc
|
|
%{_datadir}/gtk-doc
|
|
|
|
%changelog
|