mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-07 12:22:19 +00:00
* chore(libnvidia-container): Use %git_clone
* fix: Remove the cursed stuff from previous build method
(cherry picked from commit 0b7a345cbb)
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -25,20 +25,15 @@ BuildRequires: rpcgen
|
||||
The nvidia-container library provides an interface to configure containers using NVIDIA hardware.
|
||||
|
||||
%prep
|
||||
rm -rf ./*
|
||||
### Must be built this way because the Makefile expects be to in a Git directory.
|
||||
git clone https://github.com/NVIDIA/%{name}.git
|
||||
cd %{name}
|
||||
git checkout v%{version}
|
||||
%git_clone %{url}.git v%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
cd %{name}
|
||||
make distclean
|
||||
%make_build REVISION=%{version} WITH_LIBELF=yes
|
||||
|
||||
%install
|
||||
cd %{name}
|
||||
make install DESTDIR=%{buildroot} REVISION=%{version} WITH_LIBELF=yes \
|
||||
LDCONFIG=/bin/true \
|
||||
prefix=%{_prefix} \
|
||||
|
||||
Reference in New Issue
Block a user