8
0

Accepting request 353361 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/353361
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Remove?expand=0&rev=32
This commit is contained in:
Stephan Kulow
2016-01-14 06:36:21 +00:00
committed by Git OBS Bridge
parent a962df1033
commit a76411d58f
5 changed files with 49 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Remove
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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
@@ -17,29 +17,26 @@
Name: perl-File-Remove
Version: 1.52
Version: 1.55
Release: 0
%define cpan_name File-Remove
Summary: Remove files and directories
License: GPL-1.0+ or Artistic-1.0
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-Remove/
Source: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Remove-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Cwd) >= 3.29
BuildRequires: perl(File::Spec) >= 3.29
BuildRequires: perl(Module::Build) >= 0.280000
Requires: perl(Cwd) >= 3.29
Requires: perl(File::Spec) >= 3.29
%{perl_requires}
%if 0%{?suse_version} <= 1110
BuildRequires: perl-PathTools
Requires: perl-PathTools
%endif
%description
*File::Remove::remove* removes files and directories. It acts like
*/bin/rm*, for the most part. Although 'unlink' can be given a list of
@@ -51,30 +48,21 @@ addition of an optional, infrequently used "other platforms" hashref.
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1110
for i in `find lib t -type f` ; do
sed -i -e "s@^\s*use\s\s*File::Spec@use lib '%{perl_vendorlib}';\nuse File::Spec@" $i
sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i
done
%endif
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
%{__make} test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog