1 %global forgeurl https://github.com/ming1/ubdsrv
2 %global commit 9a496a862e9fe3793efad82551e58a37059b9e95
3 # Upstream has not tagged any versions so far.
7 Summary: Userspace block driver server and ublk tool
11 Source: %{forgesource}
12 License: LGPLv2+ or MIT
14 # Basic build requirements.
15 BuildRequires: gcc, gcc-c++
17 BuildRequires: autoconf, autoconf-archive, automake, libtool
18 BuildRequires: liburing-devel >= 2.2
19 BuildRequires: pkgconf
23 This package allows you to write Linux block devices in userspace. It
24 contains a library which can be linked to programs that implement
25 Linux userspace block devices, and also the "ublk" program which can
26 be used to create, list and delete ublk devices.
30 Summary: Development tools for %{name}
31 Requires: %{name}%{_isa} = %{version}-%{release}
35 This package contains development tools for %{name}.
44 %{configure} --disable-static
45 make V=1 %{?_smp_mflags}
51 # Install the *.pc file.
52 mkdir -p %{buildroot}%{_libdir}/pkgconfig
53 cp -a ublksrv.pc %{buildroot}%{_libdir}/pkgconfig/
55 # Remove libtool droppings.
56 rm %{buildroot}%{_libdir}/*.la
58 # Remove the demo programs.
59 rm %{buildroot}%{_bindir}/demo_event
60 rm %{buildroot}%{_bindir}/demo_null
64 %license COPYING COPYING.LGPL LICENSE
67 %{_libdir}/libublksrv.so.0*
71 %license COPYING COPYING.LGPL LICENSE
73 %{_includedir}/ublk_cmd.h
74 %{_includedir}/ublksrv.h
75 %{_libdir}/libublksrv.so
76 %{_libdir}/pkgconfig/ublksrv.pc
80 * Tue Aug 30 2022 Richard W.M. Jones <rjones@redhat.com> - 0.1-1