commit 8b8d1f814602cf97d6a71ea268d45ecfdb98355a
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Sep 21 21:44:48 2017 +0200
Initial import
.gitignore | 1 +
nvidia-persistenced.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 79 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8ae0e38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+nvidia-persistenced-*.tar.gz
diff --git a/nvidia-persistenced.spec b/nvidia-persistenced.spec
new file mode 100644
index 0000000..3dbd63e
--- /dev/null
+++ b/nvidia-persistenced.spec
@@ -0,0 +1,77 @@
+Name: nvidia-persistenced
+Version: 384.59
+Release: 1%{?dist}
+Summary: Daemon for maintaining persistent driver state
+
+License: MIT and GPLv2+
+URL:
https://github.com/NVIDIA/nvidia-persistenced
+Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+ExclusiveArch: x86_64 i686 armv7hl aarch64 ppc64le
+
+BuildRequires: m4
+
+Buildrequires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+
+%description
+A daemon for maintaining persistent driver state,
+specifically for use by the NVIDIA Linux driver.
+
+
+%prep
+%setup -q
+
+
+%build
+export CFLAGS="%{optflags}"
+export LDFLAGS="%{?__global_ldflags}"
+%make_build \
+ NVDEBUG=1 \
+ NV_VERBOSE=1 \
+ STRIP_CMD=true NV_KEEP_UNSTRIPPED_BINARIES=1 \
+ X_LDFLAGS="-L%{_libdir}" \
+ CC_ONLY_CFLAGS="%{optflags}"
+(cd _out/Linux_*/ ; cp %{name}.unstripped %{name} ; cd -)
+
+
+%install
+%make_install NV_VERBOSE=1 PREFIX=%{_prefix}
+
+#Install the initscript
+mkdir -p %{buildroot}%{_unitdir}
+install -pm 0644 init/systemd/%{name}.service.template \
+ %{buildroot}%{_unitdir}/%{name}.service
+#Change the daemon running owner
+sed -i -e "s/__USER__/root/" %{buildroot}%{_unitdir}/%{name}.service
+
+#Fix perm
+chmod -x %{buildroot}%{_mandir}/man1/%{name}.1.*
+
+
+%post
+%systemd_post %{name}.service
+
+%preun
+%systemd_preun %{name}.service
+
+%postun
+%systemd_postun %{name}.service
+
+
+%files
+%doc README
+%license COPYING
+%{_unitdir}/%{name}.service
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1.*
+
+
+%changelog
+* Thu Aug 03 2017 Nicolas Chauvet <kwizart(a)gmail.com> - 384.59-1
+- Update to 384.59
+
+* Thu Jun 27 2013 Nicolas Chauvet <kwizart(a)gmail.com> - 319.32-1
+- Initial version
+
diff --git a/sources b/sources
index e69de29..4951428 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+93f13c1a548d41df824c8e18de8c51a2 nvidia-persistenced-384.59.tar.gz