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

74 lines
2.3 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-File-Util
#
# Copyright (c) 2014 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
# 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.132140
Release: 0
Summary: Easy, versatile, portable file handling
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOMMY/File-Util-%{version}.tar.gz
Url: http://search.cpan.org/dist/File-Util
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl-macros
BuildRequires: perl(Class::OOorNO) >= 0.01
BuildRequires: perl(Exception::Handler) >= 1
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::NoWarnings) >= 0.01
Requires: perl(Class::OOorNO) >= 0.01
Requires: perl(Exception::Handler) >= 1
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
File::Util provides a comprehensive toolbox of utilities to automate all kinds
of common tasks on file / 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 OSes and machines.
%prep
%setup -q -n "File-Util-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
find . -type f -exec %__chmod 0644 {} \;
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/File
%doc %{_mandir}/man3/File::Util*
%changelog