Accepting request 1100654 from science:HPC
OBS-URL: https://build.opensuse.org/request/show/1100654 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpi-selector?expand=0&rev=21
This commit is contained in:
parent
3a0706a9ef
commit
a22db03c86
@ -1,10 +1,19 @@
|
||||
Index: mpi-selector.in
|
||||
===================================================================
|
||||
--- mpi-selector.in.orig 2008-10-19 14:15:53.000000000 +0200
|
||||
+++ mpi-selector.in 2010-06-02 15:33:58.043227260 +0200
|
||||
diff -u mpi-selector-1.0.3.orig/mpi-selector.in mpi-selector-1.0.3/mpi-selector.in
|
||||
--- mpi-selector-1.0.3.orig/mpi-selector.in 2009-12-29 18:52:49.000000000 +0100
|
||||
+++ mpi-selector-1.0.3/mpi-selector.in 2022-10-05 10:02:26.130874900 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env perl
|
||||
+#!/usr/bin/perl
|
||||
#
|
||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||
#
|
||||
diff -u mpi-selector-1.0.3.orig/mpi-selector-menu mpi-selector-1.0.3/mpi-selector-menu
|
||||
--- mpi-selector-1.0.3.orig/mpi-selector-menu 2009-12-29 18:52:49.000000000 +0100
|
||||
+++ mpi-selector-1.0.3/mpi-selector-menu 2022-10-05 10:01:18.838421798 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env perl
|
||||
+#!/usr/bin/perl
|
||||
#
|
||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||
#
|
||||
Only in mpi-selector-1.0.3: mpi-selector-menu~
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 5 08:17:39 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
||||
|
||||
- Move data_dir from /var/mpi-selector to /etc/mpi-selector to solve ALP issues
|
||||
- Auto-migrate registered MPI from the old to the new directory
|
||||
- Update mpi-selector-perl_path.patch to fix perl path in mpi-selector-menu
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 11:24:34 CEST 2014 - pth@suse.de
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package mpi-selector
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,12 +12,15 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define old_datadir %{_localstatedir}
|
||||
%define data_dir %{_sysconfdir}
|
||||
|
||||
Name: mpi-selector
|
||||
Url: http://www.openfabrics.org
|
||||
URL: http://www.openfabrics.org
|
||||
Summary: Tool to provide defaults for which MPI implementation to use
|
||||
Version: 1.0.3
|
||||
Release: 0
|
||||
@ -28,7 +31,9 @@ Patch3: mpi-selector-perl_path.patch
|
||||
Patch4: mpi-selector-no_bang_line.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: automake autoconf libtool
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@ -41,24 +46,37 @@ The default can be changed easily via the mpi-selector command --
|
||||
editing of shell startup files is not required.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch3
|
||||
%setup -q
|
||||
%patch3 -p1
|
||||
%patch4
|
||||
|
||||
%build
|
||||
%configure --with-shell-startup-dir=/etc/profile.d
|
||||
%configure --with-shell-startup-dir=/etc/profile.d --localstatedir=%{data_dir}
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
mkdir -p %{buildroot}%{data_dir}/%{name}/data
|
||||
|
||||
%post
|
||||
if [ $1 == 2 ]; then
|
||||
# During update, migrate file from older path if necessary
|
||||
if [ -d "%{old_datadir}/%{name}/data" ]; then
|
||||
mv -u %{old_datadir}/%{name}/data/* %{data_dir}/%{name}/data
|
||||
rm -Rf %{old_datadir}/%{name}/data/
|
||||
fi
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%doc README LICENSE
|
||||
%doc README
|
||||
%license LICENSE
|
||||
%{_bindir}/mpi-selector
|
||||
%{_bindir}/mpi-selector-menu
|
||||
%{_mandir}/man1/mpi-selector.*
|
||||
%{_mandir}/man1/mpi-selector-menu.*
|
||||
%config %attr(644,root,root) /etc/profile.d/*
|
||||
%dir %{data_dir}/%{name}
|
||||
%dir %{data_dir}/%{name}/data
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user