Accepting request 647541 from devel:languages:perl

OBS-URL: https://build.opensuse.org/request/show/647541
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-File-Slurp?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2018-11-13 15:31:22 +00:00 committed by Git OBS Bridge
commit 215b7cdaa3
5 changed files with 55 additions and 37 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce29ebe995097ebd6e9bc03284714cdfa0c46dc94f6b14a56980747ea3253643
size 39927

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd480c3d474f477580940b26e0bce900ca5cb92c143c3bb3549882c1d7f823cf
size 34801

28
cpanspec.yml Normal file
View File

@ -0,0 +1,28 @@
---
summary: Perl module for reading/writing/modifying complete files
#description_paragraphs: 3
#description: |-
# override description from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Nov 9 09:38:01 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Trim bias from summary.
-------------------------------------------------------------------
Thu Nov 8 06:22:24 UTC 2018 - Stephan Kulow <coolo@suse.com>
- updated to 9999.24
see /usr/share/doc/packages/perl-File-Slurp/Changes
-------------------------------------------------------------------
Wed Jun 08 05:07:11 UTC 2011 - pascal.bleser@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-File-Slurp
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -12,55 +12,37 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-File-Slurp
Version: 9999.19
Release: 1
License: GPL-1.0+ or Artistic-1.0
Version: 9999.24
Release: 0
%define cpan_name File-Slurp
Summary: Simple and Efficient Reading/Writing of Complete Files
Url: http://search.cpan.org/dist/File-Slurp/
Summary: Perl module for reading/writing/modifying complete files
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/U/UR/URI/File-Slurp-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Fcntl)
BuildRequires: perl(POSIX)
Requires: perl(Carp)
Requires: perl(Exporter)
Requires: perl(Fcntl)
Requires: perl(POSIX)
%{perl_requires}
%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 '..'
These slurp/spew subs work for files, pipes and sockets, stdio,
pseudo-files, and the DATA handle. Read more about why slurping files is a
good thing in the file 'slurp_article.pod' in the extras/ directory.
If you are interested in how fast these calls work, check out the
slurp_bench.pl program in the extras/ directory. It compares many different
forms of slurping. You can select the I/O direction, context and file
sizes. Use the --help option to see how to run it.
a sub to read in all the files in a directory.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
@ -71,11 +53,8 @@ sizes. Use the --help option to see how to run it.
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README TODO
%defattr(-,root,root,755)
%doc Changes README.md
%changelog