libldm/libldm.spec
jinzhiguang 378c6abdef ldmtool: fix NULL pointer dereference
Signed-off-by: jinzhiguang <jinzhiguang@kylinos.cn>
(cherry picked from commit f12db8f5cf015ce981c8e61c51fc321fa904bc4f)
2024-07-17 10:12:09 +08:00

72 lines
1.8 KiB
RPMSpec

Name: libldm
Version: 0.2.5
Release: 2
Summary: A tool and library for managing Microsoft Windows Dynamic Disks
License: LGPLv3+ and GPLv3+
URL: https://github.com/mdbooth/libldm
Source0: https://github.com/mdbooth/libldm/archive/%{name}-%{version}.tar.gz
Patch0001: 0001-ldmtool-fix-NULL-pointer-dereference.patch
BuildRequires: autoconf, automake, libtool, glib2-devel >= 2.26.0, json-glib-devel >= 0.14.0
BuildRequires: device-mapper-devel >= 1.02, zlib-devel, libuuid-devel, readline-devel, gtk-doc
%description
libldm is a tool and library for managing Microsoft Windows Dynamic Disks.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package includes development files for %{name}.
%package help
Summary: man files for %{name}
Requires: man
%description help
This package includes man files for %{name}.
%prep
%autosetup -n %{name}-%{name}-%{version} -p1
sed -i -e 's/-Werror //' src/Makefile.*
gtkdocize
autoreconf -i
%build
%configure --disable-static --enable-gtk-doc
%make_build V=1
%install
%make_install
%delete_la
%ldconfig_scriptlets
%files
%license COPYING.lgpl COPYING.gpl
%{_libdir}/*.so.*
%{_bindir}/ldmtool
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc
%files help
%{_mandir}/man*/*
%changelog
* Thu Jun 13 2024 jinzhiguang <jinzhiguang@kylinos.cn> - 0.2.5-2
- ldmtool: fix NULL pointer dereference
* Mon Aug 22 2022 wangxiaomeng <wangxiaomeng@kylinos.cn> - 0.2.5-1
- Update version to 0.2.5
* Wed Sep 9 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 0.2.4-4
- remove useless readme files
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.4-3
- Package init