Accepting request 296207 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/296207 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-ShareDir?expand=0&rev=14
This commit is contained in:
parent
7943793009
commit
57f307ba8b
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:59442e64101105b08ae323daad794140b46b242368c5616b7ebf7edf25569f39
|
||||
size 33711
|
3
File-ShareDir-1.102.tar.gz
Normal file
3
File-ShareDir-1.102.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c7334b974882587fbd9bc135f6bc04ad197abe99e6f4761953fe9ca88c57411
|
||||
size 11973
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-File-ShareDir
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,84 +15,84 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-File-ShareDir
|
||||
%define real_name File-ShareDir
|
||||
Version: 1.102
|
||||
Release: 0
|
||||
%define cpan_name File-ShareDir
|
||||
Summary: Locate per-dist and per-module shared files
|
||||
Url: http://search.cpan.org/perldoc?File::ShareDir
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: Artistic License
|
||||
Version: 1.03
|
||||
Release: 1
|
||||
Source: %{real_name}-%{version}.tar.gz
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl-Class-Inspector
|
||||
Requires: perl-Class-Inspector
|
||||
Url: http://search.cpan.org/dist/File-ShareDir/
|
||||
Source: http://www.cpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Class::Inspector) >= 1.12
|
||||
BuildRequires: perl(Test::More) >= 0.9
|
||||
Requires: perl(Class::Inspector) >= 1.12
|
||||
%{perl_requires}
|
||||
|
||||
%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.
|
||||
The intent of the File::ShareDir manpage is to provide a companion to the
|
||||
Class::Inspector manpage and the File::HomeDir manpage, 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.
|
||||
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.
|
||||
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.
|
||||
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>
|
||||
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 -n %{real_name}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make %{?jobs:-j%jobs}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%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
|
||||
%{_mandir}/man3/File::ShareDir*
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user