From 781392ca6d843edcf3b0ad543c73a3f16e371304 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Aug 2022 13:54:41 +0100 Subject: [PATCH] ubdsrv: Add ublksrv.pc file to package --- ubdsrv/ubdsrv.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ubdsrv/ubdsrv.spec b/ubdsrv/ubdsrv.spec index 37bcd97..96f4551 100644 --- a/ubdsrv/ubdsrv.spec +++ b/ubdsrv/ubdsrv.spec @@ -16,6 +16,7 @@ BuildRequires: gcc, gcc-c++ BuildRequires: make BuildRequires: autoconf, autoconf-archive, automake, libtool BuildRequires: liburing-devel >= 2.2 +BuildRequires: pkgconf %description @@ -47,6 +48,10 @@ make V=1 %{?_smp_mflags} %install %{make_install} +# Install the *.pc file. +mkdir -p %{buildroot}%{_libdir}/pkgconfig +cp -a ublksrv.pc %{buildroot}%{_libdir}/pkgconfig/ + # Remove libtool droppings. rm %{buildroot}%{_libdir}/*.la @@ -68,6 +73,7 @@ rm %{buildroot}%{_bindir}/demo_null %{_includedir}/ublk_cmd.h %{_includedir}/ublksrv.h %{_libdir}/libublksrv.so +%{_libdir}/pkgconfig/ublksrv.pc %changelog -- 1.8.3.1