forked from pool/perl-File-Which
This commit is contained in:
67
perl-File-Which.spec
Normal file
67
perl-File-Which.spec
Normal file
@@ -0,0 +1,67 @@
|
||||
#
|
||||
# spec file for package perl-File-Which (Version 0.05 )
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-File-Which
|
||||
URL: http://cpan.org/modules/by-module/File/
|
||||
Version: 0.05
|
||||
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
|
||||
|
||||
%description
|
||||
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
|
||||
`which'.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Per Einar Ellefsen <per.einar@skynet.be>
|
||||
|
||||
%prep
|
||||
%setup -n File-Which-%{version} -q
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make
|
||||
make test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_process_packlist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes MANIFEST README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{_bindir}/pwhich
|
||||
%dir %{perl_vendorlib}/File
|
||||
%dir %{perl_vendorarch}/auto/File
|
||||
%dir %{perl_vendorarch}/auto/File/Which
|
||||
%{perl_vendorlib}/File/Which.pm
|
||||
%{perl_vendorarch}/auto/File/Which/
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%clean
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%changelog -n perl-File-Which
|
||||
* Wed Dec 20 2006 - anicka@suse.cz
|
||||
- package created (initial version 0.05)
|
Reference in New Issue
Block a user