60 lines
1.7 KiB
RPMSpec
60 lines
1.7 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-File-Util
|
||
|
Version: 3.27
|
||
|
Release: 0
|
||
|
Summary: Easy, versatile, portable file handling
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOMMY/File-Util-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/File-Util
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: perl(Class::OOorNO) >= 0.01
|
||
|
BuildRequires: perl(Exception::Handler) >= 1
|
||
|
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
|
||
|
%dir %{perl_vendorlib}/File
|
||
|
%doc %{perl_vendorlib}/File/Util.pod
|
||
|
%{perl_vendorlib}/File/Util.pm
|
||
|
%dir %{perl_vendorlib}/auto/File
|
||
|
%dir %{perl_vendorlib}/auto/File/Util
|
||
|
%{perl_vendorlib}/auto/File/Util/*
|
||
|
%doc %{perl_man3dir}/File::Util.%{perl_man3ext}%{ext_man}
|
||
|
|