commit 8823c4c7aad56b4a168cd9505adb590be7cd3c19cfd808ba936e281907841df9 Author: Tina Müller Date: Mon Jan 13 21:45:53 2025 +0000 - updated to 1.994.0 (1.994) see /usr/share/doc/packages/perl-Test-File/Changes 1.994 2025-01-03T06:58:48Z * refresh distro and move to BRIANDFOY OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-File?expand=0&rev=21 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Test-File-1.993.tar.gz b/Test-File-1.993.tar.gz new file mode 100644 index 0000000..d123107 --- /dev/null +++ b/Test-File-1.993.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef2ffe1aaec7b42d874ad411ec647547b9b9bc2f5fb93e49e3399488456afc7a +size 34406 diff --git a/Test-File-1.994.tar.gz b/Test-File-1.994.tar.gz new file mode 100644 index 0000000..8ed2c90 --- /dev/null +++ b/Test-File-1.994.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d0b27f62fb15efb91375c145e4ef930df67c3c4ffdab9e262e1a57b656ce4f6 +size 35329 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Test-File.changes b/perl-Test-File.changes new file mode 100644 index 0000000..f35a49b --- /dev/null +++ b/perl-Test-File.changes @@ -0,0 +1,173 @@ +------------------------------------------------------------------- +Sat Jan 4 05:34:59 UTC 2025 - Tina Müller + +- updated to 1.994.0 (1.994) + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.994 2025-01-03T06:58:48Z + * refresh distro and move to BRIANDFOY + +------------------------------------------------------------------- +Tue Jan 3 03:12:26 UTC 2023 - Tina Müller + +- updated to 1.993 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.993 2022-12-31T20:33:55Z + * Try harder to check for symlinks on Windows by stealing some code + from Win32:: (Jean-Damien Durand) GitHub #36 + + 1.992_01 2022-11-10T21:59:59Z + * Try harder to test Windows symlinks, #36 from Jean-Damien Durand + +------------------------------------------------------------------- +Wed Feb 16 03:08:12 UTC 2022 - Tina Müller + +- updated to 1.992 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.992 2022-02-15T19:40:16Z + * GitHub #29 - race condition in tests for mtime, from Slaven Rezić. + Most people never experienced this timing issue, so if you have this + already you don't need to update. + +------------------------------------------------------------------- +Fri Jan 21 03:09:23 UTC 2022 - Tina Müller + +- updated to 1.991 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.991 2022-01-21T01:37:36Z + * Enforce text files in some functions, as warned in #18. + * Change up some diag messages: 1) lowercase first letter 2) not ! at + end, and 3) use "file" instead of "filename". If you were matching on + those, you may need to update your patterns. + +------------------------------------------------------------------- +Sat Mar 6 03:08:19 UTC 2021 - Tina Müller + +- updated to 1.448 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.448 2021-03-05T15:01:18Z + * Promote to a user release + + 1.447_01 2021-03-02T16:11:23Z + * Try handling all-numeric user and group names (but, also, wtf?) + Github #26. + +------------------------------------------------------------------- +Thu Feb 25 03:09:11 UTC 2021 - Tina Müller + +- updated to 1.447 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.447 2021-02-24T21:32:41Z + * Trying harder to get the tests to pass on Cygwin + +------------------------------------------------------------------- +Mon Feb 22 16:48:23 UTC 2021 - Tina Müller + +- updated to 1.446 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.446 2021-02-20T21:18:48Z + * Better cygwin detection, from Achim Gratz + +------------------------------------------------------------------- +Wed Feb 17 03:13:06 UTC 2021 - Tina Müller + +- updated to 1.445 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.445 2021-02-16T08:57:34Z + * Get the tests to pass under Cygwin (Github #17, from Slaven Rezić) + +------------------------------------------------------------------- +Thu Jan 7 03:10:03 UTC 2021 - Tina Müller + +- updated to 1.444 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.444 2021-01-06T03:40:19Z + * Remove Travis, add GitHub actions + * Add file_is_symlink_not_ok + 1.443_03 2020-06-15T13:13:42Z + * Merge some test additions from Desmond Daignault (GitHub #20) + 1.443_02 2020-06-15T12:10:34Z + * Deprecated directories in tests appropriate for only plain files. + It's a diag() message now but will be a test failure later. + 1.443_01 2020-06-12T11:54:41Z + * change the file_writeable_ok tests to file_writable_ok, which + is the correct spelling. The old names work but now warn to use + the new name. + * Some updates to refresh the tests. + * Start mirroring Test2::Tools::File so we support the same names. + Thanks to Torbjørn Lindahl for spotting rough edges. + +------------------------------------------------------------------- +Tue Apr 18 06:44:51 UTC 2017 - coolo@suse.com + +- updated to 1.443 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.443 2017-04-17T08:41:35Z + * Found another relative path require issue thanks to Ryan Voots + http://blogs.perl.org/users/ryan_voots/2017/04/trials-and-troubles-with-changing-inc.html + * This is another attempt at avoiding failures from the v5.26 + removal of . from @INC. + +------------------------------------------------------------------- +Fri Sep 23 06:04:11 UTC 2016 - coolo@suse.com + +- updated to 1.442 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.442 2016-09-22T15:35:50Z + * Update to stable release. This fixes an upcoming Perl @INC + issue that removes the current directory from the default list. + This affects only the test files which use a private library. + If you already have this installed you don't need to update. + + 1.441_01 2016-09-19T21:44:45Z + * Fix for missing . in @INC (Github #14 https://github.com/briandfoy/test-file/issues/14) + This relates to CVE-2016-1238 + +------------------------------------------------------------------- +Tue Jul 7 09:23:56 UTC 2015 - coolo@suse.com + +- updated to 1.44 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.44 2015-07-06T00:29:56Z + * Fix file_has_* tests to work on Windows (RJBS) GitHub #13 + + 1.43_02 2015-06-24T15:21:57Z + * check file_mode_has tests for Windows + +------------------------------------------------------------------- +Tue Jun 23 08:47:25 UTC 2015 - coolo@suse.com + +- updated to 1.43 + see /usr/share/doc/packages/perl-Test-File/Changes + + 1.43 2015-06-22T21:44:37Z + * Don't install README.pod + +------------------------------------------------------------------- +Thu Jun 18 18:27:38 UTC 2015 - coolo@suse.com + +- updated to 1.42 + see /usr/share/doc/packages/perl-Test-File/Changes + +------------------------------------------------------------------- +Tue Apr 14 20:12:53 UTC 2015 - coolo@suse.com + +- updated to 1.41 + see /usr/share/doc/packages/perl-Test-File/Changes + +------------------------------------------------------------------- +Tue Dec 28 19:58:18 CET 2010 - pascal.bleser@opensuse.org + +- initial version (1.29) + diff --git a/perl-Test-File.spec b/perl-Test-File.spec new file mode 100644 index 0000000..fe85ab8 --- /dev/null +++ b/perl-Test-File.spec @@ -0,0 +1,77 @@ +# +# spec file for package perl-Test-File +# +# Copyright (c) 2025 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define cpan_name Test-File +Name: perl-Test-File +Version: 1.994.0 +Release: 0 +# 1.994 -> normalize -> 1.994.0 +%define cpan_version 1.994 +License: Artistic-2.0 +Summary: Test file attributes +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64 +BuildRequires: perl(Test::Builder) >= 1.001006 +BuildRequires: perl(Test::Builder::Tester) >= 1.04 +BuildRequires: perl(Test::More) >= 1 +Provides: perl(Test::File) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description +This modules provides a collection of test utilities for file attributes. + +Some file attributes depend on the owner of the process testing the file in +the same way the file test operators do. For instance, root (or super-user +or Administrator) may always be able to read files no matter the +permissions. + +Some attributes don't make sense outside of Unix, either, so some tests +automatically skip if they think they won't work on the platform. If you +have a way to make these functions work on Windows, for instance, please +send me a patch. :) If you want to pretend to be Windows on a non-Windows +machine (for instance, to test 'skip()'), you can set the +'PRETEND_TO_BE_WINDOWS' environment variable. + +The optional NAME parameter for every function allows you to specify a name +for the test. If not supplied, a reasonable default will be generated. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes CITATION.cff examples SECURITY.md +%license LICENSE + +%changelog