fix SLES_9
OBS-URL: https://build.opensuse.org/package/show/utilities/ack?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
1db986a51a
commit
b2631aa426
23
ack-fix_smartcase_test_for_old_perl.patch
Normal file
23
ack-fix_smartcase_test_for_old_perl.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- t/longopts.t.orig 2010-11-12 00:24:07.000000000 +0100
|
||||
+++ t/longopts.t 2010-11-12 00:29:48.000000000 +0100
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
=cut
|
||||
|
||||
-use Test::More tests => 51;
|
||||
+use Test::More tests => 49;
|
||||
use File::Next 0.34; # For the reslash() function
|
||||
|
||||
use lib 't';
|
||||
@@ -65,11 +65,6 @@
|
||||
qr{UPPER CASE},
|
||||
qq{$opt turn on ignore-case when PATTERN has no upper}
|
||||
);
|
||||
- unlike(
|
||||
- +run_ack( $opt, 'Upper case', @files ),
|
||||
- qr{UPPER CASE},
|
||||
- qq{$opt does nothing when PATTERN has upper}
|
||||
- );
|
||||
option_in_usage( '--[no]smart-case' );
|
||||
|
||||
like(
|
4
ack.spec
4
ack.spec
@@ -6,6 +6,7 @@ Release: 0
|
||||
Summary: Grep-Like Text Finder
|
||||
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
|
||||
Patch1: ack-ignore-osc.patch
|
||||
Patch2: ack-fix_smartcase_test_for_old_perl.patch
|
||||
URL: http://petdance.com/ack/
|
||||
Group: Productivity/Text/Utilities
|
||||
License: Perl License
|
||||
@@ -41,6 +42,9 @@ code.
|
||||
%prep
|
||||
%setup -q -n "ack-%{version}"
|
||||
%patch1
|
||||
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1000
|
||||
%patch2
|
||||
%endif
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
|
Reference in New Issue
Block a user