%global forgeurl https://github.com/ming1/ubdsrv %global commit 698c92c9d292903adae142a86d2fee10fce91850 # Upstream has not tagged any versions so far. Version: 1.0 %forgemeta Summary: Userspace block driver server and ublk tool Name: ubdsrv Release: 1%{?dist} URL: %{forgeurl} Source: %{forgesource} License: LGPLv2+ or MIT # Basic build requirements. BuildRequires: gcc, gcc-c++ BuildRequires: make BuildRequires: autoconf, autoconf-archive, automake, libtool BuildRequires: liburing-devel >= 2.2 BuildRequires: pkgconf %description This package allows you to write Linux block devices in userspace. It contains a library which can be linked to programs that implement Linux userspace block devices, and also the "ublk" program which can be used to create, list and delete ublk devices. %package devel Summary: Development tools for %{name} Requires: %{name}%{_isa} = %{version}-%{release} %description devel This package contains development tools for %{name}. %prep %forgeautosetup -p1 %build autoreconf -f -i %{configure} --disable-static make V=1 %{?_smp_mflags} %install %{make_install} # Remove libtool droppings. rm %{buildroot}%{_libdir}/*.la %files %license COPYING COPYING.LGPL LICENSE %doc README %{_sbindir}/ublk %{_libdir}/libublksrv.so.0* %files devel %license COPYING COPYING.LGPL LICENSE %doc README %{_includedir}/ublksrv_aio.h %{_includedir}/ublksrv.h %{_includedir}/ublk_cmd.h %{_libdir}/libublksrv.so %{_libdir}/pkgconfig/ublksrv.pc %changelog * Tue Sep 27 2022 Richard W.M. Jones - 1.0-1 - New upstream version 1.0 - Remove upstream patches * Wed Aug 31 2022 Richard W.M. Jones - 0.1-3 - Update to latest upstream version - Fix various build issues * Tue Aug 30 2022 Richard W.M. Jones - 0.1-1 - Initial package