forked from pool/apptainer
Accepting request 1009691 from home:mslacken:pr
- previous versions did not build squashfuse_ll, fixed this OBS-URL: https://build.opensuse.org/request/show/1009691 OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=25
This commit is contained in:
parent
8016c940db
commit
260f631803
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 11 08:19:01 UTC 2022 - Christian Goll <cgoll@suse.com>
|
||||||
|
|
||||||
|
- previous versions did not build squashfuse_ll, fixed this
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 7 12:42:57 UTC 2022 - Christian Goll <cgoll@suse.com>
|
Fri Oct 7 12:42:57 UTC 2022 - Christian Goll <cgoll@suse.com>
|
||||||
|
|
||||||
|
@ -81,13 +81,18 @@ containers that can be used across host environments.
|
|||||||
%setup -b 10 -n squashfuse-%{squashfuse_version}
|
%setup -b 10 -n squashfuse-%{squashfuse_version}
|
||||||
%patch -P 10 -p1
|
%patch -P 10 -p1
|
||||||
%endif
|
%endif
|
||||||
%setup -q -n gopath/%{apptainerpath} -c
|
%setup -q -n %{name}-%{version}
|
||||||
cp %{S:1} %{S:2} %{S:3} .
|
cp %{S:1} %{S:2} %{S:3} .
|
||||||
mv %{name}-%{version}%{?vers_suffix} %{name}
|
|
||||||
cd %{_builddir}/gopath/%{apptainerpath}/apptainer
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{name}
|
%if "%{?squashfuse_version}" != ""
|
||||||
|
pushd ../squashfuse-%{squashfuse_version}
|
||||||
|
./autogen.sh
|
||||||
|
FLAGS=-std=c99 ./configure --enable-multithreading
|
||||||
|
%make_build squashfuse_ll
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
# create VERSION file
|
# create VERSION file
|
||||||
echo %version > VERSION
|
echo %version > VERSION
|
||||||
# Not all of these parameters currently have an effect, but they might be
|
# Not all of these parameters currently have an effect, but they might be
|
||||||
@ -109,50 +114,42 @@ tar xzf %{S:9}
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
--without-suid
|
--without-suid
|
||||||
cd builddir
|
|
||||||
make V="" old_config=
|
%make_build -C builddir V=""
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export GOPATH=$PWD/gopath
|
export GOPATH=$PWD/gopath
|
||||||
export GOFLAGS=-mod=vendor
|
export GOFLAGS=-mod=vendor
|
||||||
export PATH=$GOPATH/bin:$PATH
|
export PATH=$GOPATH/bin:$PATH
|
||||||
cd %{name}/builddir
|
|
||||||
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
%make_install -C builddir V=
|
||||||
cd ../..
|
|
||||||
|
%if "%{?squashfuse_version}" != ""
|
||||||
|
install -m 755 ../squashfuse-%{squashfuse_version}/squashfuse_ll %{buildroot}%{_libexecdir}/%{name}/bin/squashfuse_ll
|
||||||
|
%endif
|
||||||
|
|
||||||
%fdupes apptainer/examples
|
%fdupes apptainer/examples
|
||||||
mkdir -p .tmp
|
|
||||||
for j in LICENSE.md LICENSE; do
|
|
||||||
for i in `find . -name $j`; do
|
|
||||||
k="`basename ${i/%\/$j/-$j}`"
|
|
||||||
if ! [[ $k =~ apptainer-.* ]]; then
|
|
||||||
cp $i .tmp/$k
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
%fdupes -s .tmp/
|
|
||||||
mv .tmp/* .
|
|
||||||
rmdir .tmp
|
|
||||||
%fdupes -s %buildroot
|
%fdupes -s %buildroot
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc apptainer/examples
|
%doc examples
|
||||||
%doc apptainer/CONTRIBUTING.md
|
%doc CONTRIBUTING.md
|
||||||
%doc apptainer/README.md
|
%doc README.md
|
||||||
%doc apptainer/CHANGELOG.md
|
%doc CHANGELOG.md
|
||||||
%doc apptainer/CONTRIBUTORS.md
|
%doc CONTRIBUTORS.md
|
||||||
%doc %{basename:%{S:1}}
|
%doc %{basename:%{S:1}}
|
||||||
%doc %{basename:%{S:2}}
|
%doc %{basename:%{S:2}}
|
||||||
%doc %{basename:%{S:3}}
|
%doc %{basename:%{S:3}}
|
||||||
%license apptainer/LICENSE.md
|
%license LICENSE.md
|
||||||
%license *-LICENSE.md *-LICENSE
|
%license LICENSE_THIRD_PARTY.md
|
||||||
|
%license LICENSE_DEPENDENCIES.md
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%dir %{_libexecdir}/apptainer
|
%dir %{_libexecdir}/apptainer
|
||||||
%dir %{_libexecdir}/apptainer/bin
|
%dir %{_libexecdir}/apptainer/bin
|
||||||
%dir %{_libexecdir}/apptainer/cni
|
%dir %{_libexecdir}/apptainer/cni
|
||||||
%dir %{_libexecdir}/apptainer/lib
|
%dir %{_libexecdir}/apptainer/lib
|
||||||
%{_libexecdir}/apptainer/bin/starter
|
%{_libexecdir}/apptainer/bin/starter
|
||||||
|
%{_libexecdir}/apptainer/bin/squashfuse_ll
|
||||||
%{_libexecdir}/apptainer/lib/offsetpreload.so
|
%{_libexecdir}/apptainer/lib/offsetpreload.so
|
||||||
%{_libexecdir}/apptainer/cni/*
|
%{_libexecdir}/apptainer/cni/*
|
||||||
%dir %{_sysconfdir}/apptainer
|
%dir %{_sysconfdir}/apptainer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user