Version: 1.5.0 %global forgeurl https://gitlab.com/libblkio/libblkio %global tag v%{version} %forgemeta %if %{defined copr_username} %define copr_build 1 %endif Summary: Block device I/O library Name: libblkio Release: 1%{?dist} URL: %{forgeurl} Source0: %{forgesource} # To create the vendor tarball: # tar xf %%{name}-v%%{version}.tar.bz2 ; pushd %%{name}-v%%{version} ; \ # cargo vendor && tar Jcvf ../%%{name}-v%%{version}-vendor.tar.xz vendor/ ; popd Source1: %{name}-v%{version}-vendor.tar.xz License: (Apache-2.0 OR MIT) AND (Apache-2.0 OR BSD-3-Clause) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND BSD-3-Clause # Basic build requirements. BuildRequires: gcc, gcc-c++ BuildRequires: make BuildRequires: meson %if 0%{?rhel} BuildRequires: rust-toolset %else BuildRequires: rust-packaging >= 21 BuildRequires: rustfmt BuildRequires: cargo BuildRequires: cargo2rpm %endif BuildRequires: python3-docutils BuildRequires: pkgconf %if %{defined copr_build} BuildRequires: git %endif %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 %forgeautosetup -p1 tar xf %{SOURCE1} %cargo_prep -v vendor sed -e 's/--locked//' -i src/cargo-build.sh %build export RUSTFLAGS="%build_rustflags" %{meson} %{meson_build} %cargo_license_summary %{cargo_license} > LICENSE.dependencies %if 0%{?rhel} %cargo_vendor_manifest %endif %install %{meson_install} %files %license LICENSE-APACHE LICENSE-MIT LICENSE.crosvm %license LICENSE.dependencies %if 0%{?rhel} %license cargo-vendor.txt %endif %doc README.rst %{_libdir}/libblkio.so.1{,.*} %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 * Wed May 8 2024 Stefan Hajnoczi - 1.5.0-1 - Update to 1.5.0 * Fri Feb 02 2024 Yaakov Selkowitz - 1.3.0-6 - Update Rust macro usage * Thu Jan 25 2024 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 02 2023 Alberto Faria - 1.3.0-3 - Update overall license * Mon Aug 14 2023 Richard W.M. Jones - 1.3.0-2 - Remove const-cstr dependency (RHBZ#2214208) * Thu Jul 20 2023 Yaakov Selkowitz - 1.3.0-1 - Update to 1.3.0 * Thu Jul 20 2023 Fedora Release Engineering - 1.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Apr 19 2023 Stefan Hajnoczi - 1.2.2-5 - Patch Cargo.toml files to enable nix "ioctl" feature (RHBZ#2186159) * Thu Mar 09 2023 Stefan Hajnoczi - 1.2.2-4 - Update overall license to include crate dependency licenses * Sun Feb 05 2023 Fabio Valentini - 1.2.2-3 - Rebuild for fixed frame pointer compiler flags in Rust RPM macros. * Thu Jan 19 2023 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Richard W.M. Jones - 1.2.2-1 - Initial package