perl-Path-Tiny/perl-Path-Tiny.spec
2013-09-03 16:39:22 +01:00

112 lines
3.4 KiB
RPMSpec

Name: perl-Path-Tiny
Version: 0.031
Release: 3%{?dist}
Summary: File path utility
Group: Development/Libraries
License: ASL 2.0
URL: http://search.cpan.org/dist/Path-Tiny/
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
# Module Runtime
BuildRequires: perl(autodie::exception) >= 2.14
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
BuildRequires: perl(Digest) >= 1.03
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Digest::SHA) >= 5.45
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Path) >= 2.07
BuildRequires: perl(File::Spec) >= 3.40
BuildRequires: perl(File::stat)
BuildRequires: perl(File::Temp) >= 0.18
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(threads)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(blib)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Config)
BuildRequires: perl(Devel::Hide)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::pushd)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(List::Util)
BuildRequires: perl(open)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Cwd)
Requires: perl(Digest) >= 1.03
Requires: perl(Digest::MD5)
Requires: perl(Digest::SHA) >= 5.45
Requires: perl(Fcntl)
Requires: perl(File::Copy)
Requires: perl(File::Path) >= 2.07
Requires: perl(File::stat)
Requires: perl(File::Temp) >= 0.18
Requires: perl(threads)
# For performance and consistency
BuildRequires: perl(Unicode::UTF8) >= 0.58
Requires: perl(Unicode::UTF8) >= 0.58
%description
This module attempts to provide a small, fast utility for working with file
paths. It is friendlier to use than File::Spec and provides easy access to
functions from several other core file handling modules.
It doesn't attempt to be as full-featured as IO::All or Path::Class, nor does
it try to work for anything except Unix-like and Win32 platforms. Even then, it
might break if you try something particularly obscure or tortuous.
All paths are forced to have Unix-style forward slashes. Stringifying the
object gives you back the path (after some clean up).
File input/output methods flock handles before reading or writing, as
appropriate.
The *_utf8 methods (slurp_utf8, lines_utf8, etc.) operate in raw mode without
CRLF translation.
It uses autodie internally, so most failures will be thrown as exceptions.
%prep
%setup -q -n Path-Tiny-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
%check
make test
%files
%doc Changes CONTRIBUTING LICENSE README
%{perl_vendorlib}/Path/
%{_mandir}/man3/Path::Tiny.3pm*
%changelog
* Tue Sep 3 2013 Paul Howarth <paul@city-fan.org> - 0.031-3
- BR: perl(Config) for the test suite (#1003660)
* Mon Sep 2 2013 Paul Howarth <paul@city-fan.org> - 0.031-2
- Sanitize for Fedora submission
* Mon Sep 2 2013 Paul Howarth <paul@city-fan.org> - 0.031-1
- Initial RPM version