- initial version 1.01
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-ShareDir?expand=0&rev=1
This commit is contained in:
commit
aa43749364
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
File-ShareDir-1.01.tar.bz2
Normal file
3
File-ShareDir-1.01.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28802d266ccbf907b717ed85e46e68fd9b85b91d733ec82fd951aa80ec96d44d
|
||||
size 26532
|
5
perl-File-ShareDir.changes
Normal file
5
perl-File-ShareDir.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 26 17:47:19 UTC 2009 - lars@linux-schulserver.de
|
||||
|
||||
- initial version 1.01
|
||||
|
87
perl-File-ShareDir.spec
Normal file
87
perl-File-ShareDir.spec
Normal file
@ -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 <adamk@cpan.org>
|
||||
|
||||
|
||||
%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
|
Loading…
Reference in New Issue
Block a user