Name: libldm
Version: 0.2.3
Release: 2%{?dist}%{?extra_release}
Summary: A tool to manage Windows dynamic disks
License: LGPLv3+ and GPLv3+
URL: https://github.com/mdbooth/libldm
Source0: %{url}/downloads/%{name}-%{version}.tar.gz
Patch0: cast_be64toh.patch
BuildRequires: glib2-devel >= 2.26.0
BuildRequires: json-glib-devel >= 0.14.0
BuildRequires: device-mapper-devel >= 1.0
BuildRequires: zlib-devel libuuid-devel readline-devel
%description
libldm is a 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. It includes ldmtool, which
exposes this functionality as a command-line tool.
libldm is released under LGPLv3+. ldmtool is released under GPLv3+.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static --enable-gtk-doc
make %{?_smp_mflags}
%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING.lgpl COPYING.gpl
%{_libdir}/*.so.*
%{_bindir}/ldmtool
%{_mandir}/man1/ldmtool.1.gz
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/ldm-1.0.pc
%{_datadir}/gtk-doc
%changelog
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Sep 21 2012 Matthew Booth <mbooth@redhat.com> - 0.2.3-1
- Initial packaging