Skip to content

Commit

Permalink
Update rpm spec files and docker image for el9
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Bottriell <ryan@bottriell.ca>
  • Loading branch information
rydrman committed Mar 5, 2024
1 parent 1c60ee3 commit 1bde0f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
"acyclical",
"addrs",
"alib",
"almalinux",
"anys",
"apkg",
"argparse",
Expand Down Expand Up @@ -768,5 +769,6 @@
"xdir",
"xino",
"ystem"
]
],
"enabled": true
}
5 changes: 3 additions & 2 deletions rpmbuild.Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions spfs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions spk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bde0f8

Please sign in to comment.