File perl-File-Which.spec of Package perl-File-Which

# spec file for package perl-File-Which (Version 1.07 )
# Copyright (c) 2009 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

# norootforbuild

Name:           perl-File-Which
Version:        1.07 
Release:        1
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License ..
Summary:        Portable implementation of the `which' utility
Source:         File-Which-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

File::Which is a portable implementation (in Perl) of `which', and can
be used to get the absolute filename of an executable program installed
somewhere in your PATH, or just check for its existence. It includes
the command-line utility `pwhich' which has the same function as

    Per Einar Ellefsen <>

%setup -n File-Which-%{version} -q

perl Makefile.PL
make test

make DESTDIR=$RPM_BUILD_ROOT install_vendor

%doc %{_mandir}/man?/*
%dir %{perl_vendorlib}/File
%dir %{perl_vendorarch}/auto/File
%dir %{perl_vendorarch}/auto/File/Which

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

openSUSE Build Service is sponsored by