Accepting request 43318 from devel:languages:perl

Copy from devel:languages:perl/perl-File-Which based on submit request 43318 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/43318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-File-Which?expand=0&rev=11
This commit is contained in:
OBS User autobuild 2010-07-19 18:50:41 +00:00 committed by Git OBS Bridge
parent 8f578cabb8
commit 3dd206321f
2 changed files with 49 additions and 36 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 13 12:14:54 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- noarch pkg
-------------------------------------------------------------------
Mon Jan 25 13:39:52 CET 2010 - anicka@suse.cz

View File

@ -1,5 +1,5 @@
#
# spec file for package perl-File-Which (Version 1.09 )
# spec file for package perl-File-Which (Version 1.09)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -19,58 +19,65 @@
Name: perl-File-Which
Url: http://cpan.org/modules/by-module/File/
Version: 1.09
Release: 1
BuildRequires: perl-Test-Script
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License ..
%define cpan_name File-Which
Summary: Portable implementation of the `which' utility
Source: File-Which-%{version}.tar.bz2
Version: 1.09
Release: 2
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-Which/
#Source: http://www.cpan.org/modules/by-module/File/File-Which-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec) >= 0.60
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(Test::Script) >= 1.05
#
Requires: perl = %{perl_version}
Requires: perl(Exporter)
Requires: perl(File::Spec) >= 0.60
Requires: perl(Getopt::Std)
Requires: perl(Test::Script) >= 1.05
%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'.
File::Which was created to be able to get the paths to executable programs
on systems under which the `which' program wasn't implemented in the shell.
Authors:
--------
Per Einar Ellefsen <per.einar@skynet.be>
%prep
%setup -n File-Which-%{version} -q
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?_smp_mflags}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
%{__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}
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%changelog