File perl-App-RegexFileUtils.spec of Package perl-App-RegexFileUtils
#
# spec file for package perl-App-RegexFileUtils
#
# Copyright (c) 2017 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-App-RegexFileUtils
Version: 0.08
Release: 0
%define cpan_name App-RegexFileUtils
Summary: Use Regexes with File Utils Like Rm, Cp, Mv, Ln
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-RegexFileUtils/
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(File::ShareDir::Dist)
BuildRequires: perl(File::ShareDir::Install) >= 0.06
BuildRequires: perl(File::Which)
BuildRequires: perl(Test2::V0) >= 0.000060
Requires: perl(File::ShareDir::Dist)
Requires: perl(File::Which)
%{perl_requires}
%description
This distribution provides a version of 'rm', 'cp', 'mv' and 'ln' with a
_re_ (as in regular expression) prefix where the file sources can be
specified as a regular expression, or the file source and destination can
be specified as a regular expression substitution Perl style. The
functionality that this provides can be duplicated with shell syntax
(typically for loops), but I find these scripts require less typing and
work regardless of the shell you are using.
The scripts in this distribution do not remove, copy, move or link files
directly, instead they call the real 'rm', 'cp', 'mv' and 'ln' programs
provided by your operating system. You can therefore use any options that
they support, for example the '-i' option will allow you to interactively
delete files:
% rerm -i '/\.bak$/'
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc author.yml Changes README
%license LICENSE
%changelog