From: Richard W.M. Jones Date: Tue, 6 Sep 2022 19:49:41 +0000 (+0100) Subject: Initial libblkio package X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=76b7e0b385cecd4291397cbf767ea39a00a65d36;p=fedora-reviews.git Initial libblkio package --- diff --git a/libblkio/.gitignore b/libblkio/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/libblkio/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/libblkio/libblkio-c8f5ed9a1460d90a522bda55da09f013fa7da61c.tar.bz2 b/libblkio/libblkio-c8f5ed9a1460d90a522bda55da09f013fa7da61c.tar.bz2 new file mode 100644 index 0000000..d2c7e1e Binary files /dev/null and b/libblkio/libblkio-c8f5ed9a1460d90a522bda55da09f013fa7da61c.tar.bz2 differ diff --git a/libblkio/libblkio.spec b/libblkio/libblkio.spec new file mode 100644 index 0000000..bbc631a --- /dev/null +++ b/libblkio/libblkio.spec @@ -0,0 +1,76 @@ +%global forgeurl https://gitlab.com/libblkio/libblkio +%global commit c8f5ed9a1460d90a522bda55da09f013fa7da61c +# Upstream has not tagged any versions so far. +Version: 0.1 +%forgemeta + +Summary: Block device I/O library +Name: libblkio +Release: 1%{?dist} +URL: %{forgeurl} +Source: %{forgesource} +License: ASL 2.0 or MIT + +# Basic build requirements. +BuildRequires: gcc, gcc-c++ +BuildRequires: make +BuildRequires: meson +BuildRequires: rust +BuildRequires: rustfmt +BuildRequires: cargo +BuildRequires: python3-docutils +BuildRequires: liburing-devel +BuildRequires: pkgconf + + +%description +libblkio is a library for high-performance block device I/O with +support for multi-queue devices. A C API is provided so that +applications can use the library from most programming languages. + + +%package devel +Summary: Development tools for %{name} +Requires: %{name}%{_isa} = %{version}-%{release} + + +%description devel +This package contains development tools for %{name}. + + +%prep +%forgesetup + + +%build +%{meson} +%{meson_build} + + +%install +%{meson_install} + +pushd %{buildroot}%{_libdir} +ln -s libblkio.so libblkio.so.0 +ln -s libblkio.so.0 libblkio.so.0.0 +popd + + +%files +%license LICENSE-APACHE LICENSE-MIT LICENSE.crosvm +%doc README.rst +%{_libdir}/libblkio.so.0* + + +%files devel +%license LICENSE-APACHE LICENSE-MIT LICENSE.crosvm +%doc README.rst +%{_includedir}/blkio.h +%{_libdir}/libblkio.so +%{_libdir}/pkgconfig/blkio.pc +%{_mandir}/man3/blkio.3* + + +%changelog +* Tue Sep 06 2022 Richard W.M. Jones - 0.1-1 +- Initial package