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
|
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -17,39 +17,50 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
%bcond_with pod
|
||||||
|
|
||||||
Name: perl-File-Slurp
|
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
|
Summary: Efficient Reading/Writing of Complete Files
|
||||||
Version: 9999.13
|
Version: 9999.13
|
||||||
Release: 2
|
Release: 9
|
||||||
License: Artistic License ..
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/File-Slurp
|
Url: http://search.cpan.org/dist/File-Slurp/
|
||||||
Source0: %{cpan_name}-%{version}.tar.bz2
|
#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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
|
%if %{with pod}
|
||||||
BuildRequires: perl(Test::Pod) >= 1.14
|
BuildRequires: perl(Test::Pod) >= 1.14
|
||||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
||||||
#BuildRequires: perl(Module::Build)
|
%endif
|
||||||
Requires: perl = %{perl_version}
|
Requires: perl = %{perl_version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides subs that allow you to read or write entire files with one
|
This module provides subs that allow you to read or write entire files with
|
||||||
simple call. They are designed to be simple to use, have flexible ways to pass
|
one simple call. They are designed to be simple to use, have flexible ways
|
||||||
in or get the file contents and to be very efficient. There is also a sub to
|
to pass in or get the file contents and to be very efficient. There is also
|
||||||
read in all the files in a directory other than . and ..
|
a sub to read in all the files in a directory other than . and ..
|
||||||
|
|
||||||
These slurp/spew subs work for files, pipes and sockets,
|
These slurp/spew subs work for files, pipes and sockets, and stdio,
|
||||||
and stdio, pseudo-files, and DATA.
|
pseudo-files, and DATA.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Uri Guttman <uri@stemsystems.com>
|
||||||
|
|
||||||
Author: Uri Guttman, <uri@stemsystems.com>
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
# rpmlint: script-without-shebang
|
||||||
|
%{__chmod} a-x lib/File/Slurp.pm
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -57,14 +68,18 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_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
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user