242c39
Name:           perl-File-Which
242c39
Version:        1.09
242c39
Release:        12%{?dist}
242c39
Summary:        Portable implementation of the 'which' utility
242c39
Group:          Development/Libraries
242c39
License:        GPL+ or Artistic
242c39
URL:            http://search.cpan.org/dist/File-Which/
242c39
Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz
242c39
BuildArch:      noarch
242c39
BuildRequires:  perl(ExtUtils::MakeMaker)
242c39
%if !%{defined perl_bootstrap}
242c39
BuildRequires:  perl(constant)
242c39
BuildRequires:  perl(Exporter)
242c39
BuildRequires:  perl(File::Spec)
242c39
BuildRequires:  perl(Test::More)
242c39
BuildRequires:  perl(Test::Script)
242c39
%endif
242c39
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
242c39
242c39
%description
242c39
File::Which is a portable implementation (in Perl) of 'which', and can
242c39
be used to get the absolute filename of an executable program
242c39
installed somewhere in your PATH, or just check for its existence. It
242c39
includes the command-line utility 'pwhich' which has the same function
242c39
as 'which'.
242c39
242c39
%prep
242c39
%setup -q -n File-Which-%{version}
242c39
242c39
%build
242c39
perl Makefile.PL INSTALLDIRS=vendor
242c39
make %{?_smp_mflags}
242c39
242c39
%install
242c39
make pure_install PERL_INSTALL_ROOT=%{buildroot}
242c39
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
242c39
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
242c39
chmod -R u+w %{buildroot}/*
242c39
242c39
%check
242c39
%if !%{defined perl_bootstrap}
242c39
make test
242c39
%endif
242c39
242c39
%files
242c39
%doc Changes README
242c39
%{_bindir}/pwhich
242c39
%{perl_vendorlib}/File/
242c39
%{_mandir}/man1/*.1*
242c39
%{_mandir}/man3/*.3pm*
242c39
242c39
242c39
%changelog
242c39
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.09-12
242c39
- Mass rebuild 2013-12-27
242c39
242c39
* Wed Oct 24 2012 Petr Šabata <contyk@redhat.com> - 1.09-11
242c39
- Specify all dependencies
242c39
- Modernize spec
242c39
- Drop command macros
242c39
242c39
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-10
242c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
242c39
242c39
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.09-9
242c39
- Perl 5.16 re-rebuild of bootstrapped packages
242c39
242c39
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1.09-8
242c39
- Perl 5.16 rebuild
242c39
242c39
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-7
242c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
242c39
242c39
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.09-6
242c39
- Perl mass rebuild
242c39
- add perl_bootstrap macro
242c39
242c39
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-5
242c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
242c39
242c39
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
242c39
- 661697 rebuild for fixing problems with vendorach/lib
242c39
242c39
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-3
242c39
- Mass rebuild with perl-5.12.0
242c39
242c39
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.09-2
242c39
- rebuild against perl 5.10.1
242c39
242c39
* Mon Oct  5 2009 Stepan Kasal <skasal@redhat.com> - 1.09-1
242c39
- new upstream version
242c39
242c39
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-6
242c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
242c39
242c39
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-5
242c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
242c39
242c39
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-4
242c39
- Rebuild for perl 5.10 (again)
242c39
242c39
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-3
242c39
- rebuild for new perl
242c39
242c39
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 0.05-2.1
242c39
- correct license tag
242c39
- add BR: perl(ExtUtils::MakeMaker)
242c39
242c39
* Mon Dec 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-2
242c39
- find: fixed arguments order.
242c39
242c39
* Sun Dec 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
242c39
- First build.