Compare commits

...

No commits in common. 'c9-beta' and 'i10cs' have entirely different histories.

4
.gitignore vendored

@ -1,2 +1,2 @@
SOURCES/libblkio-v1.3.0.tar.bz2
SOURCES/libblkio-vendor-v1.3.0.tar.bz2
SOURCES/libblkio-v1.5.0-vendor.tar.xz
SOURCES/libblkio-v1.5.0.tar.bz2

@ -1,2 +1,2 @@
0162f94d66ce977930fa498da0c2d0fbda21ddaf SOURCES/libblkio-v1.3.0.tar.bz2
defae673a0b26e7038f6e79d5386a9b7de0372e7 SOURCES/libblkio-vendor-v1.3.0.tar.bz2
aa4106d2badcf54cd02094a387dd6955fc1fe493 SOURCES/libblkio-v1.5.0-vendor.tar.xz
ad30ce62b14d0a6218ab33ebc98fcc2de6750c05 SOURCES/libblkio-v1.5.0.tar.bz2

@ -1,22 +1,61 @@
Version: 1.3.0
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: 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
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
BuildRequires: rust
%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
@ -34,13 +73,26 @@ 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
%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
@ -49,6 +101,10 @@ sed -e 's/--locked/--offline/' -i src/cargo-build.sh
%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{,.*}
@ -63,12 +119,51 @@ sed -e 's/--locked/--offline/' -i src/cargo-build.sh
%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.
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.5.0-2
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.5.0-1
- Rebuilt for MSVSphere 10
* 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.
* 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
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* 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)
* Wed Jan 11 2023 Richard W.M. Jones <rjones@redhat.com> - 1.2.2-1
- Initial package

Loading…
Cancel
Save