diff --git a/udisks2.changes b/udisks2.changes index 40845d7..b5dd3ca 100644 --- a/udisks2.changes +++ b/udisks2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 30 21:34:08 UTC 2019 - bjorn.lie@gmail.com + +- Add libblockdev-vdo-devel BuildRequires: Build the new vdo + module. Following this, add new vdo sub-package. + ------------------------------------------------------------------- Thu Jan 24 21:17:14 UTC 2019 - bjorn.lie@gmail.com diff --git a/udisks2.spec b/udisks2.spec index 34b18e9..4a98c16 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -43,6 +43,7 @@ BuildRequires: libblockdev-lvm-devel >= %{libblockdev_version} BuildRequires: libblockdev-mdraid-devel >= %{libblockdev_version} BuildRequires: libblockdev-part-devel >= %{libblockdev_version} BuildRequires: libblockdev-swap-devel >= %{libblockdev_version} +BuildRequires: libblockdev-vdo-devel >= %{libblockdev_version} BuildRequires: lvm2-devel BuildRequires: pkgconfig BuildRequires: xsltproc @@ -173,6 +174,16 @@ Requires: lvm2 %description -n %{libudisks}_lvm2 This package contains the UDisks' module for LVM2 support. +%package -n %{libudisks}_vdo +Summary: UDisks module for VDO +License: GPL-2.0-or-later +Group: System/Libraries +Requires: %{libudisks} >= %{version} +Requires: libblockdev-vdo >= %{libblockdev_version} + +%description -n %{libudisks}_vdo +This package contains the UDisks' module for VDO support. + %package -n %{libudisks}_zram Summary: UDisks module for Zram License: GPL-2.0-or-later @@ -187,19 +198,21 @@ This package contains the UDisks' module for zram support. %lang_package %prep -%setup -q -n udisks-%{version} +%autosetup -p1 -n udisks-%{version} %build -%configure \ - --disable-static \ - --enable-gtk-doc \ - --docdir=%{_docdir}/%{name} \ - --enable-bcache \ - --enable-btrfs \ - --enable-lsm \ - --enable-lvm2 \ - --enable-lvmcache \ - --enable-zram +%configure \ + --disable-static \ + --enable-gtk-doc \ + --docdir=%{_docdir}/%{name} \ + --enable-bcache \ + --enable-btrfs \ + --enable-lsm \ + --enable-lvm2 \ + --enable-lvmcache \ + --enable-zram \ + --enable-vdo \ + %{nil} %make_build %install @@ -315,6 +328,12 @@ ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name} %{_libdir}/udisks2/modules/libudisks2_lvm2.so %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy +%files -n %{libudisks}_vdo +%dir %{_libdir}/udisks2 +%dir %{_libdir}/udisks2/modules +%{_libdir}/udisks2/modules/libudisks2_vdo.so +%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy + %files -n %{libudisks}_zram %dir %{_libdir}/udisks2 %dir %{_libdir}/udisks2/modules