1 |
%define upstream_name ack |
2 |
%define upstream_version 1.92 |
3 |
|
4 |
Name: %{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Grep-like text finder for large trees of text |
9 |
License: GPL+ or Artistic |
10 |
Group: Text tools |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
%if %{mdkversion} < 1010 |
15 |
BuildRequires: perl-devel |
16 |
%endif |
17 |
BuildRequires: perl |
18 |
BuildRequires: perl(File::Next) |
19 |
BuildArch: noarch |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
21 |
|
22 |
%description |
23 |
ack is a grep-like program with optimizations for searching through large trees |
24 |
of source code. |
25 |
|
26 |
%prep |
27 |
%setup -q -n %{upstream_name}-%{upstream_version} |
28 |
|
29 |
%build |
30 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
31 |
%make |
32 |
|
33 |
%check |
34 |
# tests failing on cluster because they seem to require a real term. |
35 |
# ==> skipping tests for now |
36 |
#%{__make} test |
37 |
|
38 |
%install |
39 |
rm -rf %{buildroot} |
40 |
%makeinstall_std |
41 |
|
42 |
%clean |
43 |
rm -rf %{buildroot} |
44 |
|
45 |
%files |
46 |
%defattr(-,root,root) |
47 |
%doc Changes README |
48 |
%{perl_vendorlib}/App/* |
49 |
%{_mandir}/*/* |
50 |
%{_bindir}/* |
51 |
|