forked from pool/perl-File-Remove
redone
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Remove?expand=0&rev=18
This commit is contained in:
committed by
Git OBS Bridge
parent
3d56d95421
commit
f170db0dc6
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-File-Remove
|
||||
# spec file for package perl-File-Remove (Version 1.49)
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2010 SUSE LINUX Products 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,55 +15,55 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-File-Remove
|
||||
Version: 1.49
|
||||
Release: 2
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
%define cpan_name File-Remove
|
||||
Summary: File::Remove::remove removes files and directories
|
||||
License: GPL, Artistic License
|
||||
Summary: Remove files and directories
|
||||
Url: http://search.cpan.org/dist/File-Remove/
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/~adamk/File-Remove-1.42/lib/File/Remove.pm
|
||||
Source0: %{cpan_name}-%{version}.tar.gz
|
||||
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/File-Remove-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
BuildRequires: perl(Cwd) >= 3.2701
|
||||
BuildRequires: perl(File::Spec) >= 3.2701
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Requires: perl(Cwd) >= 3.2701
|
||||
Requires: perl(File::Spec) >= 3.2701
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
BuildRequires: perl perl-macros
|
||||
|
||||
%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
|
||||
files, it will not remove directories; this module remedies that. It
|
||||
also accepts wildcards, * and ?, as arguments for filenames.
|
||||
*File::Remove::remove* removes files and directories. It acts like
|
||||
*/bin/rm*, for the most part. Although 'unlink' can be given a list of
|
||||
files, it will not remove directories; this module remedies that. It also
|
||||
accepts wildcards, * and ?, as arguments for filenames.
|
||||
|
||||
Author:
|
||||
-------
|
||||
Adam Kennedy <adamk@cpan.org>
|
||||
Richard Soderberg
|
||||
*File::Remove::trash* accepts the same arguments as *remove*, with the
|
||||
addition of an optional, infrequently used "other platforms" hashref.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL
|
||||
%__make
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%__make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%__rm -rf %{BuildRoot}
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc Changes README LICENSE
|
||||
%dir %{perl_vendorlib}/File
|
||||
%{perl_vendorlib}/File/Remove.pm
|
||||
%{_mandir}/man3/File::Remove.3pm.*
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user