Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
764f652b4f |
@@ -1,7 +1,7 @@
|
|||||||
Index: mpi-selector.csh.in
|
Index: mpi-selector.csh.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- mpi-selector.csh.in.orig 2009-08-02 09:58:22.000000000 +0200
|
--- a/mpi-selector.csh.in.orig 2009-08-02 09:58:22.000000000 +0200
|
||||||
+++ mpi-selector.csh.in 2010-12-10 16:44:40.618387677 +0100
|
+++ b/mpi-selector.csh.in 2010-12-10 16:44:40.618387677 +0100
|
||||||
@@ -1,4 +1,3 @@
|
@@ -1,4 +1,3 @@
|
||||||
-#!/bin/csh
|
-#!/bin/csh
|
||||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||||
@@ -9,8 +9,8 @@ Index: mpi-selector.csh.in
|
|||||||
# File installed for Bourne-shell startups to select which MPI
|
# File installed for Bourne-shell startups to select which MPI
|
||||||
Index: mpi-selector.sh.in
|
Index: mpi-selector.sh.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- mpi-selector.sh.in.orig 2009-08-02 09:58:22.000000000 +0200
|
--- a/mpi-selector.sh.in.orig 2009-08-02 09:58:22.000000000 +0200
|
||||||
+++ mpi-selector.sh.in 2010-12-10 16:44:44.690098294 +0100
|
+++ b/mpi-selector.sh.in 2010-12-10 16:44:44.690098294 +0100
|
||||||
@@ -1,4 +1,3 @@
|
@@ -1,4 +1,3 @@
|
||||||
-#!/bin/sh
|
-#!/bin/sh
|
||||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||||
|
@@ -1,10 +1,19 @@
|
|||||||
Index: mpi-selector.in
|
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.in.orig 2008-10-19 14:15:53.000000000 +0200
|
+++ mpi-selector-1.0.3/mpi-selector.in 2022-10-05 10:02:26.130874900 +0200
|
||||||
+++ mpi-selector.in 2010-06-02 15:33:58.043227260 +0200
|
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/env perl
|
-#!/usr/bin/env perl
|
||||||
+#!/usr/bin/perl
|
+#!/usr/bin/perl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
# 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,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 18 13:34:45 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Add reproducible.patch to override build date (boo#1047218)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Tue Jun 3 11:24:34 CEST 2014 - pth@suse.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mpi-selector
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: mpi-selector
|
||||||
Url: http://www.openfabrics.org
|
URL: http://www.openfabrics.org
|
||||||
Summary: Tool to provide defaults for which MPI implementation to use
|
Summary: Tool to provide defaults for which MPI implementation to use
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,9 +29,12 @@ Group: System/Console
|
|||||||
Source: http://www.openfabrics.org/downloads/mpi-selector/%{name}-%{version}.tar.gz
|
Source: http://www.openfabrics.org/downloads/mpi-selector/%{name}-%{version}.tar.gz
|
||||||
Patch3: mpi-selector-perl_path.patch
|
Patch3: mpi-selector-perl_path.patch
|
||||||
Patch4: mpi-selector-no_bang_line.patch
|
Patch4: mpi-selector-no_bang_line.patch
|
||||||
|
Patch5: reproducible.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: automake autoconf libtool
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -41,24 +47,35 @@ The default can be changed easily via the mpi-selector command --
|
|||||||
editing of shell startup files is not required.
|
editing of shell startup files is not required.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch3
|
|
||||||
%patch4
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-shell-startup-dir=/etc/profile.d
|
%configure --with-shell-startup-dir=/etc/profile.d --localstatedir=%{data_dir}
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} 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
|
%files
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%doc README LICENSE
|
%doc README
|
||||||
|
%license LICENSE
|
||||||
%{_bindir}/mpi-selector
|
%{_bindir}/mpi-selector
|
||||||
%{_bindir}/mpi-selector-menu
|
%{_bindir}/mpi-selector-menu
|
||||||
%{_mandir}/man1/mpi-selector.*
|
%{_mandir}/man1/mpi-selector.*
|
||||||
%{_mandir}/man1/mpi-selector-menu.*
|
%{_mandir}/man1/mpi-selector-menu.*
|
||||||
%config %attr(644,root,root) /etc/profile.d/*
|
%config %attr(644,root,root) /etc/profile.d/*
|
||||||
|
%dir %{data_dir}/%{name}
|
||||||
|
%dir %{data_dir}/%{name}/data
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
13
reproducible.patch
Normal file
13
reproducible.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: mpi-selector-1.0.3/configure
|
||||||
|
===================================================================
|
||||||
|
--- mpi-selector-1.0.3.orig/configure
|
||||||
|
+++ mpi-selector-1.0.3/configure
|
||||||
|
@@ -1730,7 +1730,7 @@ MPI_SELECTOR_MPIVARS_BASENAME="mpivars"
|
||||||
|
prefix=$prefix_save
|
||||||
|
|
||||||
|
# Information for the man page
|
||||||
|
-MAN_DATE=`date "+%B %d, %Y"`
|
||||||
|
+MAN_DATE=`date -r README "+%B %d, %Y"`
|
||||||
|
|
||||||
|
|
||||||
|
# Party on
|
Reference in New Issue
Block a user