2014-05-04 11:29:02 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-File-Util
|
|
|
|
#
|
2016-05-25 07:51:03 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-05-04 11:29:02 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
Name: perl-File-Util
|
2016-05-25 07:51:03 +00:00
|
|
|
Version: 4.161200
|
2011-04-22 21:03:47 +00:00
|
|
|
Release: 0
|
2016-05-25 07:51:03 +00:00
|
|
|
%define cpan_name File-Util
|
2011-04-22 21:03:47 +00:00
|
|
|
Summary: Easy, versatile, portable file handling
|
2014-05-04 11:29:02 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-04-22 21:03:47 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2016-05-25 07:51:03 +00:00
|
|
|
Url: http://search.cpan.org/dist/File-Util/
|
|
|
|
Source0: http://www.cpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2014-05-04 11:29:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-05-25 07:51:03 +00:00
|
|
|
BuildRequires: perl
|
2014-05-04 11:29:02 +00:00
|
|
|
BuildRequires: perl-macros
|
2016-05-25 07:51:03 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
|
|
|
Recommends: perl(Unicode::UTF8) >= 0.58
|
|
|
|
%{perl_requires}
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
%description
|
2016-05-25 07:51:03 +00:00
|
|
|
File::Util provides a comprehensive toolbox of utilities to automate all
|
|
|
|
kinds of common tasks on files and directories. Its purpose is to do so in
|
|
|
|
the most *portable* manner possible so that users of this module won't have
|
|
|
|
to worry about whether their programs will work on other operating systems
|
|
|
|
and/or architectures. It works on Linux, Windows, Mac, BSD, Unix and
|
|
|
|
others.
|
|
|
|
|
|
|
|
File::Util is written *purely in Perl*, and requires no compiler or make
|
|
|
|
utility on your system in order to install and run it. It loads a minimal
|
|
|
|
amount of code when used, only pulling in support for lesser-used methods
|
|
|
|
on demand. It has no dependencies other than what comes installed with Perl
|
|
|
|
itself.
|
|
|
|
|
|
|
|
File::Util also aims to be as backward compatible as possible, running
|
|
|
|
without problems on Perl installations as old as 5.006. You are encouraged
|
|
|
|
to run File::Util on Perl version 5.8 and above.
|
|
|
|
|
|
|
|
After browsing this document, please have a look at the other
|
|
|
|
documentation. _(See DOCUMENTATION section below.)_
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
%prep
|
2016-05-25 07:51:03 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
%build
|
2016-05-25 07:51:03 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
%check
|
2016-05-25 07:51:03 +00:00
|
|
|
./Build test
|
2011-04-22 21:03:47 +00:00
|
|
|
|
2016-05-25 07:51:03 +00:00
|
|
|
%install
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
%perl_gen_filelist
|
2011-04-22 21:03:47 +00:00
|
|
|
|
2016-05-25 07:51:03 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc AUTHORS Changes COPYING examples LICENSE NEWS performance README TODO
|
2011-04-22 21:03:47 +00:00
|
|
|
|
2014-05-04 11:29:02 +00:00
|
|
|
%changelog
|