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 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. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -19,58 +19,65 @@
Name: perl-File-Which Name: perl-File-Which
Url: http://cpan.org/modules/by-module/File/ %define cpan_name File-Which
Version: 1.09
Release: 1
BuildRequires: perl-Test-Script
Requires: perl = %{perl_version}
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic License ..
Summary: Portable implementation of the `which' utility 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 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 %description
File::Which is a portable implementation (in Perl) of `which', and can File::Which was created to be able to get the paths to executable programs
be used to get the absolute filename of an executable program installed on systems under which the `which' program wasn't implemented in the shell.
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: Authors:
-------- --------
Per Einar Ellefsen <per.einar@skynet.be> Per Einar Ellefsen <per.einar@skynet.be>
%prep %prep
%setup -n File-Which-%{version} -q %setup -q -n %{cpan_name}-%{version}
%build %build
perl Makefile.PL %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%{__make} %{?_smp_mflags}
%check %check
make test %{__make} test
%install %install
make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_make_install
%perl_process_packlist # do not perl_process_packlist (noarch)
# remove .packlist file
%files %{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
%defattr(-,root,root) # remove perllocal.pod file
%doc Changes MANIFEST README %{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%doc %{_mandir}/man?/* %perl_gen_filelist
%{_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 %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 %changelog