Fix a shell bang in a certificate generator script
This commit is contained in:
parent
14e6ac0339
commit
08f6b2affd
@ -19,6 +19,9 @@ Source0: https://cpan.metacpan.org/authors/id/M/MA/MARSCHAP/perl-ldap-%{v
|
|||||||
Patch0: perl-ldap-0.65-Configure-usr-sbin-slapd-for-tests.patch
|
Patch0: perl-ldap-0.65-Configure-usr-sbin-slapd-for-tests.patch
|
||||||
# Remove an unreliable cancelling test
|
# Remove an unreliable cancelling test
|
||||||
Patch1: perl-ldap-0.66-test-Remove-a-test-for-cancelling-asynchronous-calls.patch
|
Patch1: perl-ldap-0.66-test-Remove-a-test-for-cancelling-asynchronous-calls.patch
|
||||||
|
# Fix a shell bang in a certificate generator script,
|
||||||
|
# <https://github.com/perl-ldap/perl-ldap/pull/55>
|
||||||
|
Patch2: perl-ldap-0.66-Correct-a-shell-bang-in-data-regenerate_cert.sh.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: perl-interpreter
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
@ -162,6 +165,7 @@ Tests from %{name}-%{version}. Execute them with "%{_libexecdir}/%{name}/test".
|
|||||||
%setup -q -n perl-ldap-%{version}
|
%setup -q -n perl-ldap-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
chmod -c 644 bin/* contrib/* lib/Net/LDAP/DSML.pm
|
chmod -c 644 bin/* contrib/* lib/Net/LDAP/DSML.pm
|
||||||
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' contrib/*
|
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' contrib/*
|
||||||
# Remove bundled libraries
|
# Remove bundled libraries
|
||||||
@ -172,7 +176,7 @@ sed -i -e '/^inc\// d' MANIFEST
|
|||||||
rm t/05dsml.t
|
rm t/05dsml.t
|
||||||
sed -i -e '/^t\/05dsml\.t/ d' MANIFEST
|
sed -i -e '/^t\/05dsml\.t/ d' MANIFEST
|
||||||
%endif
|
%endif
|
||||||
find -type f -exec chmod -x {} +
|
find -type f \! -name 'regenerate_cert.sh' -exec chmod -x {} +
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
|
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
|
||||||
@ -224,6 +228,7 @@ make test
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 29 2019 Petr Pisar <ppisar@redhat.com> - 1:0.66-6
|
* Tue Oct 29 2019 Petr Pisar <ppisar@redhat.com> - 1:0.66-6
|
||||||
- Fix tests subpackage test script
|
- Fix tests subpackage test script
|
||||||
|
- Fix a shell bang in a certificate generator script
|
||||||
|
|
||||||
* Mon Aug 26 2019 Petr Pisar <ppisar@redhat.com> - 1:0.66-5
|
* Mon Aug 26 2019 Petr Pisar <ppisar@redhat.com> - 1:0.66-5
|
||||||
- Package tests
|
- Package tests
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
From 4e63491c2a9ba2d9e9f5ad22360051038918c19d Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Tue, 29 Oct 2019 14:49:09 +0100
|
||||||
|
Subject: [PATCH] Correct a shell bang in data/regenerate_cert.sh
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
data/regenerate_cert.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/data/regenerate_cert.sh b/data/regenerate_cert.sh
|
||||||
|
index 9bf1879..8980fbe 100755
|
||||||
|
--- a/data/regenerate_cert.sh
|
||||||
|
+++ b/data/regenerate_cert.sh
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#/bin/sh
|
||||||
|
+#!/bin/sh
|
||||||
|
# regenerate server certificate for the SSL tests
|
||||||
|
|
||||||
|
if [ -e openssl.cnf ]; then
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user