Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mpi-selector for openSUSE:Factory checked in at 2023-07-26 13:22:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mpi-selector (Old) and /work/SRC/openSUSE:Factory/.mpi-selector.new.15225 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mpi-selector" Wed Jul 26 13:22:12 2023 rev:21 rq:1100654 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/mpi-selector/mpi-selector.changes 2014-07-15 16:25:48.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mpi-selector.new.15225/mpi-selector.changes 2023-07-26 13:22:28.823495467 +0200 @@ -1,0 +2,7 @@ +Wed Oct 5 08:17:39 UTC 2022 - Nicolas Morey-Chaisemartin <nmoreychaisemar...@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 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mpi-selector.spec ++++++ --- /var/tmp/diff_new_pack.zurDKK/_old 2023-07-26 13:22:29.483499203 +0200 +++ /var/tmp/diff_new_pack.zurDKK/_new 2023-07-26 13:22:29.487499225 +0200 @@ -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 @@ 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 @@ -42,23 +47,36 @@ %prep %setup -q -%patch3 +%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 ++++++ mpi-selector-perl_path.patch ++++++ --- /var/tmp/diff_new_pack.zurDKK/_old 2023-07-26 13:22:29.515499384 +0200 +++ /var/tmp/diff_new_pack.zurDKK/_new 2023-07-26 13:22:29.519499407 +0200 @@ -1,11 +1,20 @@ -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~