Accepting request 1133866 from home:bmwiedemann:branches:science:HPC

- Add reproducible.patch to override build date (boo#1047218)

and switch to autosetup (needed adaption of patch4)

OBS-URL: https://build.opensuse.org/request/show/1133866
OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpi-selector?expand=0&rev=4
This commit is contained in:
Nicolas Morey 2024-01-03 09:25:28 +00:00 committed by Git OBS Bridge
parent a22db03c86
commit ef8a50cd94
4 changed files with 24 additions and 7 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,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@ -29,6 +29,7 @@ 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: autoconf
@ -46,9 +47,7 @@ The default can be changed easily via the mpi-selector command --
editing of shell startup files is not required.
%prep
%setup -q
%patch3 -p1
%patch4
%autosetup -p1
%build
%configure --with-shell-startup-dir=/etc/profile.d --localstatedir=%{data_dir}

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