diff --git a/msmtp.changes b/msmtp.changes index 7cecece..6cad8b4 100644 --- a/msmtp.changes +++ b/msmtp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 10 14:05:08 UTC 2018 - benoit.monin@gmx.fr + +- fix bash scripts shebang + ------------------------------------------------------------------- Sun Mar 26 19:29:42 UTC 2017 - dev+novell@devmotion.de diff --git a/msmtp.spec b/msmtp.spec index 7605a9a..9d58987 100644 --- a/msmtp.spec +++ b/msmtp.spec @@ -1,7 +1,7 @@ # # spec file for package msmtp # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,7 +54,7 @@ Requires(post): /sbin/install-info Requires(preun):/sbin/install-info %endif Summary: Lightweight SMTP Client -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Productivity/Networking/Email/Utilities Url: http://msmtp.sourceforge.net/ Source: http://prdownloads.sourceforge.net/msmtp/msmtp-%{version}.tar.xz @@ -97,6 +97,16 @@ a minimalistic replacement of sendmail. %prep %setup -q +# fix bash scripts shebang while preserving mtime +for i in scripts/msmtpqueue/*.sh \ + scripts/msmtpq/msmtpq \ + scripts/msmtpq/msmtp-queue \ + scripts/set_sendmail/*.sh \ + scripts/find_alias/*.sh; do + sed '1 s|#!/usr/bin/env bash|#!/bin/bash|' $i > $i.new + touch -r $i $i.new + mv $i.new $i +done %build %if 0%{?suse_version} > 1000