1
0

Accepting request 296410 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/296410
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Which?expand=0&rev=20
This commit is contained in:
Stephan Kulow
2015-04-15 04:33:28 +00:00
committed by Git OBS Bridge
parent 5dd2b498cb
commit 5b2ec4ae77
4 changed files with 67 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Which
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,48 +15,42 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-File-Which
Version: 1.16
Release: 0
%define cpan_name File-Which
Summary: Portable implementation of the `which' utility
Version: 1.09
Release: 7
License: GPL+ or Artistic
License: Artistic-1.0 or GPL-1.0+
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.gz
Source: http://www.cpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec) >= 0.60
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(Test::Script) >= 1.05
#
Requires: perl(Exporter)
Requires: perl(File::Spec) >= 0.60
Requires: perl(Getopt::Std)
Requires: perl(Test::Script) >= 1.05
BuildRequires: perl(Test::More) >= 0.80
%{perl_requires}
%description
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.
'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>
'File::Which' searches the directories of the user's 'PATH' (as returned by
'File::Spec->path()'), looking for executable files having the name
specified as a parameter to 'which()'. Under Win32 systems, which do not
have a notion of directly executable files, but uses special extensions
such as '.exe' and '.bat' to identify them, 'File::Which' takes extra steps
to assure that you will find the correct file (so for example, you might be
searching for 'perl', it'll try _perl.exe_, _perl.bat_, etc.)
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
@@ -64,18 +58,11 @@ Authors:
%install
%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_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog