2011-04-22 21:03:47 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2014-05-04 11:29:02 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-04-22 21:03:47 +00:00
|
|
|
|
|
|
|
Name: perl-File-Util
|
2014-05-04 11:29:02 +00:00
|
|
|
Version: 4.132140
|
2011-04-22 21:03:47 +00:00
|
|
|
Release: 0
|
|
|
|
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
|
2014-05-04 11:29:02 +00:00
|
|
|
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
|
2011-04-22 21:03:47 +00:00
|
|
|
%{perl_requires}
|
|
|
|
BuildRequires: make
|
2014-05-04 11:29:02 +00:00
|
|
|
BuildRequires: perl-macros
|
2011-04-22 21:03:47 +00:00
|
|
|
BuildRequires: perl(Class::OOorNO) >= 0.01
|
|
|
|
BuildRequires: perl(Exception::Handler) >= 1
|
2014-05-04 11:29:02 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.01
|
2011-04-22 21:03:47 +00:00
|
|
|
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
|
2014-05-04 11:29:02 +00:00
|
|
|
%{perl_vendorlib}/File
|
|
|
|
%doc %{_mandir}/man3/File::Util*
|
2011-04-22 21:03:47 +00:00
|
|
|
|
2014-05-04 11:29:02 +00:00
|
|
|
%changelog
|