Files
perl-File-Util/perl-File-Util.spec

78 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-File-Util
#
# 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
# 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-File-Util
Version: 4.161200
Release: 0
%define cpan_name File-Util
Summary: Easy, versatile, portable file handling
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.280000
BuildRequires: perl(Test::NoWarnings)
Recommends: perl(Unicode::UTF8) >= 0.58
%{perl_requires}
%description
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.)_
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc AUTHORS Changes COPYING examples LICENSE NEWS performance README TODO
%changelog