Compare commits

1 Commits
1.1 ... main

5 changed files with 68 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
Index: mpi-selector.csh.in
===================================================================
--- 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
--- a/mpi-selector.csh.in.orig 2009-08-02 09:58:22.000000000 +0200
+++ b/mpi-selector.csh.in 2010-12-10 16:44:40.618387677 +0100
@@ -1,4 +1,3 @@
-#!/bin/csh
# 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
Index: mpi-selector.sh.in
===================================================================
--- 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
--- a/mpi-selector.sh.in.orig 2009-08-02 09:58:22.000000000 +0200
+++ b/mpi-selector.sh.in 2010-12-10 16:44:44.690098294 +0100
@@ -1,4 +1,3 @@
-#!/bin/sh
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.

View File

@@ -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~

View File

@@ -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

View File

@@ -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
@@ -26,9 +29,12 @@ Group: System/Console
Source: http://www.openfabrics.org/downloads/mpi-selector/%{name}-%{version}.tar.gz
Patch3: mpi-selector-perl_path.patch
Patch4: mpi-selector-no_bang_line.patch
Patch5: reproducible.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake autoconf libtool
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%{perl_requires}
%description
@@ -41,24 +47,35 @@ The default can be changed easily via the mpi-selector command --
editing of shell startup files is not required.
%prep
%setup -q
%patch3
%patch4
%autosetup -p1
%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

13
reproducible.patch Normal file
View 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