SHA256
1
0
forked from pool/ack

cross-distro fixes

OBS-URL: https://build.opensuse.org/package/show/utilities/ack?expand=0&rev=4
This commit is contained in:
Pascal Bleser 2010-11-12 00:31:04 +00:00 committed by Git OBS Bridge
parent b2631aa426
commit 04f293f529

View File

@ -1,5 +1,13 @@
# vim: set ts=4 sw=4 et:
%{!?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
Name: ack
Version: 1.92
Release: 0
@ -13,8 +21,8 @@ License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl
BuildRequires: make perl perl-File-Next
%if 0%{?suse_version} > 0 && 0%{?suse_version} >= 1020
BuildRequires: perl-Test-Pod
%if %with_pod
BuildRequires: perl(Test::Pod)
%endif
BuildArch: noarch
Requires: perl-App-Ack = %{version}-%{release}
@ -52,7 +60,12 @@ code.
%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"
@ -84,5 +97,7 @@ done
%dir %{perl_vendorlib}/App
%{perl_vendorlib}/App/Ack.pm
%{perl_vendorlib}/App/Ack
%if 0%{?perl_process_packlist:1}
/var/adm/perl-modules/%{name}
%endif