commit d7f621f03f559efe704bf36341a921665c99d46b51168cfc8b1902071320223e Author: Adrian Schröter Date: Fri May 3 18:15:57 2024 +0200 Sync from SUSE:SLFO:Main perl-File-ShareDir revision fa922fe47f025c19ed9458e2fe3a890f 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/File-ShareDir-1.118.tar.gz b/File-ShareDir-1.118.tar.gz new file mode 100644 index 0000000..7bab183 --- /dev/null +++ b/File-ShareDir-1.118.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bb2a20ba35df958dc0a4f2306fc05d903d8b8c4de3c8beefce17739d281c958 +size 29631 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..1b9f670 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,30 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +preamble: |- + # because File::ShareDir::Install is in inc/ it won't be seen as a + # dependency by cpanspec + BuildRequires: perl(File::ShareDir::Install) +#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_build: |- +# rm unused.files +#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-File-ShareDir.changes b/perl-File-ShareDir.changes new file mode 100644 index 0000000..e66f1d4 --- /dev/null +++ b/perl-File-ShareDir.changes @@ -0,0 +1,152 @@ +------------------------------------------------------------------- +Thu Oct 22 03:13:44 UTC 2020 - Tina Müller + +- updated to 1.118 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + + 1.118 2020-10-21 + - Releasing 1.117_001 without further changes + + 1.117_001 2020-09-25 + - fix failing test of dependencies after in 1.116 (from 1.112), + thanks to Dirk Stöcker for reporting via RT#127376 and + Mohammad S Anwar (@manwar) for providing the fix via Github + PR#14 + - Fix RT#133368 (PR#15): Fix running tests in parallel submitted + by Kent Fredric (KENTNL) and fix provided by Tom Hukins (@tomhukins) + - Fix RT#125907: spelling error in manpage - thanks to Lucas Kanashiro + for reporting and Graham Knop (@haarg) for kicking me by submitting + PR#17 + +------------------------------------------------------------------- +Tue Oct 22 16:28:24 UTC 2019 - Tina Mueller + +- Add manual dependency File::ShareDir::Install + * The module delivers a version of this in inc/, but doesn't use this + in the tests. cpanspec won't detect this as a dependency + +------------------------------------------------------------------- +Wed Apr 3 06:58:00 UTC 2019 - Stephan Kulow + +- updated to 1.116 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + + 1.116 2018-06-24 + - fix fail-test which incorrectly read without permission + ==> introduce new CI test proving this (Thanks to Ville + Skyttä ) + - spelling fixes (Thanks to Ville Skyttä ) + - fix author tests when run without recommended dependencies + (reported by Mohammed Anwar & Wesley Schwengle) + - add a test proving and reporting dependencies + + 1.114 2018-06-21 + - be more expressive regarding to prerequisites + - improve detection for situations where no permission test + can be done + - fix edge case for 5.8 + +------------------------------------------------------------------- +Tue Jun 19 05:22:48 UTC 2018 - coolo@suse.com + +- updated to 1.112 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + + 1.112 2018-06-18 + - Fix tests that fail when running as root (RT#125602, + thanks Wesley Schwengle ) + - Fix tests fail on MSWin32 for similar reason as the + root failures from RT#125602 + - clarify support rules + - improve POD + + 1.110 2018-06-16 + - remove unused/incomplete _dist_packfile + - increase test coverage + - refactor _search_inc_path + - add badges to POD + +------------------------------------------------------------------- +Sat Jun 16 05:26:17 UTC 2018 - coolo@suse.com + +- updated to 1.108 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + + 1.108 2018-06-15 + - Fix RT#125582: Undefined subroutine &File::ShareDir::croak + called reported by yseto and Andreas Koenig (via RT#125575) + - Improve tests a little (a higher test coverage would be great) + - Update README.md + +------------------------------------------------------------------- +Mon Jun 11 05:26:11 UTC 2018 - coolo@suse.com + +- updated to 1.106 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + + 1.106 2018-06-10 + - Add support for overriding the resolved path for a given + Module or Dist (Thanks to Kent Fredric ) + - Fix RT#84914: _dist_file_new lacks return check (Thanks to + Alex Peters ) -- fixes RT#40158, too. + - Fix RT#60431: common @INC traversal code + Phillip Moore requested for + easier overriding in controlled environments an extraction + of @INC traversal in one subroutine. + The provided patch has been applied with minor modifications, + thanks Phillip! + - Fix RT#63548: State explicit how developers can use + File::ShareDir even in development phase out-of-the-box + - Fix RT#18042: Windows style path errors (Thanks to Barbie + ) + - Improve infrastructure of distribution (toolchain, perltidy, + perlcritic, Devel::Cover, ...) + - deploy with most recent File::ShareDir::Install (v0.12-6-g29a6ff7 + aka 0.13) + +------------------------------------------------------------------- +Fri Jun 30 05:30:06 UTC 2017 - coolo@suse.com + +- updated to 1.104 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + +------------------------------------------------------------------- +Tue Apr 14 15:44:23 UTC 2015 - coolo@suse.com + +- updated to 1.102 + see /usr/share/doc/packages/perl-File-ShareDir/Changes + +------------------------------------------------------------------- +Fri Nov 18 09:12:40 UTC 2011 - coolo@suse.com + +- update to 1.03 + - Upgraded to Module::Install 1.00 + +------------------------------------------------------------------- +Tue Nov 30 19:20:15 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Nov 29 18:29:59 UTC 2010 - coolo@novell.com + +- remove /var/adm/perl-modules + +------------------------------------------------------------------- +Sun Nov 28 11:37:49 UTC 2010 - coolo@novell.com + +- remove .packlist file + +------------------------------------------------------------------- +Sun Mar 21 18:23:30 UTC 2010 - lars@linux-schulserver.de + +- update to 1.02: + + Upgraded to Module::Install 0.95 + + Removed Params::Util dep +- removed dependency to perl-Params-Util package + +------------------------------------------------------------------- +Sat Dec 26 17:47:19 UTC 2009 - lars@linux-schulserver.de + +- initial version 1.01 + diff --git a/perl-File-ShareDir.spec b/perl-File-ShareDir.spec new file mode 100644 index 0000000..ee59b11 --- /dev/null +++ b/perl-File-ShareDir.spec @@ -0,0 +1,108 @@ +# +# spec file for package perl-File-ShareDir +# +# Copyright (c) 2020 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/ +# + + +Name: perl-File-ShareDir +Version: 1.118 +Release: 0 +%define cpan_name File-ShareDir +Summary: Locate per-dist and per-module shared files +License: Artistic-1.0 OR GPL-1.0-or-later +Group: Development/Libraries/Perl +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Class::Inspector) >= 1.12 +BuildRequires: perl(File::Path) >= 2.080000 +BuildRequires: perl(Test::More) >= 0.90 +Requires: perl(Class::Inspector) >= 1.12 +Recommends: perl(List::MoreUtils) >= 0.428 +Recommends: perl(Params::Util) >= 1.07 +%{perl_requires} +# MANUAL BEGIN +# because File::ShareDir::Install is in inc/ it won't be seen as a +# dependency by cpanspec +BuildRequires: perl(File::ShareDir::Install) +# MANUAL END + +%description +The intent of File::ShareDir is to provide a companion to Class::Inspector +and File::HomeDir, modules that take a process that is well-known by +advanced Perl developers but gets a little tricky, and make it more +available to the larger Perl community. + +Quite often you want or need your Perl module (CPAN or otherwise) to have +access to a large amount of read-only data that is stored on the +file-system at run-time. + +On a linux-like system, this would be in a place such as /usr/share, +however Perl runs on a wide variety of different systems, and so the use of +any one location is unreliable. + +Perl provides a little-known method for doing this, but almost nobody is +aware that it exists. As a result, module authors often go through some +very strange ways to make the data available to their code. + +The most common of these is to dump the data out to an enormous Perl data +structure and save it into the module itself. The result are enormous +multi-megabyte .pm files that chew up a lot of memory needlessly. + +Another method is to put the data "file" after the __DATA__ compiler tag +and limit yourself to access as a filehandle. + +The problem to solve is really quite simple. + + 1. Write the data files to the system at install time. + + 2. Know where you put them at run-time. + +Perl's install system creates an "auto" directory for both every +distribution and for every module file. + +These are used by a couple of different auto-loading systems to store code +fragments generated at install time, and various other modules written by +the Perl "ancient masters". + +But the same mechanism is available to any dist or module to store any sort +of data. + +%prep +%setup -q -n %{cpan_name}-%{version} +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README.md testrules.yml +%license LICENSE + +%changelog