ubdsrv: Add ublksrv.pc file to package
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 30 Aug 2022 12:54:41 +0000 (13:54 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 30 Aug 2022 12:54:41 +0000 (13:54 +0100)
ubdsrv/ubdsrv.spec

index 37bcd97..96f4551 100644 (file)
@@ -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