Accepting request 247615 from home:AndreasStieger:branches:utilities
ack 2.14 OBS-URL: https://build.opensuse.org/request/show/247615 OBS-URL: https://build.opensuse.org/package/show/utilities/ack?expand=0&rev=19
This commit is contained in:
parent
29fa70ffcc
commit
b018f3b692
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:52f2d37bc2570d947171f10059d6ed4f0f23413849a546ca202b6e17debb7d2b
|
|
||||||
size 219614
|
|
3
ack-2.14.tar.gz
Normal file
3
ack-2.14.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8549a833efec158dc85bc6334b3a384ae5a389896942eab9a58c6e630c181b3f
|
||||||
|
size 222479
|
@ -1,14 +1,26 @@
|
|||||||
Index: ack-2.04/ConfigDefault.pm
|
From: Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
Date: Thu, 04 Sep 2014 23:09:09 +0100
|
||||||
|
Subject: Add RPM/.spec type
|
||||||
|
Upstream: Submitted
|
||||||
|
References: https://github.com/petdance/ack2/pull/490
|
||||||
|
|
||||||
|
Add rpm/.spec to known file types
|
||||||
|
|
||||||
|
---
|
||||||
|
ConfigDefault.pm | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
Index: ack-2.14/ConfigDefault.pm
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ack-2.04.orig/ConfigDefault.pm
|
--- ack-2.14.orig/ConfigDefault.pm 2014-09-04 22:19:55.000000000 +0100
|
||||||
+++ ack-2.04/ConfigDefault.pm
|
+++ ack-2.14/ConfigDefault.pm 2014-09-04 22:20:35.000000000 +0100
|
||||||
@@ -236,6 +236,9 @@ sub _options_block {
|
@@ -342,6 +342,9 @@ sub _options_block {
|
||||||
# R http://www.r-project.org/
|
# http://docutils.sourceforge.net/rst.html
|
||||||
--type-add=rr:ext:R
|
--type-add=rst:ext:rst
|
||||||
|
|
||||||
+# RPM
|
+# RPM
|
||||||
+--type-add=rpm:ext:rpm,spec
|
+--type-add=rpm:ext:spec
|
||||||
+
|
+
|
||||||
# Ruby http://www.ruby-lang.org/
|
# Ruby
|
||||||
|
# http://www.ruby-lang.org/
|
||||||
--type-add=ruby:ext:rb,rhtml,rjs,rxml,erb,rake,spec
|
--type-add=ruby:ext:rb,rhtml,rjs,rxml,erb,rake,spec
|
||||||
--type-add=ruby:is:Rakefile
|
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
--- 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(
|
|
@ -1,30 +1,37 @@
|
|||||||
|
From: Andreas Stieger <andreas.stieger@gmx.de>
|
||||||
|
Date: Thu, 04 Sep 2014 23:09:09 +0100
|
||||||
|
Subject: Ignore .osc
|
||||||
|
Upstream: No
|
||||||
|
|
||||||
|
Ignore .osc
|
||||||
|
|
||||||
---
|
---
|
||||||
ConfigDefault.pm | 3 +++
|
ConfigDefault.pm | 3 +++
|
||||||
t/ack-dump.t | 2 +-
|
t/ack-dump.t | 2 +-
|
||||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
Index: ack-2.12/ConfigDefault.pm
|
Index: ack-2.14/ConfigDefault.pm
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ack-2.12.orig/ConfigDefault.pm 2013-11-30 18:34:00.000000000 +0000
|
--- ack-2.14.orig/ConfigDefault.pm 2014-09-04 22:13:22.000000000 +0100
|
||||||
+++ ack-2.12/ConfigDefault.pm 2014-01-17 22:56:49.000000000 +0000
|
+++ ack-2.14/ConfigDefault.pm 2014-09-04 22:13:31.000000000 +0100
|
||||||
@@ -47,6 +47,9 @@ sub _options_block {
|
@@ -58,6 +58,9 @@ sub _options_block {
|
||||||
# Mercurial
|
# http://mercurial.selenic.com/
|
||||||
--ignore-directory=is:.hg
|
--ignore-directory=is:.hg
|
||||||
|
|
||||||
+# openSUSE Commander
|
+# openSUSE Commander
|
||||||
+--ignore-directory=is:.osc
|
+--ignore-directory=is:.osc
|
||||||
+
|
+
|
||||||
# quilt
|
# quilt
|
||||||
|
# http://directory.fsf.org/wiki/Quilt
|
||||||
--ignore-directory=is:.pc
|
--ignore-directory=is:.pc
|
||||||
|
Index: ack-2.14/t/ack-dump.t
|
||||||
Index: ack-2.12/t/ack-dump.t
|
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ack-2.12.orig/t/ack-dump.t 2013-11-30 18:34:00.000000000 +0000
|
--- ack-2.14.orig/t/ack-dump.t 2014-09-04 22:13:31.000000000 +0100
|
||||||
+++ ack-2.12/t/ack-dump.t 2014-01-17 22:56:35.000000000 +0000
|
+++ ack-2.14/t/ack-dump.t 2014-09-04 22:14:07.000000000 +0100
|
||||||
@@ -32,5 +32,5 @@ DUMP: {
|
@@ -31,5 +31,5 @@ DUMP: {
|
||||||
is( scalar @perl, 2, 'Two specs for Perl' );
|
is( scalar @perl, 2, 'Two specs for Perl' );
|
||||||
|
|
||||||
my @ignore_dir = grep { /ignore-dir/ } @results;
|
my @ignore_dir = grep { /ignore-dir/ } @results;
|
||||||
- is( scalar @ignore_dir, 23, 'Twenty-three specs for ignoring directories' );
|
- is( scalar @ignore_dir, 24, 'Twenty-four specs for ignoring directories' );
|
||||||
+ is( scalar @ignore_dir, 24, 'Twenty-four specs for ignoring directories' );
|
+ is( scalar @ignore_dir, 25, 'Twenty-five specs for ignoring directories' );
|
||||||
}
|
}
|
||||||
|
23
ack.changes
23
ack.changes
@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 4 22:02:47 UTC 2014 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
- ack 2.14:
|
||||||
|
- Enhancements:
|
||||||
|
* ack now ignores JavaScript and CSS source maps
|
||||||
|
- Bug fixes:
|
||||||
|
* The -s flag would fail to suppress certain warnings
|
||||||
|
* The -w flag would fail to work properly with regex features
|
||||||
|
such as alternation
|
||||||
|
* The -g flag should now work faster on larger codebases
|
||||||
|
- Includes enhancements from 2.13 series:
|
||||||
|
* Add docs for available colors in ack.
|
||||||
|
* --create-ackrc keeps the comments that describe each of the
|
||||||
|
options, and it shows the ack version number
|
||||||
|
* Now ignores Cabal (Haskell) sandboxes
|
||||||
|
* Added filetypes for Jade, Smarty and Stylus
|
||||||
|
- updated patches for context changes:
|
||||||
|
* ack-add_spec.patch
|
||||||
|
* ack-ignore-osc.patch
|
||||||
|
- removed patches:
|
||||||
|
* ack-fix_smartcase_test_for_old_perl.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 17 22:57:14 UTC 2014 - andreas.stieger@gmx.de
|
Fri Jan 17 22:57:14 UTC 2014 - andreas.stieger@gmx.de
|
||||||
|
|
||||||
|
40
ack.spec
40
ack.spec
@ -1,4 +1,3 @@
|
|||||||
# vim: set ts=4 sw=4 et:
|
|
||||||
#
|
#
|
||||||
# spec file for package ack
|
# spec file for package ack
|
||||||
#
|
#
|
||||||
@ -17,42 +16,38 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{!?perl_make_install: %global perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor}
|
%define run_tests 0%{?suse_version} >= 1210
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1100 || 0%{?fedora} >= 13
|
%if 0%{?suse_version} >= 1100 || 0%{?fedora} >= 13
|
||||||
%define with_pod 1
|
%define with_pod 1
|
||||||
%else
|
%else
|
||||||
%define with_pod 0
|
%define with_pod 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define run_tests 0%{?suse_version} >= 1210
|
|
||||||
|
|
||||||
Name: ack
|
Name: ack
|
||||||
Version: 2.12
|
Version: 2.14
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Grep-Like Text Finder
|
Summary: Grep-Like Text Finder
|
||||||
License: Artistic-2.0
|
License: Artistic-2.0
|
||||||
Group: Productivity/Text/Utilities
|
Group: Productivity/Text/Utilities
|
||||||
|
Url: http://beyondgrep.com/
|
||||||
Source: http://cpan.metacpan.org/authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
|
Source: http://cpan.metacpan.org/authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
|
||||||
Patch1: ack-ignore-osc.patch
|
Patch1: ack-ignore-osc.patch
|
||||||
Patch2: ack-fix_smartcase_test_for_old_perl.patch
|
|
||||||
Patch3: ack-add_spec.patch
|
Patch3: ack-add_spec.patch
|
||||||
Url: http://beyondgrep.com/
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
Requires: perl
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl >= 5.8.8
|
BuildRequires: perl >= 5.8.8
|
||||||
BuildRequires: perl(File::Next) >= 1.10
|
BuildRequires: perl(File::Next) >= 1.10
|
||||||
%if %run_tests
|
Requires: perl
|
||||||
|
Requires: perl-App-Ack = %{version}-%{release}
|
||||||
|
Requires: perl-base = %{perl_version}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
%{!?perl_make_install: %global perl_make_install make DESTDIR=%{buildroot} install_vendor}
|
||||||
|
%if %{run_tests}
|
||||||
BuildRequires: perl(File::Temp) >= 0.19
|
BuildRequires: perl(File::Temp) >= 0.19
|
||||||
BuildRequires: perl(IO::Pty)
|
BuildRequires: perl(IO::Pty)
|
||||||
%endif
|
%endif
|
||||||
%if %with_pod
|
%if %{with_pod}
|
||||||
BuildRequires: perl(Test::Pod) >= 1.14
|
BuildRequires: perl(Test::Pod) >= 1.14
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
Requires: perl-App-Ack = %{version}-%{release}
|
|
||||||
Requires: perl-base = %{perl_version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ack is a grep-like tool tailored to working with large trees of source code.
|
ack is a grep-like tool tailored to working with large trees of source code.
|
||||||
@ -60,19 +55,16 @@ ack is a grep-like tool tailored to working with large trees of source code.
|
|||||||
%package -n perl-App-Ack
|
%package -n perl-App-Ack
|
||||||
Summary: Grep-Like Text Finder Perl Module
|
Summary: Grep-Like Text Finder Perl Module
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Requires: perl-base = %{perl_version}
|
|
||||||
Requires: perl(File::Next) >= 1.10
|
Requires: perl(File::Next) >= 1.10
|
||||||
|
Requires: perl-base = %{perl_version}
|
||||||
|
|
||||||
%description -n perl-App-Ack
|
%description -n perl-App-Ack
|
||||||
App::Ack is a grep-like tool tailored to working with large trees of source
|
App::Ack is a grep-like tool tailored to working with large trees of source
|
||||||
code.
|
code.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "ack-%{version}"
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1000 || 0%{?rhel_version} > 0 && 0%{?rhel_version} < 500
|
|
||||||
%patch2
|
|
||||||
%endif
|
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -91,7 +83,7 @@ rm "%{buildroot}%{perl_archlib}/perllocal.pod"
|
|||||||
# remove .packlist file
|
# remove .packlist file
|
||||||
rm -rf "%{buildroot}%{perl_vendorarch}/auto/ack"
|
rm -rf "%{buildroot}%{perl_vendorarch}/auto/ack"
|
||||||
|
|
||||||
rm -f "%{buildroot}/var/adm/perl-modules/ack"
|
rm -f "%{buildroot}%{_localstatedir}/adm/perl-modules/ack"
|
||||||
|
|
||||||
install -d rpmdoc_ack
|
install -d rpmdoc_ack
|
||||||
for f in Changes README.md LICENSE.md; do
|
for f in Changes README.md LICENSE.md; do
|
||||||
@ -99,8 +91,8 @@ for f in Changes README.md LICENSE.md; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %run_tests
|
%if %{run_tests}
|
||||||
make test
|
make test %{?_smp_mflags}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
Reference in New Issue
Block a user