Disable udev-hid-bpf-testing on Centos/RHEL
CentOS/RHEL both move too slowly for these programs to be shipped, by the time we actually ship something here upstream will have moved through to stable already months ago. Related: RHELPLAN-170468
This commit is contained in:
parent
c6b64acff2
commit
5cc8a7b5a2
@ -6,8 +6,10 @@
|
|||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
%global bundled_rust_deps 1
|
%global bundled_rust_deps 1
|
||||||
|
%global build_testing 0
|
||||||
%else
|
%else
|
||||||
%global bundled_rust_deps 0
|
%global bundled_rust_deps 0
|
||||||
|
%global build_testing 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Upstream uses 1.0.0-20240417 but rpm won't let us use the dash, so let's use a dot instead.
|
# Upstream uses 1.0.0-20240417 but rpm won't let us use the dash, so let's use a dot instead.
|
||||||
@ -25,7 +27,7 @@ License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-
|
|||||||
URL: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/
|
URL: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/
|
||||||
Source0: https://gitlab.freedesktop.org/libevdev/%{name}/-/archive/%{tarball}/%{name}-%{tarball}.tar.bz2
|
Source0: https://gitlab.freedesktop.org/libevdev/%{name}/-/archive/%{tarball}/%{name}-%{tarball}.tar.bz2
|
||||||
# To recreate tarball:
|
# To recreate tarball:
|
||||||
# $ fedpkg prep
|
# $ centpkg prep (do not use fedpkg, it removes Cargo.lock)
|
||||||
# $ pushd udev-hid-bpf-...; cargo vendor && tar Jcvf ../$(basename $PWD)-vendor.tar.xz vendor/ ; popd
|
# $ pushd udev-hid-bpf-...; cargo vendor && tar Jcvf ../$(basename $PWD)-vendor.tar.xz vendor/ ; popd
|
||||||
Source1: %{name}-%{upstream_version}-%{upstream_version_date}-vendor.tar.xz
|
Source1: %{name}-%{upstream_version}-%{upstream_version_date}-vendor.tar.xz
|
||||||
|
|
||||||
@ -68,6 +70,7 @@ The %{name}-devel package contains libraries
|
|||||||
and header files for developing applications
|
and header files for developing applications
|
||||||
that use %{name}.
|
that use %{name}.
|
||||||
|
|
||||||
|
%if 0%{?build_testing}
|
||||||
%package testing
|
%package testing
|
||||||
Summary: Testing eBPF programs for %{name}
|
Summary: Testing eBPF programs for %{name}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -76,6 +79,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
The %{name}-testing package contains HID eBPF programs
|
The %{name}-testing package contains HID eBPF programs
|
||||||
for %{name} that have not yet been merged into
|
for %{name} that have not yet been merged into
|
||||||
an upstream kernel.
|
an upstream kernel.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package stable
|
%package stable
|
||||||
Summary: Stable eBPF programs for %{name}
|
Summary: Stable eBPF programs for %{name}
|
||||||
@ -106,7 +110,15 @@ tar xf %{SOURCE1}
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export RUSTFLAGS="%build_rustflags"
|
export RUSTFLAGS="%build_rustflags"
|
||||||
%meson -Dudevdir=%{udevdir} -Dbpfs=stable,testing -Dtests=disabled
|
%if 0%{?build_testing}
|
||||||
|
%global bpf_set stable,testing
|
||||||
|
%else
|
||||||
|
%global bpf_set stable
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%meson -Dudevdir=%{udevdir} \
|
||||||
|
-Dbpfs=%{bpf_set} \
|
||||||
|
-Dtests=disabled
|
||||||
%meson_build
|
%meson_build
|
||||||
%{cargo_license_summary}
|
%{cargo_license_summary}
|
||||||
%{cargo_license} > LICENSE.dependencies
|
%{cargo_license} > LICENSE.dependencies
|
||||||
@ -152,10 +164,12 @@ export RUSTFLAGS="%build_rustflags"
|
|||||||
%{_firmware}/hid/bpf/*-XPPen__DecoMini4.bpf.o
|
%{_firmware}/hid/bpf/*-XPPen__DecoMini4.bpf.o
|
||||||
%{_firmware}/hid/bpf/*-Thrustmaster__TCA-Yoke-Boeing.bpf.o
|
%{_firmware}/hid/bpf/*-Thrustmaster__TCA-Yoke-Boeing.bpf.o
|
||||||
|
|
||||||
|
%if 0%{?build_testing}
|
||||||
%files testing
|
%files testing
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%license LICENSE.dependencies
|
%license LICENSE.dependencies
|
||||||
%{_udevhwdbdir}/81-hid-bpf-testing.hwdb
|
%{_udevhwdbdir}/81-hid-bpf-testing.hwdb
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user