From: Richard W.M. Jones Date: Tue, 30 Aug 2022 12:54:41 +0000 (+0100) Subject: ubdsrv: Add ublksrv.pc file to package X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=781392ca6d843edcf3b0ad543c73a3f16e371304;p=fedora-reviews.git ubdsrv: Add ublksrv.pc file to package --- 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