perl-File-Which/perl-File-Which.spec

Name: perl-File-Which
Summary: Portable implementation of the 'which' utility
Version: 1.09
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/File-Which/
Description: Portable implementation of the `which' utility.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Per Einar Ellefsen <pereinar$oslo,online,no>

### EL6 ships with perl-File-Which-1.09-2.el6
%{?el6:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name File-Which

Summary: Portable implementation of the 'which' utility
Name: perl-File-Which
Version: 1.09
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/File-Which/

Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.60
BuildRequires: perl(Getopt::Std)
#BuildRequires: perl(Test::More) >= 0.80
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Script) >= 1.05
Requires: perl(Exporter)
Requires: perl(File::Spec) >= 0.60
Requires: perl(Getopt::Std)
#Requires: perl(Test::More) >= 0.80
Requires: perl(Test::More)
Requires: perl(Test::Script) >= 1.05

%filter_from_requires /^perl*/d
%filter_setup

%description
Portable implementation of the `which' utility.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST README
%doc %{_mandir}/man1/pwhich.1*
%doc %{_mandir}/man3/File::Which.3pm*
%{_bindir}/pwhich
%dir %{perl_vendorlib}/File/
%{perl_vendorlib}/File/Which.pm

%changelog
* Wed Dec 30 2009 Christoph Maser <cmr@financial.com> - 1.09-1
- Updated to version 1.09.

* Sat Aug 22 2009 Christoph Maser <cmr@financial.com> - 1.07-1
- Updated to version 1.07.

* Thu Mar 31 2005 Dag Wieers <dag@wieers.com> - 0.05-1
- Initial package. (using DAR)