From 960488a1635460f845ddb330cba23448d8b2c7ce Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: Sep 13 2019 14:29:36 +0000 Subject: restructure files to remain below github limit of 1000 entries --- diff --git a/ack-add_spec.patch b/ack-add_spec.patch new file mode 100644 index 0000000..90ec985 --- /dev/null +++ b/ack-add_spec.patch @@ -0,0 +1,26 @@ +From: Andreas Stieger +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/lib/App/Ack/ConfigDefault.pm +=================================================================== +--- ack-2.14.orig/lib/App/Ack/ConfigDefault.pm 2014-09-04 22:19:55.000000000 +0100 ++++ ack-2.14/lib/App/Ack/ConfigDefault.pm 2014-09-04 22:20:35.000000000 +0100 +@@ -342,6 +342,9 @@ sub _options_block { + # http://docutils.sourceforge.net/rst.html + --type-add=rst:ext:rst + ++# RPM ++--type-add=rpm:ext:spec ++ + # Ruby + # https://www.ruby-lang.org/ + --type-add=ruby:ext:rb,rhtml,rjs,rxml,erb,rake,spec diff --git a/ack-ignore-osc.patch b/ack-ignore-osc.patch new file mode 100644 index 0000000..34c195e --- /dev/null +++ b/ack-ignore-osc.patch @@ -0,0 +1,37 @@ +From: Andreas Stieger +Date: Thu, 04 Sep 2014 23:09:09 +0100 +Subject: Ignore .osc +Upstream: No + +Ignore .osc + +--- + ConfigDefault.pm | 3 +++ + t/ack-dump.t | 2 +- + 2 files changed, 4 insertions(+), 1 deletion(-) + +Index: ack-v3.0.2/lib/App/Ack/ConfigDefault.pm +=================================================================== +--- ack-v3.0.2.orig/lib/App/Ack/ConfigDefault.pm ++++ ack-v3.0.2/lib/App/Ack/ConfigDefault.pm +@@ -70,6 +70,9 @@ sub _options_block { + # https://www.mercurial-scm.org/ + --ignore-directory=is:.hg + ++# openSUSE Commander ++--ignore-directory=is:.osc ++ + # Quilt + # https://directory.fsf.org/wiki/Quilt + --ignore-directory=is:.pc +Index: ack-v3.0.2/t/ack-dump.t +=================================================================== +--- ack-v3.0.2.orig/t/ack-dump.t ++++ ack-v3.0.2/t/ack-dump.t +@@ -29,5 +29,5 @@ DUMP: { + is( scalar @perl, 2, 'Two specs for Perl' ); + + my @ignore_dir = grep { /ignore-dir/ } @results; +- is( scalar @ignore_dir, 24, 'Twenty-four specs for ignoring directories' ); ++ is( scalar @ignore_dir, 25, 'Twenty-five specs for ignoring directories' ); + } diff --git a/ack.changes b/ack.changes new file mode 100644 index 0000000..e2179c5 --- /dev/null +++ b/ack.changes @@ -0,0 +1,353 @@ +------------------------------------------------------------------- +Wed Aug 21 13:12:17 UTC 2019 - Dan Čermák + +- Rebase patches: + * ack-add_spec.patch + * ack-ignore-osc.patch + +------------------------------------------------------------------- +Wed Aug 21 12:11:56 UTC 2019 - Christopher Childress + +- ack 3.0.3: + * Made smartcase's check for lowercase patterns smarter. + * Updated many URLs, especially in the config. (GH #223) + +------------------------------------------------------------------- +Sat Aug 3 15:01:41 UTC 2019 - Andreas Stieger + +- ack 3.0.2: + * Improved -w option + * -w option will warn if your pattern does not lend itself to + word matching + * -i, -I and --smart-case + * --proximate=N option + * Add --pod and --markdown + * Add GNUmakefile to the list of makefile specs + * Add -S as a synonym for --smart-case + * no longer highlights capture groups + * --output allows fewer special variables + +------------------------------------------------------------------- +Fri Mar 22 21:11:41 UTC 2019 - Matthias Eliasson + +- ack 2.28: + * The --help-rgb-colors option now displays the RGB codes organized by HSL + values for easier picking. +- includes 2.26: + * Added --help-colors and --help-rgb-colors options to display colors + available for color options. + * Clarified the docs for --lines option. + * Use File::Temp for temp files during tests on Win32. +- cleanup with spec-cleaner + +------------------------------------------------------------------- +Sat Aug 11 00:53:55 UTC 2018 - rpm@fthiessen.de + +- ack 2.24: + * Added option "--ts" for Typescript. + * Fixed a bug where ack would stop searching if there was a file + called "0" in the current directory where ack was invoked. + * Optimized ack's search by 0-30% in timings of common cases. + Done by only do a line-by-line search of a file if there's a + match somewhere in the file. + +------------------------------------------------------------------- +Fri Dec 29 04:40:33 UTC 2017 - avindra@opensuse.org + +- ack 2.22: + * Avoid a fatal error that sometimes occured if a file was + unreadable. + * support for Kotlin + * Sped up file type detection for certain files. +- includes 2.20: + * When using submodules, .git directory will be a file. + This is now ignored by default. + * Changed construction in the docs that Ubuntu flagged as a + misspelling. +- cleanup with spec-cleaner + +------------------------------------------------------------------- +Sat Mar 25 14:58:21 UTC 2017 - astieger@suse.com + +- ack 2.18: + * no longer throw an undefined variable when called from a + directory that doesn't exist + * --context=0 (-C 0) can now override arkrc settings + * --after-context (-A) and --before-context (-B) no longer + require a value to be passed, defaulting to 2 + * Add .xhtml to the --html filetype + * Add .wsdl to the --xml filetype. + +------------------------------------------------------------------- +Sat Mar 11 19:13:25 UTC 2017 - astieger@suse.com + +- ack 2.16: + * Include .cljs, .cljc and .edn files with the --clojure filetype + * Add .xsd to the --xml filetype + * Add support for Swift language + * The MSYS2 project is now seen as Windows + * Expand the definition of OCaml files + * Add support for Groovy Server Pages + +------------------------------------------------------------------- +Thu Feb 4 10:52:26 UTC 2016 - idonmez@suse.com + +- ack 2.15_02 +- Bug fixes: + * Reverted an optimization to make \s work properly again +- Enhancements: + * The JSP filetype (--jsp) now recognizes .jspf files. + +------------------------------------------------------------------- +Wed Feb 25 18:59:58 UTC 2015 - astieger@suse.com + +- ack 2.15_01 +- Bug fixes: + * The -l and -c flags would sometimes return inaccurate results + due to bug introduced in 2.14. + * Behavior when using newlines in a search was inconsistent. + * Add minimal requirement of Getopt::Long 2.38, not 2.35, for + GetOptionsFromString. +- Enhancements: + * Many optimizations and code cleanups. + * Added --hpp option for C++ header files. + * ack now supports --ignore-dir=match:.... + * ack also supports --ignore-dir=ext:..., and --noignore-dir + supports match/ext as well + +------------------------------------------------------------------- +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 + +- update to ack 2.12: + fixes potential remote code execution via per-project .ackrc files + [bnc#855340] [CVE-2013-7069] + * prevents the --pager, --regex and --output options from being + used from project-level ackrc files, preventing possible code + execution when using ack through malicious files + * --pager, --regex and --output options may still be used from + the global /etc/ackrc, your own private ~/.ackrc, the ACK_OPTIONS + environment variable, and of course from the command line. + * Now ignores Eclipse .metadata directory. +- includes changes form 2.11_02: + * upstream source mispackaging fix +- includes changes from 2.11_01 + * Fixed a race condition in t/file-permission.t that was causing + failures if tests were run in parallel. +- modified patches: + * ack-ignore-osc.patch adjust for upstream source changes + +------------------------------------------------------------------- +Tue Oct 29 20:46:34 UTC 2013 - andreas.stieger@gmx.de + +- fix SLE build: File::Next does not have the required version. It + is only used in regression tests - skip them for SLE + +------------------------------------------------------------------- +Thu Oct 17 21:03:44 UTC 2013 - andreas.stieger@gmx.de + +- update to 2.10: + * Add --perltest for *.t files + * Added Matlab support + * More compatibility fixes for Perl 5.8.8. +- includes changes from 2.08 + * ack now ignores CMake's build/cache directories by default + * Add shebang matching for --lua files + * Add documentation for --ackrc + * Add Elixir filetype + * Add --cathy option + * Add some helpful debugging tips when an invalid option is found + * Ignore PDF files by default, because Perl will detect them as text + * Ignore .gif, .jpg, .jpeg and .png files. They won't normally be + selected, but this is an optimization so that ack doesn't have to + open them to know + * Ack's colorizing of output would get confused with multiple sets + of parentheses + * Ack would get confused when trying to colorize the output in + DOS-format files +- includes changes from 2.05_01 + * We now ignore the node_modules directories created by npm + * --pager without an argument implies --pager=$PAGER + * --perl now recognizes Plack-style .psgi files + * Added filetypes for Coffescript, JSON, LESS, and Sass. + * Command-line options now override options set in ackrc files + * ACK_PAGER and ACK_PAGER_COLOR now work as advertised. + * Fix a bug resulting in uninitialized variable warnings when more + than one capture group was specified in the search pattern + * Make sure ack is happy to build and test under cron and other + console-less environments. +- packaging changes: + * run more rests with IO::Pty + * refresh ack-ignore-osc.patch for upstream changes + * update project URL +- port changes from devel:languages:perl ack by daxim@cpan.org: + * correct metadata: licence, CPAN download, homepage + * unset forced prefix - let Perl configuration and toolchain + determine the prefix/install_base which will DTRT + * bash completion is gone, remove dead code + +------------------------------------------------------------------- + +Thu Aug 15 13:07:09 UTC 2013 - idonmez@suse.com + +- Add perl-File-Next runtime dependency + +------------------------------------------------------------------- +Mon Jul 22 21:48:33 UTC 2013 - idonmez@suse.com + +- Update to version 2.0.4 + * Major update, see http://beyondgrep.com/ack-2.0/ for details +- Refresh ack-ignore-osc.patch, ack-add_spec.patch + +------------------------------------------------------------------- +Mon Feb 27 05:45:22 UTC 2012 - mrdocs@opensuse.org + +-run osc service localrun format_spec_file to fix for factory + +------------------------------------------------------------------- +Mon Feb 13 10:43:56 UTC 2012 - coolo@suse.com + +- patch license to follow spdx.org standard + +------------------------------------------------------------------- +Mon Sep 19 08:08:13 UTC 2011 - puzel@suse.com + +- update to 1.96: + [ENHANCEMENTS] + * Now ignores minified Javascript files. Anything matching + -min.js or .min.js is ignored. + * Added Groovy support (--groovy). + * Added .pm6 as a --perl extension. + * Lua can now get detected from the shebang line. Thanks, + Matthew Wild. + * Added support for version numbers in executables in shebang + detection. Now if your Perl program's shebang refers to + /usr/local/bin/perl-5.14.1, ack will find it. + +------------------------------------------------------------------- +Sat Sep 17 10:44:39 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile +- Use %_smp_mflags for parallel build + +------------------------------------------------------------------- +Sat Feb 26 14:52:08 UTC 2011 - pascal.bleser@opensuse.org + +- add --spec/--rpm for .spec files + +------------------------------------------------------------------- +Tue Nov 16 10:38:26 UTC 2010 - puzel@novell.com + +- update to 1.94: + [ENHANCEMENTS] + * Added support for Go and Delphi. + * Ignores Monotone's _MTN directories. + * Added .xsl to the list of --xml files. + +- changes from 1.93_02: + [FIXES] + * --man and --version now return with an exit code of 0 (they used to exit with a 1) + + [ENHANCEMENTS] + * the --ignore-dir option now can ignore entire paths relative to your current directory + * added --invert-file-match switch to negate the sense of the -g/-G switches + +- changes from 1.93_01: + [FILE TYPE UPDATES] + * added --verilog, --vhdl and --clojure + * files that match *.mk and *.mak as well as GNUmakefile are now included in the ack filetype 'make' (issue 88) + * added RSpec's .spec type to the --ruby list + + [ENHANCEMENTS] + * added docs for -r, -R, --recurse options + * added new switch --color-lineno and environment variable ACK_COLOR_LINENO, which allow setting the line number color + * added option --show-types to output the types that ack considers a file to have + * 'ack --count --no-filename regex' doesn't output a list of numbers but a sum of all occurences; this is NOT what grep does but is the more sensible behavior + + [FIXES] + * fixed ack misbehavior when using --match or not specifying a regex + * fixed issue 74: analog to grep, 'ack --count regex file' now only outputs the number of found matches, if only one file is given + * fixed issue 76: giving both --line and a regex (with --match) now leads to an error; the same is true for -f or -g in conjunction with --match + * fixed issue 80: piping into ack --count now works as expected: ack always returned 0 when piped into, no matter how many matches where found + * fixed issue 81: .ackrc now ignores leading/trailing whitespace + +------------------------------------------------------------------- +Thu Nov 11 23:00:39 UTC 2010 - pascal.bleser@opensuse.org + +- applied patch by Pavol Rusnak from openSUSE:Factory:Contrib/ack to ignore .osc directories (redone for release 1.92) + +- merged .changes entries for 1.92 by Petr Uzl from openSUSE:Factory:Contrib/ack, he was a lot less lazy than me + +------------------------------------------------------------------- +Sun Feb 14 22:09:12 UTC 2010 - pascal.bleser@opensuse.org + +- removed bash completion file, way too slow + +------------------------------------------------------------------- +Sun Feb 14 21:53:01 UTC 2010 - pascal.bleser@opensuse.org + +- update to 1.92: + [ENHANCEMENTS] + * Added Scala support. Thanks to Dan Sully. + * Added .phtml as an extension for PHP. + * Using -f or -g now return a proper error code. If files are + found, ack returns 0. If none are found, ack returns 1. This + is a change in the specification, but the code didn't match the + specfication anyway. + * No man pages are created for any of the .pm files any more. + [FIXES] + * The --pager flag would not work. Now it does. Thanks Packy + Anderson. + * File matching for Emacs work files that match #*# was wrong. + It was checking the entire path, not just the basename. This + is fixed. (http://github.com/petdance/ack/issues/closed/#issue/101) + * Fixed URLs that pointed to old Google Code. + +- split out perl-App-Ack into its own subpackage + +------------------------------------------------------------------- +Mon Jul 13 00:00:00 UTC 2009 - pascal.bleser@opensuse.org + +- update to 1.88: + * ack has a new plugin system, so you can build plugins to search + whatever filetype you want + * added support for .hrl Erlang header files + * added support for --rake files, which are also --ruby files + * fixed a bug where files ending in "Makefile" were mistakenly + identified as Makefiles + * created a new etc/ directory and its first addition, a bash + auto-completion file + +------------------------------------------------------------------- +Wed Jul 16 00:00:00 UTC 2008 - guru@unixtech.be + +- new upstream version (1.86) + +------------------------------------------------------------------- +Tue Mar 25 00:00:00 UTC 2008 - guru@unixtech.be + +- new package (1.78) + + diff --git a/ack.spec b/ack.spec new file mode 100644 index 0000000..dccc0bf --- /dev/null +++ b/ack.spec @@ -0,0 +1,111 @@ +# +# spec file for package ack +# +# Copyright (c) 2019 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define run_tests 0%{?suse_version} > 1500 +%if 0%{?suse_version} >= 1100 || 0%{?fedora} >= 13 +%define with_pod 1 +%else +%define with_pod 0 +%endif +%{!?perl_make_install: %global perl_make_install make DESTDIR=%{buildroot} install_vendor} +Name: ack +Version: 3.0.3 +Release: 0 +Summary: Grep-Like Text Finder +License: Artistic-2.0 +Group: Productivity/Text/Utilities +URL: https://beyondgrep.com/ +Source: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/ack-v%{version}.tar.gz +Patch1: ack-ignore-osc.patch +Patch3: ack-add_spec.patch +BuildRequires: make +BuildRequires: perl >= 5.10.1 +BuildRequires: perl(File::Next) >= 1.10 +Requires: perl >= 5.10.1 +Requires: perl-App-Ack = %{version}-%{release} +Requires: perl-base = %{perl_version} +BuildArch: noarch +%if %{run_tests} +BuildRequires: perl(File::Temp) >= 0.19 +BuildRequires: perl(IO::Pty) +%endif +%if %{with_pod} +BuildRequires: perl(Test::Pod) >= 1.14 +%endif + +%description +ack is a grep-like tool tailored to working with large trees of source code. + +%package -n perl-App-Ack +Summary: Grep-Like Text Finder Perl Module +Group: Development/Libraries/Perl +Requires: perl-base = %{perl_version} +Requires: perl(File::Next) >= 1.10 + +%description -n perl-App-Ack +App::Ack is a grep-like tool tailored to working with large trees of source +code. + +%prep +%setup -q -n %{name}-v%{version} +%patch1 -p1 +%patch3 -p1 + +%build +perl Makefile.PL +make %{?_smp_mflags} + +%install +%perl_make_install + +%if 0%{?perl_process_packlist:1} +%perl_process_packlist +%else +rm "%{buildroot}%{perl_archlib}/perllocal.pod" +%endif + +# remove .packlist file +rm -rf "%{buildroot}%{perl_vendorarch}/auto/ack" + +rm -f "%{buildroot}%{_localstatedir}/adm/perl-modules/ack" + +install -d rpmdoc_ack +for f in Changes README.md LICENSE.md; do + ln -s ../ack/"$f" rpmdoc_ack/"$f" +done + +%check +%if %{run_tests} +make test %{?_smp_mflags} +%endif + +%files +%doc rpmdoc_ack/* +%{_bindir}/ack +%{_mandir}/man1/ack.1%{?ext_man} + +%files -n perl-App-Ack +%license LICENSE.md +%doc Changes README.md +%dir %{perl_vendorlib}/App +%{perl_vendorlib}/App/Ack.pm +%{perl_vendorlib}/App/Ack +%if 0%{?perl_process_packlist:1} +%endif + +%changelog