Accepting request 670218 from home:iznogood:factory

- Add pkgconfig(yaml-0.1) BuildRequires and pass with-vdo instead
  of without-vdo to configure, build vdo support.
- Following the above, add new sub-packages libbd_vdo2 and
  libbd_vdo-devel, aswell as handle the new library in post(un).

OBS-URL: https://build.opensuse.org/request/show/670218
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=21
This commit is contained in:
Bjørn Lie 2019-02-02 23:09:11 +00:00 committed by Git OBS Bridge
parent 84b8bb10f8
commit ad5fe3b690
2 changed files with 45 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jan 24 22:51:52 UTC 2019 - bjorn.lie@gmail.com
- Add pkgconfig(yaml-0.1) BuildRequires and pass with-vdo instead
of without-vdo to configure, build vdo support.
- Following the above, add new sub-packages libbd_vdo2 and
libbd_vdo-devel, aswell as handle the new library in post(un).
-------------------------------------------------------------------
Fri Jan 11 20:28:13 UTC 2019 - bjorn.lie@gmail.com

View File

@ -52,6 +52,7 @@ BuildRequires: pkgconfig(libkmod) >= 19
BuildRequires: pkgconfig(libparted) >= 3.1
BuildRequires: pkgconfig(libudev) >= 216
BuildRequires: pkgconfig(mount) >= 2.23.0
BuildRequires: pkgconfig(yaml-0.1)
Requires: %{libname} >= %{version}
%description
@ -417,12 +418,34 @@ Requires: libbd_utils%{somajor} >= %{version}
This package contains header files and pkg-config files needed for development
with the libbd_utils library.
%package -n libbd_vdo%{somajor}
Summary: The vdo plugin for the LibBlockDev library
Group: System/Libraries
Requires: libbd_utils%{somajor} >= %{version}
Provides: libblockdev-vdo = %{version}
%description -n libbd_vdo%{somajor}
The vdo library plugin (and in the same time a standalone library)
providing the functionality related to vdo filesystems.
%package -n libbd_vdo-devel
Summary: Development files for the libblockdev-vdo plugin/library
Group: Development/Libraries/C and C++
Requires: glib2-devel
Requires: libbd_utils-devel >= %{version}
Requires: libbd_vdo%{somajor} = %{version}
Provides: libblockdev-vdo-devel = %{version}
%description -n libbd_vdo-devel
This package contains header files and pkg-config files needed for development
with the libbd_vdo plugin/library.
%prep
%autosetup -p1
%build
%configure \
--disable-static \
--disable-static \
--enable-introspection \
--with-bcache \
--with-btrfs \
@ -439,9 +462,10 @@ with the libbd_utils library.
--with-mpath \
--with-part \
--with-swap \
--with-vdo \
--without-escrow \
--without-nvdimm \
--without-vdo
%{nil}
%make_build
%install
@ -490,6 +514,9 @@ find %{buildroot} -name "*.la" -print -type f -delete
%post -n libbd_utils%{somajor} -p /sbin/ldconfig
%postun -n libbd_utils%{somajor} -p /sbin/ldconfig
%post -n libbd_vdo%{somajor} -p /sbin/ldconfig
%postun -n libbd_vdo%{somajor} -p /sbin/ldconfig
%files
%dir %{_sysconfdir}/libblockdev
%dir %{_sysconfdir}/libblockdev/conf.d
@ -644,4 +671,12 @@ find %{buildroot} -name "*.la" -print -type f -delete
%{_includedir}/blockdev/dev_utils.h
%{_includedir}/blockdev/module.h
%files -n libbd_vdo%{somajor}
%{_libdir}/libbd_vdo.so.%{somajor}*
%files -n libbd_vdo-devel
%{_libdir}/libbd_vdo.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/vdo.h
%changelog