diff --git a/libldm-0.2.4.tar.gz b/libldm-0.2.4.tar.gz new file mode 100644 index 0000000..7ff44ac Binary files /dev/null and b/libldm-0.2.4.tar.gz differ diff --git a/libldm.spec b/libldm.spec new file mode 100644 index 0000000..3d305b2 --- /dev/null +++ b/libldm.spec @@ -0,0 +1,60 @@ +Name: libldm +Version: 0.2.4 +Release: 3 +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 + +BuildRequires: autoconf, automake, libtool, glib2-devel >= 2.26.0, json-glib-devel >= 0.14.0 +BuildRequires: device-mapper-devel >= 1.0, 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 +* Fri Dec 13 2019 openEuler Buildteam - 0.2.4-3 +- Package init