SHA256
1
0
forked from pool/msmtp

Accepting request 585325 from home:benoit_monin:branches:server:mail

fix bash scripts shebang

OBS-URL: https://build.opensuse.org/request/show/585325
OBS-URL: https://build.opensuse.org/package/show/server:mail/msmtp?expand=0&rev=79
This commit is contained in:
Benoît Monin 2018-03-10 17:25:37 +00:00 committed by Git OBS Bridge
parent f4aa6d7995
commit e47cf85251
2 changed files with 17 additions and 2 deletions

View File

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

View File

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