From 1bde0f856f6e0cb345aecc2959d0aa3fb9f4cfe4 Mon Sep 17 00:00:00 2001 From: Ryan Bottriell Date: Mon, 4 Mar 2024 17:41:59 -0800 Subject: [PATCH] Update rpm spec files and docker image for el9 Signed-off-by: Ryan Bottriell --- cspell.json | 4 +++- rpmbuild.Dockerfile | 5 +++-- spfs.spec | 6 ++++-- spk.spec | 4 ++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/cspell.json b/cspell.json index 3e582ac752..5452107aba 100644 --- a/cspell.json +++ b/cspell.json @@ -257,6 +257,7 @@ "acyclical", "addrs", "alib", + "almalinux", "anys", "apkg", "argparse", @@ -768,5 +769,6 @@ "xdir", "xino", "ystem" - ] + ], + "enabled": true } diff --git a/rpmbuild.Dockerfile b/rpmbuild.Dockerfile index e8a8c728f1..38f9866a48 100644 --- a/rpmbuild.Dockerfile +++ b/rpmbuild.Dockerfile @@ -1,9 +1,10 @@ -FROM centos:7 as build_env +FROM almalinux:9 as build_env RUN yum install -y \ epel-release \ - curl \ + curl-minimal \ rpm-build \ + yum-utils \ && yum clean all RUN ln -s cmake3 /usr/bin/cmake diff --git a/spfs.spec b/spfs.spec index 8a66b6bde0..558497f7cb 100644 --- a/spfs.spec +++ b/spfs.spec @@ -12,9 +12,9 @@ BuildRequires: gcc-c++ BuildRequires: make BuildRequires: cmake3 BuildRequires: openssl-devel -BuildRequires: fuse-devel +BuildRequires: fuse3-devel BuildRequires: m4 -Requires: fuse +Requires: fuse3 Requires: rsync %define debug_package %{nil} @@ -34,6 +34,8 @@ RELEASE_DIR=%{_builddir}/%{name}-%{version}/target/release for cmd in $RELEASE_DIR/spfs $RELEASE_DIR/spfs-*; do # skip debug info for commands if [[ $cmd =~ \.d$ ]]; then continue; fi + # skip windows + if [[ $cmd =~ spfs-winfsp$ ]]; then continue; fi install -p -m 755 $cmd %{buildroot}/usr/local/bin/ done diff --git a/spk.spec b/spk.spec index 6d5774c6ff..964afe8df1 100644 --- a/spk.spec +++ b/spk.spec @@ -13,12 +13,12 @@ BuildRequires: libcap-devel BuildRequires: openssl-devel BuildRequires: python3-devel BuildRequires: python3-pip -BuildRequires: fuse-devel +BuildRequires: fuse3-devel BuildRequires: m4 BuildRequires: cmake3 BuildRequires: make Requires: bash -Requires: fuse +Requires: fuse3 Requires: rsync Obsoletes: spfs Provides: spfs = 0.38.0