commit aa43749364a2712b64b5841096d07802aeac59949032f817825a70f76e0898e2 Author: Lars Vogdt Date: Sat Dec 26 18:01:47 2009 +0000 - initial version 1.01 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-ShareDir?expand=0&rev=1 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/File-ShareDir-1.01.tar.bz2 b/File-ShareDir-1.01.tar.bz2 new file mode 100644 index 0000000..b8ae2aa --- /dev/null +++ b/File-ShareDir-1.01.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28802d266ccbf907b717ed85e46e68fd9b85b91d733ec82fd951aa80ec96d44d +size 26532 diff --git a/perl-File-ShareDir.changes b/perl-File-ShareDir.changes new file mode 100644 index 0000000..6f9b7a8 --- /dev/null +++ b/perl-File-ShareDir.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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..7044b73 --- /dev/null +++ b/perl-File-ShareDir.spec @@ -0,0 +1,87 @@ +# +# spec file for package perl-File-ShareDir +# + +# norootforbuild + +Name: perl-File-ShareDir +%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +Summary: Locate per-dist and per-module shared files +Url: http://search.cpan.org/perldoc?File::ShareDir +Group: Development/Libraries/Perl +License: Artistic License +Version: 1.01 +Release: 1 +Vendor: openSUSE-Education +Source: %{real_name}-%{version}.tar.bz2 +BuildRequires: perl-macros +BuildRequires: perl-Params-Util +BuildRequires: perl-Class-Inspector +Requires: perl = %{perl_version} +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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. + +Author: +------- + Adam Kennedy + + +%prep +%setup -n %{real_name}-%{version} + +%build +perl Makefile.PL +make %{?jobs:-j%jobs} + +%check +make test + +%install +%perl_make_install +%perl_process_packlist + +%clean +rm -rf %{buildroot} + +%files +%defattr(0644, root, root, 0755) +%doc Changes README MANIFEST +%dir %perl_vendorlib/File +%dir %perl_vendorlib/auto/share +%dir %perl_vendorlib/auto/share/dist +%dir %perl_vendorlib/auto/share/dist/File-ShareDir +%dir %perl_vendorlib/auto/share/dist/File-ShareDir/subdir +%dir %perl_vendorlib/auto/share/module +%dir %perl_vendorlib/auto/share/module/File-ShareDir +%dir %perl_vendorarch/auto/File +%dir %perl_vendorarch/auto/File/ShareDir +%perl_vendorlib/File/ShareDir.pm +%perl_vendorlib/auto/share/dist/File-ShareDir/sample.txt +%perl_vendorlib/auto/share/dist/File-ShareDir/subdir/sample.txt +%perl_vendorlib/auto/share/module/File-ShareDir/test_file.txt +%perl_vendorarch/auto/File/ShareDir/.packlist +%{_mandir}/man3/File::ShareDir* +/var/adm/perl-modules/perl-File-ShareDir + +%changelog