Import rpm spec file
This rpm spec file is based off Fedora's libblkio 1.2.2 spec file. CentOS Stream requires vendored crate dependencies, so it was necessary modify the spec file to use that approach instead of declaring build dependencies. The libblkio-vendor-v1.2.2.tar.bz2 file was generated by running cargo vendor in the libblkio-v1.2.2 source tree and packaging up the vendor/ directory and .cargo/config.toml. resolves: rhbz#2166106 Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
06a2aa706d
commit
d3a7cba9a1
2
.gitignore
vendored
2
.gitignore
vendored
@ -0,0 +1,2 @@
|
||||
/libblkio-v1.2.2.tar.bz2
|
||||
/libblkio-vendor-v1.2.2.tar.bz2
|
||||
67
libblkio.spec
Normal file
67
libblkio.spec
Normal file
@ -0,0 +1,67 @@
|
||||
Version: 1.2.2
|
||||
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 MIT AND BSD-3-Clause AND Unicode-DFS-2016
|
||||
|
||||
# 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 -Sgit -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
|
||||
* 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)
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (libblkio-v1.2.2.tar.bz2) = 39fbad8706c2cd3560d27d09fb2c852e622630f5e96709d321e72ff8f2ed621aa948b12da9916fa4d3bc7cc3399afd6e8087479b05a6b38d6049739b6dee7e4b
|
||||
SHA512 (libblkio-vendor-v1.2.2.tar.bz2) = f2fdb96f752fb76342aa357d2829f0254daa9e3c82f83410fca3f0318e3e698e82fa323c8aa0ceac57a72ff31b66944867e24302f5ef66eaecd6cf09d5594991
|
||||
Loading…
Reference in New Issue
Block a user