2011-02-26 15:53:07 +01:00
|
|
|
# vim: set ts=4 sw=4 et:
|
2012-02-27 06:46:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package ack
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2010-11-12 01:31:04 +01:00
|
|
|
%{!?perl_make_install: %global perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor}
|
|
|
|
|
|
|
|
%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
|
2011-09-19 10:09:54 +02:00
|
|
|
Version: 1.96
|
2012-02-27 06:46:30 +01:00
|
|
|
Release: 0
|
2010-11-12 00:03:53 +01:00
|
|
|
Summary: Grep-Like Text Finder
|
2012-02-27 06:46:30 +01:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2010-11-12 00:03:53 +01:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
|
|
|
|
Patch1: ack-ignore-osc.patch
|
2010-11-12 01:02:53 +01:00
|
|
|
Patch2: ack-fix_smartcase_test_for_old_perl.patch
|
2011-02-26 15:53:07 +01:00
|
|
|
Patch3: ack-add_spec.patch
|
2012-02-27 06:46:30 +01:00
|
|
|
Url: http://petdance.com/ack/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-12 00:03:53 +01:00
|
|
|
Requires: perl
|
2012-02-27 06:46:30 +01:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-File-Next
|
2010-11-12 01:31:04 +01:00
|
|
|
%if %with_pod
|
|
|
|
BuildRequires: perl(Test::Pod)
|
2010-11-10 20:46:57 +01:00
|
|
|
%endif
|
2010-11-12 00:03:53 +01:00
|
|
|
BuildArch: noarch
|
2010-11-10 20:46:57 +01:00
|
|
|
Requires: perl-App-Ack = %{version}-%{release}
|
|
|
|
Requires: perl-base = %{perl_version}
|
|
|
|
|
|
|
|
%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
|
2010-11-10 20:46:57 +01:00
|
|
|
Requires: perl-base = %{perl_version}
|
|
|
|
|
|
|
|
%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 "ack-%{version}"
|
2010-11-12 00:03:53 +01:00
|
|
|
%patch1
|
2010-11-12 01:54:14 +01:00
|
|
|
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1000 || 0%{?rhel_version} > 0 && 0%{?rhel_version} < 500
|
2010-11-12 01:02:53 +01:00
|
|
|
%patch2
|
|
|
|
%endif
|
2011-02-26 15:53:07 +01:00
|
|
|
%patch3
|
2010-11-10 20:46:57 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
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
|
|
|
|
%__rm "%{buildroot}%{perl_archlib}/perllocal.pod"
|
|
|
|
%endif
|
2010-11-10 20:46:57 +01:00
|
|
|
|
2010-11-12 00:03:53 +01:00
|
|
|
# remove .packlist file
|
|
|
|
%__rm -rf "%{buildroot}%{perl_vendorarch}/auto/ack"
|
|
|
|
|
2011-02-26 15:53:07 +01:00
|
|
|
%__rm -f "%{buildroot}/var/adm/perl-modules/ack"
|
|
|
|
|
2010-11-10 20:46:57 +01:00
|
|
|
#%__install -D -m0644 etc/ack.bash_completion.sh \
|
|
|
|
# "%{buildroot}/%{_sysconfdir}/bash_completion.d/%{name}.sh"
|
|
|
|
|
|
|
|
%__install -d rpmdoc_ack
|
2010-11-16 11:41:59 +01:00
|
|
|
for f in Changes README.markdown TODO; do
|
2010-11-10 20:46:57 +01:00
|
|
|
%__ln_s ../ack/"$f" rpmdoc_ack/"$f"
|
|
|
|
done
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc rpmdoc_ack/*
|
|
|
|
#config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}.sh
|
|
|
|
%{_bindir}/ack
|
|
|
|
%doc %{_mandir}/man1/ack.1%{ext_man}
|
|
|
|
|
|
|
|
%files -n perl-App-Ack
|
|
|
|
%defattr(-,root,root)
|
2010-11-16 11:41:59 +01:00
|
|
|
%doc Changes README.markdown TODO
|
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
|