Accepting request 670776 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/670776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=6
This commit is contained in:
Stephan Kulow
2019-02-05 10:17:59 +00:00
committed by Git OBS Bridge
4 changed files with 80 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:705d82a5a146c71a1f1159d4579648662f7e4414297eb5a2b3e7199d72bb73a8
size 812346

3
libblockdev-2.20.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f87873aefebbd43976b73b823cd6e53f15e4e364611bd288b2886c2fcbb45a24
size 841555

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
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
- Add pkgconfig(dbus-1) BuildRequires: Add missing BuildRequires,
libblockdev needs dbus headerfiles during build, but configure
does not check for it.
-------------------------------------------------------------------
Mon Nov 19 15:23:30 UTC 2018 - luc14n0@linuxmail.org
- Update to version 2.20:
+ Fixes:
- Fix parsing extra arguments for LVM methods calls in the LVM
DBus plugin;
- Multiple fixes for running tests on Debian testing.
+ Development: Vagrantfile template was added for easy
development machine setup.
- Changes from version 2.19:
+ Features:
- vdo: new functions to get statistical data for existing VDO
volumes (bd_vdo_get_stats);
- crypto: support for passing extra arguments for key
derivation function when creating LUKS2 format.
-------------------------------------------------------------------
Thu Jun 28 03:22:34 UTC 2018 - luc14n0@linuxmail.org

View File

@@ -1,7 +1,7 @@
#
# spec file for package libblockdev
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define bcachetools_version 1.0.8
%define lvm2-clvm_version 2.02.156
%define lvm2_clvm_version 2.02.156
%define somajor 2
%define libname %{name}%{somajor}
%bcond_with python2
Name: libblockdev
Version: 2.18
Version: 2.20
Release: 0
Summary: A library for low-level manipulation with block devices
License: LGPL-2.1-only
@@ -42,6 +42,7 @@ BuildRequires: python3-devel
#BuildRequires: s390-tools-devel
BuildRequires: pkgconfig(blkid) >= 2.23.0
BuildRequires: pkgconfig(bytesize) >= 0.1
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(devmapper) >= 1.02.93
BuildRequires: pkgconfig(gio-2.0) >= 2.42.2
BuildRequires: pkgconfig(glib-2.0) >= 2.42.2
@@ -51,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
@@ -282,7 +284,7 @@ with the libbd_lvm plugin/library.
Summary: The LVM plugin for the LibBlockDev library
Group: System/Libraries
Requires: libbd_utils%{somajor} >= %{version}
Requires: lvm2-clvm >= 2.02.156
Requires: lvm2-clvm >= %{lvm2_clvm_version}
# For thin_metadata_size.
Requires: thin-provisioning-tools
Provides: libblockdev-lvm-dbus = %{version}
@@ -416,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 \
@@ -438,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
@@ -489,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
@@ -592,6 +620,8 @@ find %{buildroot} -name "*.la" -print -type f -delete
%files -n libbd_lvm-dbus-devel
%{_libdir}/libbd_lvm-dbus.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/dbus.h
%files -n libbd_mdraid%{somajor}
%{_libdir}/libbd_mdraid.so.%{somajor}*
@@ -641,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