From c2d51cd159027144f2a2ec4c91b33eb5e72564bef66e9b6059d9f495f75b9a37 Mon Sep 17 00:00:00 2001 From: Nicolas Morey-Chaisemartin Date: Thu, 9 Nov 2017 11:59:16 +0000 Subject: [PATCH] Packaging fixes * Fix vma_extra.h install dir * Fix vma.service file rights * Mark 30-libvma-limits.conf as config OBS-URL: https://build.opensuse.org/package/show/science:HPC/libvma?expand=0&rev=3 --- libvma.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libvma.spec b/libvma.spec index c3f4603..30c5d88 100644 --- a/libvma.spec +++ b/libvma.spec @@ -83,11 +83,11 @@ rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}/etc/init.d/vma install -D -m 755 tests/vma_perf_envelope/vma_perf_envelope.sh %{buildroot}/%{_datadir}/%{name}/vma_perf_envelope.sh -install -m 644 src/vma/vma_extra.h %{buildroot}/%{_includedir}/vma_extra.h +install -m 644 src/vma/vma_extra.h %{buildroot}/%{_includedir}/mellanox/vma_extra.h install -m 644 src/vma/util/libvma.conf %{buildroot}/%{_sysconfdir}/ install -s -m 755 src/stats/vma_stats %{buildroot}/%{_bindir}/vma_stats install -s -m 755 tools/daemon/vmad %{buildroot}/%{_sbindir}/vmad -install -D -m 755 %{S:1} %{buildroot}%{_unitdir}/vma.service +install -D -m 644 %{S:1} %{buildroot}%{_unitdir}/vma.service for service in vma; do ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc${service}; done @@ -115,7 +115,7 @@ for service in vma; do ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc${se %{_docdir}/%{name}-%{version}/journal.txt %{_docdir}/%{name}-%{version}/VMA_VERSION %config(noreplace) %{_sysconfdir}/libvma.conf -%{_sysconfdir}/security/limits.d/30-libvma-limits.conf +%config %{_sysconfdir}/security/limits.d/30-libvma-limits.conf %{_sbindir}/vmad %{_sbindir}/rcvma %{_unitdir}/vma.service @@ -127,7 +127,7 @@ for service in vma; do ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc${se %files devel %defattr(-,root,root,-) -%{_includedir}/ +%{_includedir}/mellanox %{_libdir}/%{name}.so %changelog