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
22 This package allows you to write Linux block devices in userspace. It
23 contains a library which can be linked to programs that implement
24 Linux userspace block devices, and also the "ublk" program which can
25 be used to create, list and delete ublk devices.
29 Summary: Development tools for %{name}
30 Requires: %{name}%{_isa} = %{version}-%{release}
34 This package contains development tools for %{name}.
43 %{configure} --disable-static
44 make V=1 %{?_smp_mflags}
50 # Remove libtool droppings.
51 rm %{buildroot}%{_libdir}/*.la
53 # Remove the demo programs.
54 rm %{buildroot}%{_bindir}/demo_event
55 rm %{buildroot}%{_bindir}/demo_null
59 %license COPYING COPYING.LGPL LICENSE
62 %{_libdir}/libublksrv.so.0*
66 %license COPYING COPYING.LGPL LICENSE
68 %{_includedir}/ublk_cmd.h
69 %{_includedir}/ublksrv.h
70 %{_libdir}/libublksrv.so
74 * Tue Aug 30 2022 Richard W.M. Jones <rjones@redhat.com> - 0.1-1