import #1958330
parent
e065be01ff
commit
4aa485af2e
@ -0,0 +1 @@
|
||||
/libbpf-sys-0.3.0-2.crate
|
@ -0,0 +1,10 @@
|
||||
--- libbpf-sys-0.3.0-2/Cargo.toml 1970-01-01T00:00:00+00:00
|
||||
+++ libbpf-sys-0.3.0-2/Cargo.toml 2021-05-10T19:04:42.718068+00:00
|
||||
@@ -33,6 +33,7 @@
|
||||
version = "0.3"
|
||||
|
||||
[features]
|
||||
+default = ["novendor"]
|
||||
novendor = []
|
||||
[badges.maintenance]
|
||||
status = "passively-maintained"
|
@ -0,0 +1,111 @@
|
||||
# Generated by rust2rpm 16
|
||||
%bcond_without check
|
||||
%global debug_package %{nil}
|
||||
|
||||
%global crate libbpf-sys
|
||||
|
||||
Name: rust-%{crate}
|
||||
Version: 0.3.0~2
|
||||
Release: 1%{?dist}
|
||||
Summary: Rust bindings to libbpf from the Linux kernel
|
||||
|
||||
# Upstream license specification: BSD-2-Clause
|
||||
License: BSD
|
||||
URL: https://crates.io/crates/libbpf-sys
|
||||
Source: %{crates_source}
|
||||
# Turn on the novendor feature by default
|
||||
Patch0: libbpf-sys-fix-metadata.diff
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
%if %{__cargo_skip_build}
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
BuildRequires: rust-packaging
|
||||
BuildRequires: kernel-headers
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%global _description %{expand:
|
||||
Rust bindings to libbpf from the Linux kernel.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
Requires: kernel-headers
|
||||
Requires: elfutils-libelf-devel
|
||||
Requires: libbpf-devel
|
||||
Requires: zlib-devel
|
||||
|
||||
%description devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "%{crate}" crate.
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
||||
|
||||
%package -n %{name}+default-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+default-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "default" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+default-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%package -n %{name}+novendor-devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n %{name}+novendor-devel %{_description}
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
which use "novendor" feature of "%{crate}" crate.
|
||||
|
||||
%files -n %{name}+novendor-devel
|
||||
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
# Remove bundled libbpf
|
||||
rm -r libbpf
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
%cargo_generate_buildrequires
|
||||
|
||||
%build
|
||||
%cargo_build
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
Mon May 10 2021 Davide Cavalca <davide@cavalca.name> - 0.3.0~2-1
|
||||
- Update to 0.3.0~2
|
||||
- Drop redundant Requires for subpackages
|
||||
|
||||
* Mon May 10 2021 Davide Cavalca <davide@cavalca.name> - 0.3.0~1-3
|
||||
- Backport PR#18 and turn the novendor feature on by default
|
||||
|
||||
* Sun May 09 2021 Davide Cavalca <davide@cavalca.name> - 0.3.0~1-2
|
||||
- Install license
|
||||
- Unbundle libbpf and use the system one instead
|
||||
- Add missing Requires to devel subpackages
|
||||
|
||||
* Fri May 07 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.3.0~1-1
|
||||
- Initial package
|
Loading…
Reference in new issue