diff --git a/include/Makefile.am b/include/Makefile.am index 5f38f6ac6d..cb28a2d6c9 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -186,6 +186,7 @@ USER_H = \ libuutil.h \ libuutil_common.h \ libuutil_impl.h \ + libzdb.h \ libzfs.h \ libzfs_core.h \ libzfsbootenv.h \ diff --git a/lib/libzdb/Makefile.am b/lib/libzdb/Makefile.am index 6377299425..5e070db632 100644 --- a/lib/libzdb/Makefile.am +++ b/lib/libzdb/Makefile.am @@ -2,5 +2,5 @@ libzdb_la_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS) noinst_LTLIBRARIES += libzdb.la -nodist_libzdb_la_SOURCES = \ +libzdb_la_SOURCES = \ %D%/libzdb.c diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 2e89abd0ed..6e6c9ab6a7 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -167,6 +167,21 @@ for managing zpools %postun -n libzpool5 -p /sbin/ldconfig %endif +%package -n libzdb1 +Summary: ZDB library +Group: System Environment/Kernel + +%description -n libzdb1 +This package contains the zdb library, which is an unstable +library exposing the innards of zdb. + +%if %{defined ldconfig_scriptlets} +%ldconfig_scriptlets -n libzdb1 +%else +%post -n libzdb1 -p /sbin/ldconfig +%postun -n libzdb1 -p /sbin/ldconfig +%endif + %package -n libnvpair3 Summary: Solaris name-value library for Linux Group: System Environment/Kernel