perl-File-ShareDir/perl-File-ShareDir.spec
Lars Vogdt 55a374adf0 - update to 1.02:
+ Upgraded to Module::Install 0.95
  + Removed Params::Util dep
- removed dependency to perl-Params-Util package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-ShareDir?expand=0&rev=3
2010-03-21 18:30:29 +00:00

88 lines
2.7 KiB
RPMSpec

#
# 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.02
Release: 1
Vendor: openSUSE-Education
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-macros
BuildRequires: perl-Class-Inspector
Requires: 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