Compare commits
No commits in common. "c9-beta" and "c10s" have entirely different histories.
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
SOURCES/libblkio-v1.3.0.tar.bz2
|
||||
SOURCES/libblkio-vendor-v1.3.0.tar.bz2
|
||||
/libblkio-v1.2.2.tar.bz2
|
||||
/libblkio-v1.3.0.tar.bz2
|
||||
/libblkio-v1.3.0-vendor.tar.xz
|
||||
/libblkio-v1.5.0.tar.bz2
|
||||
/libblkio-v1.5.0-vendor.tar.xz
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
0162f94d66ce977930fa498da0c2d0fbda21ddaf SOURCES/libblkio-v1.3.0.tar.bz2
|
||||
defae673a0b26e7038f6e79d5386a9b7de0372e7 SOURCES/libblkio-vendor-v1.3.0.tar.bz2
|
||||
@ -1,74 +0,0 @@
|
||||
Version: 1.3.0
|
||||
Summary: Block device I/O library
|
||||
Name: libblkio
|
||||
Release: 1%{?dist}
|
||||
URL: https://gitlab.com/libblkio/libblkio
|
||||
Source0: %{url}/-/archive/v%{version}/libblkio-v%{version}.tar.bz2
|
||||
Source1: libblkio-vendor-v%{version}.tar.bz2
|
||||
License: (Apache-2.0 OR MIT) AND (Apache-2.0 OR BSD-3-Clause) AND BSD-3-Clause
|
||||
|
||||
# Basic build requirements.
|
||||
BuildRequires: gcc, gcc-c++
|
||||
BuildRequires: make
|
||||
BuildRequires: meson
|
||||
BuildRequires: rustfmt
|
||||
BuildRequires: cargo
|
||||
BuildRequires: rust
|
||||
BuildRequires: python3-docutils
|
||||
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
|
||||
%autosetup -n libblkio-v%{version} -p1 -b 1
|
||||
sed -e 's/--locked/--offline/' -i src/cargo-build.sh
|
||||
|
||||
|
||||
%build
|
||||
%{meson}
|
||||
%{meson_build}
|
||||
|
||||
|
||||
%install
|
||||
%{meson_install}
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE-APACHE LICENSE-MIT LICENSE.crosvm
|
||||
%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
|
||||
* Thu May 11 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.3.0-1
|
||||
- Update to 1.3.0, which simplifies the license expression due to crate
|
||||
dependency changes.
|
||||
|
||||
* Wed Apr 26 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-2
|
||||
- Remove %autosetup -Sgit as it's not used and the build could break because BuildRequires: git-core was missing
|
||||
|
||||
* Tue Apr 11 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-1
|
||||
- Import Fedora rpm 1.2.2-4 spec file with license updates (https://src.fedoraproject.org/rpms/libblkio/pull-request/1)
|
||||
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
# recipients: kvmqe-ci, qinwang, yfu
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
subject_type: brew-build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: kvm-ci.libblkio.x86_64.brew-build.gating.tier1.functional}
|
||||
166
libblkio.spec
Normal file
166
libblkio.spec
Normal file
@ -0,0 +1,166 @@
|
||||
Version: 1.5.0
|
||||
%global forgeurl https://gitlab.com/libblkio/libblkio
|
||||
%global tag v%{version}
|
||||
%forgemeta
|
||||
|
||||
Summary: Block device I/O library
|
||||
Name: libblkio
|
||||
Release: 2%{?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 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
|
||||
%endif
|
||||
BuildRequires: python3-docutils
|
||||
BuildRequires: pkgconf
|
||||
|
||||
# XXX Eventually use %%generate_buildrequires but it does not support
|
||||
# workspaces yet. See
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2124697#c57
|
||||
#
|
||||
# For major version >= 1, we are requiring that the major version does
|
||||
# not change.
|
||||
#
|
||||
# For major version >= 0, we are requiring that the minor version does
|
||||
# not change.
|
||||
%if ! 0%{?rhel}
|
||||
BuildRequires: (crate(autocfg/default) >= 1.0.0 with crate(autocfg/default) < 2.0.0~)
|
||||
BuildRequires: (crate(bitflags/default) >= 1.2.0 with crate(bitflags/default) < 2.0.0~)
|
||||
BuildRequires: (crate(cc/default) >= 1.0.0 with crate(cc/default) < 2.0.0~)
|
||||
BuildRequires: (crate(concat-idents/default) >= 1.0.0 with crate(concat-idents/default) < 2.0.0~)
|
||||
BuildRequires: (crate(io-uring/default) >= 0.6.0 with crate(io-uring/default) < 0.7.0~)
|
||||
BuildRequires: (crate(lazy_static/default) >= 1.0.0 with crate(lazy_static/default) < 2.0.0~)
|
||||
BuildRequires: (crate(libc/default) >= 0.2.134 with crate(libc/default) < 0.3.0~)
|
||||
BuildRequires: (crate(memmap2/default) >= 0.5.7 with crate(memmap2/default) < 0.6.0~)
|
||||
BuildRequires: (crate(num-traits/default) >= 0.2.15 with crate(num-traits/default) < 0.3.0~)
|
||||
BuildRequires: (crate(paste/default) >= 1.0.0 with crate(paste/default) < 2.0.0~)
|
||||
BuildRequires: (crate(pci-driver/default) >= 0.1.2 with crate(pci-driver/default) < 0.2.0~)
|
||||
BuildRequires: (crate(proc-macro2/default) >= 1.0.0 with crate(proc-macro2/default) < 2.0.0~)
|
||||
BuildRequires: (crate(rustix/default) >= 0.36.10 with crate(rustix/default) < 0.38.0~)
|
||||
BuildRequires: (crate(syn/default) >= 1.0.0 with crate(syn/default) < 2.0.0~)
|
||||
BuildRequires: (crate(unicode-ident/default) >= 1.0.0 with crate(unicode-ident/default) < 2.0.0~)
|
||||
BuildRequires: (crate(virtio-bindings/default) >= 0.2.0 with crate(virtio-bindings/default) < 0.3.0~)
|
||||
%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
|
||||
|
||||
%if 0%{?rhel}
|
||||
tar xf %{SOURCE1}
|
||||
%cargo_prep -v vendor
|
||||
%else
|
||||
%cargo_prep
|
||||
%endif
|
||||
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
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.5.0-2
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Thu Aug 08 2024 Stefan Hajnoczi <stefanha@redhat.com> - 1.5.0-1
|
||||
- Update to 1.5.0
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.3.0-7
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Fri Feb 02 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 1.3.0-6
|
||||
- Update Rust macro usage
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Oct 02 2023 Alberto Faria <afaria@redhat.com> - 1.3.0-3
|
||||
- Update overall license
|
||||
|
||||
* Mon Aug 14 2023 Richard W.M. Jones <rjones@redhat.com> - 1.3.0-2
|
||||
- Remove const-cstr dependency (RHBZ#2214208)
|
||||
|
||||
* Thu Jul 20 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.3.0-1
|
||||
- Update to 1.3.0
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed Apr 19 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-5
|
||||
- Patch Cargo.toml files to enable nix "ioctl" feature (RHBZ#2186159)
|
||||
|
||||
* Thu Mar 09 2023 Stefan Hajnoczi <stefanha@redhat.com> - 1.2.2-4
|
||||
- Update overall license to include crate dependency licenses
|
||||
|
||||
* Sun Feb 05 2023 Fabio Valentini <decathorpe@gmail.com> - 1.2.2-3
|
||||
- Rebuild for fixed frame pointer compiler flags in Rust RPM macros.
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Jan 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-1
|
||||
- Initial package
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (libblkio-v1.5.0.tar.bz2) = a276adc7f407df3c59a950a8bd044b26de4710d1e9f1ca41c96238d2c4eb9c867c45424d0331ca36620f6a5084d27656071cc7b9c698d873f401ffeb3de71171
|
||||
SHA512 (libblkio-v1.5.0-vendor.tar.xz) = e7b1a7904f86bb8a38c562a65b02549333699a97c21a7ec1649123d1138352e21e4e527e85246dd748e179b12c36f3773e4b6492c303f41015bacf848e55f69b
|
||||
Loading…
Reference in New Issue
Block a user