Accepting request 45178 from devel:languages:perl
Copy from devel:languages:perl/perl-File-Slurp based on submit request 45178 from user computersalat OBS-URL: https://build.opensuse.org/request/show/45178 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-File-Slurp?expand=0&rev=7
This commit is contained in:
parent
1da703a607
commit
6ea2f34717
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 9 13:41:33 UTC 2010 - chris@computersalat.de
|
||||
|
||||
- recreated by cpanspec 1.78
|
||||
- noarch pkg
|
||||
- added bcond_with pod
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
|
||||
|
||||
|
@ -17,39 +17,50 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%bcond_with pod
|
||||
|
||||
Name: perl-File-Slurp
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
%define cpan_name File-Slurp
|
||||
Summary: Efficient Reading/Writing of Complete Files
|
||||
Version: 9999.13
|
||||
Release: 2
|
||||
License: Artistic License ..
|
||||
Release: 9
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/File-Slurp
|
||||
Source0: %{cpan_name}-%{version}.tar.bz2
|
||||
Url: http://search.cpan.org/dist/File-Slurp/
|
||||
#Source: http://www.cpan.org/modules/by-module/File/File-Slurp-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
%if %{with pod}
|
||||
BuildRequires: perl(Test::Pod) >= 1.14
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||||
#BuildRequires: perl(Module::Build)
|
||||
%endif
|
||||
Requires: perl = %{perl_version}
|
||||
|
||||
%description
|
||||
This module provides subs that allow you to read or write entire files with one
|
||||
simple call. They are designed to be simple to use, have flexible ways to pass
|
||||
in or get the file contents and to be very efficient. There is also a sub to
|
||||
read in all the files in a directory other than . and ..
|
||||
This module provides subs that allow you to read or write entire files with
|
||||
one simple call. They are designed to be simple to use, have flexible ways
|
||||
to pass in or get the file contents and to be very efficient. There is also
|
||||
a sub to read in all the files in a directory other than . and ..
|
||||
|
||||
These slurp/spew subs work for files, pipes and sockets,
|
||||
and stdio, pseudo-files, and DATA.
|
||||
These slurp/spew subs work for files, pipes and sockets, and stdio,
|
||||
pseudo-files, and DATA.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Uri Guttman <uri@stemsystems.com>
|
||||
|
||||
Author: Uri Guttman, <uri@stemsystems.com>
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
# rpmlint: script-without-shebang
|
||||
%{__chmod} a-x lib/File/Slurp.pm
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
@ -57,14 +68,18 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user