Blame SPECS/perl-Path-Tiny.spec

e15591
# Run optional test
e15591
%if ! (0%{?rhel})
e15591
%bcond_without perl_Path_Tiny_enables_optional_test
e15591
%else
e15591
%bcond_with perl_Path_Tiny_enables_optional_test
e15591
%endif
e15591
e15591
Name:		perl-Path-Tiny
e15591
Version:	0.104
e15591
Release:	5%{?dist}
e15591
Summary:	File path utility
e15591
License:	ASL 2.0
e15591
URL:		http://search.cpan.org/dist/Path-Tiny/
e15591
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Path-Tiny-%{version}.tar.gz
e15591
BuildArch:	noarch
e15591
# Module Build
e15591
BuildRequires:	coreutils
e15591
BuildRequires:	findutils
e15591
BuildRequires:	make
e15591
BuildRequires:	perl-interpreter
e15591
BuildRequires:	perl-generators
e15591
BuildRequires:	perl(ExtUtils::MakeMaker)
e15591
# Module Runtime
e15591
BuildRequires:	perl(Carp)
e15591
BuildRequires:	perl(Config)
e15591
BuildRequires:	perl(constant)
e15591
BuildRequires:	perl(Cwd)
e15591
BuildRequires:	perl(Digest) >= 1.03
e15591
BuildRequires:	perl(Digest::MD5)
e15591
BuildRequires:	perl(Digest::SHA) >= 5.45
e15591
BuildRequires:	perl(Exporter) >= 5.57
e15591
BuildRequires:	perl(Fcntl)
e15591
BuildRequires:	perl(File::Copy)
e15591
BuildRequires:	perl(File::Glob)
e15591
BuildRequires:	perl(File::Path) >= 2.07
e15591
BuildRequires:	perl(File::Spec) >= 0.86
e15591
BuildRequires:	perl(File::stat)
e15591
BuildRequires:	perl(File::Temp) >= 0.19
e15591
BuildRequires:	perl(if)
e15591
BuildRequires:	perl(overload)
e15591
BuildRequires:	perl(strict)
e15591
BuildRequires:	perl(threads)
e15591
BuildRequires:	perl(warnings)
e15591
# Test Suite
e15591
BuildRequires:	perl(blib)
e15591
BuildRequires:	perl(File::Basename)
e15591
BuildRequires:	perl(File::Spec::Functions)
e15591
BuildRequires:	perl(File::Spec::Unix)
e15591
BuildRequires:	perl(File::Temp) >= 0.19
e15591
BuildRequires:	perl(lib)
e15591
BuildRequires:	perl(open)
e15591
BuildRequires:	perl(Test::More) >= 0.96
e15591
%if %{with perl_Path_Tiny_enables_optional_test}
e15591
# Optional Tests
e15591
BuildRequires:	perl(CPAN::Meta) >= 2.120900
e15591
BuildRequires:	perl(CPAN::Meta::Prereqs)
e15591
BuildRequires:	perl(Test::FailWarnings)
e15591
BuildRequires:	perl(Test::MockRandom)
e15591
%endif
e15591
# Runtime
e15591
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
e15591
Requires:	perl(Cwd)
e15591
Requires:	perl(Digest) >= 1.03
e15591
Requires:	perl(Digest::MD5)
e15591
Requires:	perl(Digest::SHA) >= 5.45
e15591
Requires:	perl(Fcntl)
e15591
Requires:	perl(File::Copy)
e15591
Requires:	perl(File::Glob)
e15591
Requires:	perl(File::Path) >= 2.07
e15591
Requires:	perl(File::stat)
e15591
Requires:	perl(File::Temp) >= 0.18
e15591
Requires:	perl(threads)
e15591
e15591
# For performance and consistency
e15591
BuildRequires:	perl(Unicode::UTF8) >= 0.58
e15591
Requires:	perl(Unicode::UTF8) >= 0.58
e15591
e15591
%description
e15591
This module attempts to provide a small, fast utility for working with file
e15591
paths. It is friendlier to use than File::Spec and provides easy access to
e15591
functions from several other core file handling modules.
e15591
e15591
It doesn't attempt to be as full-featured as IO::All or Path::Class, nor does
e15591
it try to work for anything except Unix-like and Win32 platforms. Even then, it
e15591
might break if you try something particularly obscure or tortuous.
e15591
e15591
All paths are forced to have Unix-style forward slashes. Stringifying the
e15591
object gives you back the path (after some clean up).
e15591
e15591
File input/output methods flock handles before reading or writing, as
e15591
appropriate.
e15591
e15591
The *_utf8 methods (slurp_utf8, lines_utf8, etc.) operate in raw mode without
e15591
CRLF translation.
e15591
e15591
%prep
e15591
%setup -q -n Path-Tiny-%{version}
e15591
e15591
%build
e15591
perl Makefile.PL INSTALLDIRS=vendor
e15591
make %{?_smp_mflags}
e15591
e15591
%install
e15591
make pure_install DESTDIR=%{buildroot}
e15591
find %{buildroot} -type f -name .packlist -delete
e15591
%{_fixperms} -c %{buildroot}
e15591
e15591
%check
e15591
make test
e15591
e15591
%files
e15591
%license LICENSE
e15591
%doc Changes CONTRIBUTING.mkdn README
e15591
%{perl_vendorlib}/Path/
e15591
%{_mandir}/man3/Path::Tiny.3*
e15591
e15591
%changelog
e15591
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.104-5
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e15591
e15591
* Fri Dec 08 2017 Petr Pisar <ppisar@redhat.com> - 0.104-4
e15591
- Enable Test::MockRandom test
e15591
e15591
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.104-3
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e15591
e15591
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.104-2
e15591
- Perl 5.26 rebuild
e15591
e15591
* Sat Feb 18 2017 Paul Howarth <paul@city-fan.org> - 0.104-1
e15591
- Update to 0.104
e15591
  - The 'absolute' method now always returns an absolute path, even if a user
e15591
    provided a relative path for the base path; the old, odd behavior was
e15591
    documented, but people often don't read docs so the new behavior avoids
e15591
    surprises
e15591
  - Added 'cached_temp' method
e15591
e15591
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.100-2
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e15591
e15591
* Sun Jan 15 2017 Paul Howarth <paul@city-fan.org> - 0.100-1
e15591
- Update to 0.100
e15591
  - Fixed tests for eventual removal of '.' from @INC in Perl
e15591
  - Fixed filehandle mode doc typo
e15591
  - Fixed doc typo in relative() that mentioned rel2abs instead of abs2rel
e15591
e15591
* Mon Oct 10 2016 Paul Howarth <paul@city-fan.org> - 0.098-1
e15591
- Update to 0.098
e15591
  - Added 'realpath' option for 'tempfile' and 'tempdir' for situations where
e15591
    an absolute temporary path just isn't enough
e15591
e15591
* Sun Jul  3 2016 Paul Howarth <paul@city-fan.org> - 0.096-1
e15591
- Update to 0.096
e15591
  - Improved method for hiding some modules during tests
e15591
- BR: perl-generators unconditionally
e15591
e15591
* Mon May 23 2016 Paul Howarth <paul@city-fan.org> - 0.094-1
e15591
- Update to 0.094
e15591
  - Path::Tiny will prefer PerlIO::utf8_strict over encoding(UTF-8) if
e15591
    available and Unicode::UTF8 is not installed
e15591
  - The 'touch' method can now set the current time on files that aren't owned,
e15591
    as long as they are writeable
e15591
  - Improved consistency of symlink support inspection; now always looks at
e15591
    $Config{d_symlink}
e15591
  - Skips impossible test on 'msys' platform.
e15591
- BR: perl-generators where possible
e15591
- Drop redundant Group: tag
e15591
e15591
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.090-2
e15591
- Perl 5.24 rebuild
e15591
e15591
* Tue May  3 2016 Paul Howarth <paul@city-fan.org> - 0.090-1
e15591
- Update to 0.090
e15591
  - Fix spew_utf8 to allow array references as input
e15591
e15591
* Mon Apr 18 2016 Paul Howarth <paul@city-fan.org> - 0.088-1
e15591
- Update to 0.088
e15591
  - Fixed bugs in relative symlink resolution for realpath, spew and edit_lines
e15591
  - Symlink resolution will detect circular loops and throw an error
e15591
e15591
* Mon Apr  4 2016 Paul Howarth <paul@city-fan.org> - 0.086-1
e15591
- Update to 0.086
e15591
  - Improved documentation of copy and move
e15591
- Simplify find command using -delete
e15591
e15591
* Fri Mar  4 2016 Paul Howarth <paul@city-fan.org> - 0.084-1
e15591
- Update to 0.084
e15591
  - Fixed relative() for the case with regex metacharacters in the path
e15591
e15591
* Wed Mar  2 2016 Paul Howarth <paul@city-fan.org> - 0.082-1
e15591
- Update to 0.082
e15591
  - The relative() method no longer uses File::Spec's buggy rel2abs method;
e15591
    the new Path::Tiny algorithm should be comparable and passes File::Spec
e15591
    rel2abs test cases, except that it correctly accounts for symlinks
e15591
  - Added 'edit' and 'edit_lines' plus _utf8 and _raw variants; this is
e15591
    similar to perl's -i flag (though without backups)
e15591
  - Fixed lines_utf8() with chomping for repeated empty lines
e15591
  - Fixed lines_utf8+chomp and relative() bugs on Windows
e15591
  - Documented that subclassing is not supported
e15591
e15591
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.076-2
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e15591
e15591
* Mon Nov 16 2015 Paul Howarth <paul@city-fan.org> - 0.076-1
e15591
- Update to 0.076
e15591
  - Tilde expansion on Windows was resulting in backslashes; now they are
e15591
    correctly normalized to forward slashes
e15591
  - Typos fixed
e15591
  - Fixed spewing to a symlink that crosses a filesystem boundary
e15591
  - Add Test::MockRandom to META as a recommended test prerequisite
e15591
e15591
* Tue Jul 21 2015 Paul Howarth <paul@city-fan.org> - 0.072-1
e15591
- Update to 0.072
e15591
  - Fixed incorrect error argument for File::Path functions (mkpath and
e15591
    remove_tree)
e15591
e15591
* Mon Jul 20 2015 Paul Howarth <paul@city-fan.org> - 0.070-2
e15591
- Fixed incorrect error argument for File::Path functions (mkpath and
e15591
  remove_tree) (GH#144)
e15591
e15591
* Mon Jun 29 2015 Paul Howarth <paul@city-fan.org> - 0.070-1
e15591
- Update to 0.070
e15591
  - The 'copy' method now returns the object for the copied file
e15591
  - The 'visit' method only dereferences the callback return value for scalar
e15591
    refs, avoiding some common bugs
e15591
e15591
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.068-3
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e15591
e15591
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.068-2
e15591
- Perl 5.22 rebuild
e15591
e15591
* Tue Mar 24 2015 Paul Howarth <paul@city-fan.org> - 0.068-1
e15591
- Update to 0.068
e15591
  - Added exclusive locking option to filehandle opens; spew now exclusively
e15591
    locks tempfile used for atomic writes
e15591
e15591
* Fri Mar  6 2015 Paul Howarth <paul@city-fan.org> - 0.065-1
e15591
- Update to 0.065
e15591
  - Added 'assert' method
e15591
  - Added 'visit' method
e15591
  - Added support for a negative count for 'lines' to get the last lines of a
e15591
    file
e15591
  - Fixed tilde expansion if path has spaces
e15591
  - Make realpath non-fatal if the parent path exists and only the final path
e15591
    component does not (was fatal on Windows and some Unixes)
e15591
  - Removed redundant locking on tempfile use for spewing
e15591
  - Work around File::Temp bugs on older ActiveState Windows Perls
e15591
    https://bugs.activestate.com/show_bug.cgi?id=104767
e15591
  - Fixed SYNOPSIS example
e15591
e15591
* Fri Nov 14 2014 Paul Howarth <paul@city-fan.org> - 0.061-1
e15591
- Update to 0.061
e15591
  - Fixed append_utf8 and append_raw with 'truncate' option
e15591
e15591
* Thu Nov  6 2014 Paul Howarth <paul@city-fan.org> - 0.060-1
e15591
- Update to 0.060
e15591
  - Added 'truncate' option to append for in-place replacement of file contents
e15591
e15591
* Tue Oct 14 2014 Paul Howarth <paul@city-fan.org> - 0.059-1
e15591
- Update to 0.059
e15591
  - Fixed precedence bug in the check for Unicode::UTF8
e15591
e15591
* Thu Sep 25 2014 Paul Howarth <paul@city-fan.org> - 0.058-1
e15591
- Update to 0.058
e15591
  - Added a 'sibling' method as a more efficient form of calling
e15591
    $path->parent->child(...).
e15591
  - Documentation for every method annotated with the version number of the
e15591
    last API change
e15591
e15591
* Tue Sep 23 2014 Paul Howarth <paul@city-fan.org> - 0.057-1
e15591
- Update to 0.057
e15591
  - On AIX, reads that default to locking would fail without write permissions,
e15591
    because locking needs write permissions; the fix is only to lock reads if
e15591
    write permissions exist, otherwise locking is skipped
e15591
e15591
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.056-2
e15591
- Perl 5.20 rebuild
e15591
e15591
* Thu Aug 14 2014 Paul Howarth <paul@city-fan.org> - 0.056-1
e15591
- Update to 0.056
e15591
  - Fixed problem throwing errors from 'remove'
e15591
  - The 'digest' method now takes a 'chunk_size' option to avoid slurping files
e15591
    entirely into memory
e15591
  - The 'dirname' method is deprecated due to exposing File::Spec
e15591
    inconsistencies
e15591
- Use %%license
e15591
e15591
* Tue Jul  1 2014 Paul Howarth <paul@city-fan.org> - 0.055-1
e15591
- Update to 0.055
e15591
  - tempfile/tempdir won't warn if used as functions without arguments
e15591
e15591
* Sat Jun  7 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.054-2
e15591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e15591
e15591
* Tue May  6 2014 Paul Howarth <paul@city-fan.org> - 0.054-1
e15591
- Update to 0.054
e15591
  - The 'is_file' method now does -e && ! -d and not -f because -f is often
e15591
    more restrictive than people intend or expect
e15591
  - Added 'chmod' method with symbolic chmod support ("a=r,u+rx")
e15591
  - The 'basename' method now takes a list of suffixes to remove before
e15591
    returning the name
e15591
  - Added FREEZE/THAW/TO_JSON serialization helpers
e15591
  - When constructing a Path::Tiny object from another, the original is
e15591
    returned unless it's a temp dir/file, which significantly speeds up calling
e15591
    path($path) if $path is already a Path::Tiny object
e15591
  - Constructing any path - e.g. with child() - with undef or zero-length
e15591
    parts throws an error instead of constructing an invalid path
e15591
e15591
* Wed Jan 15 2014 Paul Howarth <paul@city-fan.org> - 0.052-1
e15591
- Update to 0.052
e15591
  - Backslash-to-slash conversion now only happens on Windows (since backslash
e15591
    is legal on Unix, we must allow it)
e15591
e15591
* Sat Dec 21 2013 Paul Howarth <paul@city-fan.org> - 0.051-1
e15591
- Update to 0.051
e15591
  - Recursive iteration won't throw an exception if a directory is removed or
e15591
    unreadable during iteration
e15591
e15591
* Thu Dec 12 2013 Paul Howarth <paul@city-fan.org> - 0.049-1
e15591
- Update to 0.049
e15591
  - Added 'subsumes' method
e15591
  - The 'chomp' option for 'lines' will remove any end-of-line sequences fully
e15591
    instead of just chomping the last character
e15591
  - Fixed locking test on AIX
e15591
  - Revised locking tests for portability again: locks are now tested from a
e15591
    separate process
e15591
  - The 'flock' package will no longer indexed by PAUSE
e15591
  - Hides warnings and fixes possible fatal errors from pure-perl Cwd,
e15591
    particularly on MSWin32
e15591
  - Generates filename for atomic writes independent of thread-ID, which fixes
e15591
    crashing bug on Win32 when fork() is called
e15591
e15591
* Fri Oct 18 2013 Paul Howarth <paul@city-fan.org> - 0.044-1
e15591
- Update to 0.044
e15591
  - Fixed child path construction against the root path
e15591
  - Fixed path construction when a relative volume is provided as the first
e15591
    argument on Windows; e.g. path("C:", "lib") must be like path("C:lib"),
e15591
    not path("C:/lib")
e15591
  - On AIX, shared locking is replaced by exclusive locking on a R/W
e15591
    filehandle, as locking read handles is not supported
e15591
e15591
* Mon Oct 14 2013 Paul Howarth <paul@city-fan.org> - 0.043-1
e15591
- Update to 0.043
e15591
  - Calling 'absolute' on Windows will add the volume if it is missing (e.g.
e15591
    "/foo" will become "C:/foo"); this matches the behavior of
e15591
    File::Spec->rel2abs
e15591
  - Fixed t/00-report-prereqs.t for use with older versions of
e15591
    CPAN::Meta::Requirements
e15591
e15591
* Sun Oct 13 2013 Paul Howarth <paul@city-fan.org> - 0.042-1
e15591
- Update to 0.042
e15591
  - When 'realpath' can't be resolved (because intermediate directories don't
e15591
    exist), the exception now explains the error clearly instead of complaining
e15591
    about path() needing a defined, positive-length argument
e15591
  - On Windows, fixed resolution of relative paths with a volume, e.g. "C:foo"
e15591
    is now correctly translated into getdcwd on "C:" plus "foo"
e15591
e15591
* Fri Oct 11 2013 Paul Howarth <paul@city-fan.org> - 0.041-1
e15591
- Update to 0.041
e15591
  - Remove duplicate test dependency on File::Spec that triggers a CPAN.pm bug
e15591
e15591
* Wed Oct  9 2013 Paul Howarth <paul@city-fan.org> - 0.040-1
e15591
- Update to 0.040
e15591
  - The 'filehandle' method now offers an option to return locked handles
e15591
    based on the file mode
e15591
  - The 'filehandle' method now respects default encoding set by the caller's
e15591
    open pragma
e15591
e15591
* Wed Oct  2 2013 Paul Howarth <paul@city-fan.org> - 0.038-1
e15591
- Update to 0.038
e15591
  - Added 'is_rootdir' method to simplify testing if a path is the root
e15591
    directory
e15591
e15591
* Thu Sep 26 2013 Paul Howarth <paul@city-fan.org> - 0.037-1
e15591
- Update to 0.037
e15591
  - No longer lists 'threads' as a prerequisite; if you have a threaded perl,
e15591
    you have it and if you've not, Path::Tiny doesn't care
e15591
  - Fixed for v5.8
e15591
e15591
* Tue Sep 24 2013 Paul Howarth <paul@city-fan.org> - 0.035-1
e15591
- Update to 0.035
e15591
  - Fixed flock warning on BSD that was broken with the autodie removal; now
e15591
    also applies to all BSD flavors
e15591
e15591
* Tue Sep 24 2013 Paul Howarth <paul@city-fan.org> - 0.034-1
e15591
- Update to 0.034
e15591
  - Exceptions are now Path::Tiny::Error objects, not autodie exceptions; this
e15591
    removes the last dependency on autodie, which allows us to support Perls as
e15591
    far back as v5.8.1
e15591
  - BSD/NFS flock fix was not backwards compatible before v5.14; this fixes it
e15591
    harder
e15591
  - Lowered ExtUtils::MakeMaker configure_requires version to 6.17
e15591
e15591
* Thu Sep 12 2013 Paul Howarth <paul@city-fan.org> - 0.033-1
e15591
- Update to 0.033
e15591
  - Perl on BSD may not support locking on an NFS filesystem: if this is
e15591
    detected, Path::Tiny warns and continues in an unsafe mode (the 'flock'
e15591
    warning category may be fatalized to die instead)
e15591
  - Added 'iterator' example showing defaults
e15591
e15591
* Fri Sep  6 2013 Paul Howarth <paul@city-fan.org> - 0.032-1
e15591
- Update to 0.032
e15591
  - Removed several test dependencies; Path::Tiny now only needs core modules,
e15591
    though some must be upgraded on old Perls
e15591
e15591
* Tue Sep  3 2013 Paul Howarth <paul@city-fan.org> - 0.031-3
e15591
- BR: perl(Config) for the test suite (#1003660)
e15591
e15591
* Mon Sep  2 2013 Paul Howarth <paul@city-fan.org> - 0.031-2
e15591
- Sanitize for Fedora submission
e15591
e15591
* Mon Sep  2 2013 Paul Howarth <paul@city-fan.org> - 0.031-1
e15591
- Initial RPM version