2012-02-27 06:46:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package ack
|
|
|
|
#
|
2014-01-19 01:50:18 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-27 06:46:30 +01:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2013-10-27 04:27:57 +01:00
|
|
|
|
|
|
|
|
2014-09-05 00:38:10 +02:00
|
|
|
%define run_tests 0%{?suse_version} >= 1210
|
2010-11-12 01:31:04 +01:00
|
|
|
%if 0%{?suse_version} >= 1100 || 0%{?fedora} >= 13
|
|
|
|
%define with_pod 1
|
|
|
|
%else
|
|
|
|
%define with_pod 0
|
|
|
|
%endif
|
2010-11-12 00:03:53 +01:00
|
|
|
Name: ack
|
2016-02-04 11:55:21 +01:00
|
|
|
Version: 2.15_02
|
2012-02-27 06:46:30 +01:00
|
|
|
Release: 0
|
2010-11-12 00:03:53 +01:00
|
|
|
Summary: Grep-Like Text Finder
|
2013-10-27 04:27:57 +01:00
|
|
|
License: Artistic-2.0
|
2012-02-27 06:46:30 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2014-09-05 00:38:10 +02:00
|
|
|
Url: http://beyondgrep.com/
|
2013-10-27 04:27:57 +01:00
|
|
|
Source: http://cpan.metacpan.org/authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
|
2010-11-12 00:03:53 +01:00
|
|
|
Patch1: ack-ignore-osc.patch
|
2011-02-26 15:53:07 +01:00
|
|
|
Patch3: ack-add_spec.patch
|
2012-02-27 06:46:30 +01:00
|
|
|
BuildRequires: make
|
2013-10-27 04:27:57 +01:00
|
|
|
BuildRequires: perl >= 5.8.8
|
|
|
|
BuildRequires: perl(File::Next) >= 1.10
|
2014-09-05 00:38:10 +02:00
|
|
|
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}
|
2013-10-30 00:10:25 +01:00
|
|
|
BuildRequires: perl(File::Temp) >= 0.19
|
2013-10-27 04:27:57 +01:00
|
|
|
BuildRequires: perl(IO::Pty)
|
2013-10-30 00:10:25 +01:00
|
|
|
%endif
|
2014-09-05 00:38:10 +02:00
|
|
|
%if %{with_pod}
|
2013-10-27 04:27:57 +01:00
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
2010-11-10 20:46:57 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
ack is a grep-like tool tailored to working with large trees of source code.
|
|
|
|
|
|
|
|
%package -n perl-App-Ack
|
2010-11-12 00:03:53 +01:00
|
|
|
Summary: Grep-Like Text Finder Perl Module
|
|
|
|
Group: Development/Libraries/Perl
|
2013-10-27 04:27:57 +01:00
|
|
|
Requires: perl(File::Next) >= 1.10
|
2014-09-05 00:38:10 +02:00
|
|
|
Requires: perl-base = %{perl_version}
|
2010-11-10 20:46:57 +01:00
|
|
|
|
|
|
|
%description -n perl-App-Ack
|
|
|
|
App::Ack is a grep-like tool tailored to working with large trees of source
|
|
|
|
code.
|
|
|
|
|
|
|
|
%prep
|
2014-09-05 00:38:10 +02:00
|
|
|
%setup -q
|
2013-07-23 02:07:16 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch3 -p1
|
2010-11-10 20:46:57 +01:00
|
|
|
|
|
|
|
%build
|
2013-10-27 04:27:57 +01:00
|
|
|
perl Makefile.PL
|
2011-09-17 22:22:09 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-11-10 20:46:57 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2010-11-12 01:31:04 +01:00
|
|
|
|
|
|
|
%if 0%{?perl_process_packlist:1}
|
2010-11-10 20:46:57 +01:00
|
|
|
%perl_process_packlist
|
2010-11-12 01:31:04 +01:00
|
|
|
%else
|
2013-07-23 02:07:16 +02:00
|
|
|
rm "%{buildroot}%{perl_archlib}/perllocal.pod"
|
2010-11-12 01:31:04 +01:00
|
|
|
%endif
|
2010-11-10 20:46:57 +01:00
|
|
|
|
2010-11-12 00:03:53 +01:00
|
|
|
# remove .packlist file
|
2013-07-23 02:07:16 +02:00
|
|
|
rm -rf "%{buildroot}%{perl_vendorarch}/auto/ack"
|
2010-11-12 00:03:53 +01:00
|
|
|
|
2014-09-05 00:38:10 +02:00
|
|
|
rm -f "%{buildroot}%{_localstatedir}/adm/perl-modules/ack"
|
2011-02-26 15:53:07 +01:00
|
|
|
|
2013-07-23 02:07:16 +02:00
|
|
|
install -d rpmdoc_ack
|
|
|
|
for f in Changes README.md LICENSE.md; do
|
|
|
|
ln -s ../ack/"$f" rpmdoc_ack/"$f"
|
2010-11-10 20:46:57 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%check
|
2014-09-05 00:38:10 +02:00
|
|
|
%if %{run_tests}
|
|
|
|
make test %{?_smp_mflags}
|
2013-10-30 00:10:25 +01:00
|
|
|
%endif
|
2010-11-10 20:46:57 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc rpmdoc_ack/*
|
|
|
|
%{_bindir}/ack
|
|
|
|
%doc %{_mandir}/man1/ack.1%{ext_man}
|
|
|
|
|
|
|
|
%files -n perl-App-Ack
|
|
|
|
%defattr(-,root,root)
|
2013-07-23 02:07:16 +02:00
|
|
|
%doc Changes README.md LICENSE.md
|
2010-11-10 20:46:57 +01:00
|
|
|
%dir %{perl_vendorlib}/App
|
|
|
|
%{perl_vendorlib}/App/Ack.pm
|
|
|
|
%{perl_vendorlib}/App/Ack
|
2010-11-12 01:31:04 +01:00
|
|
|
%if 0%{?perl_process_packlist:1}
|
|
|
|
%endif
|
2011-02-26 15:53:07 +01:00
|
|
|
|
2012-02-27 06:46:30 +01:00
|
|
|
%changelog
|