2009-08-11 15:53:44 +02:00
|
|
|
#
|
2011-04-01 09:58:33 +02:00
|
|
|
# spec file for package perl-File-Slurp
|
2009-08-11 15:53:44 +02:00
|
|
|
#
|
2019-02-14 14:43:19 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-08-11 15:53:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-08 10:55:15 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-11 15:53:44 +02:00
|
|
|
#
|
|
|
|
|
2011-04-01 09:58:33 +02:00
|
|
|
|
2009-08-11 15:53:44 +02:00
|
|
|
Name: perl-File-Slurp
|
2019-11-28 12:21:34 +01:00
|
|
|
Version: 9999.29
|
2018-11-08 10:55:15 +01:00
|
|
|
Release: 0
|
2011-03-31 13:51:29 +02:00
|
|
|
%define cpan_name File-Slurp
|
2018-11-09 10:48:26 +01:00
|
|
|
Summary: Perl module for reading/writing/modifying complete files
|
2018-11-08 10:55:15 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-03-31 13:51:29 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2018-11-08 10:55:15 +01:00
|
|
|
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
|
2010-08-10 00:20:55 +02:00
|
|
|
BuildArch: noarch
|
2009-08-11 15:53:44 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-03-31 13:51:29 +02:00
|
|
|
%{perl_requires}
|
2009-08-11 15:53:44 +02:00
|
|
|
|
|
|
|
%description
|
2010-08-10 00:20:55 +02:00
|
|
|
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
|
2018-11-08 10:55:15 +01:00
|
|
|
a sub to read in all the files in a directory.
|
2011-03-31 13:51:29 +02:00
|
|
|
|
2009-08-11 15:53:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2019-11-28 12:21:34 +01:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2009-08-11 15:53:44 +02:00
|
|
|
|
|
|
|
%build
|
2018-11-08 10:55:15 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2018-12-06 16:52:10 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-08-11 15:53:44 +02:00
|
|
|
|
|
|
|
%check
|
2018-12-06 16:52:10 +01:00
|
|
|
make test
|
2009-08-11 15:53:44 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2011-03-31 13:51:29 +02:00
|
|
|
%perl_process_packlist
|
2009-08-11 15:53:44 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-11-08 10:55:15 +01:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README.md
|
2009-08-11 15:53:44 +02:00
|
|
|
|
|
|
|
%changelog
|