95a6915dc1
[INCOMPATIBLE CHANGE] - 1.57 omitted a change entry for the following change: - Previously, YAML::Tiny was sloppy about file encodings. It is now strict. The 'read' method and 'LoadFile' function expect UTF-8 encoded files. The 'write' method and 'DumpFile' function produce UTF-8 encoded files. The 'read_string' and 'write_string' methods and the 'Load' and 'Dump' functions expect or generate (decoded) character data. - Previously, some errors would throw exceptions and some would return the error condition in $YAML::Tiny::errstr. Now all errors throw exceptions. Use of $errstr and the errstr method are deprecated. (David Golden) [FIXED] - Fixed write method to encode YAML file with UTF-8 (David Golden) - Improved SYNOPSIS and documentation of new (David Golden) [TESTING] - Tests have been cleaned up and reorganized. Test coverage has been significnatly improved. (Ingy döt Net, David Golden, Jim Keenan, Karen Etheridge) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-YAML-Tiny?expand=0&rev=16
95 lines
3.4 KiB
RPMSpec
95 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package perl-YAML-Tiny
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: perl-YAML-Tiny
|
|
Version: 1.58
|
|
Release: 0
|
|
%define cpan_name YAML-Tiny
|
|
Summary: Read/Write YAML files with as little code as possible
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/YAML-Tiny/
|
|
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
BuildRequires: perl(Test::More) >= 0.99
|
|
BuildRequires: perl(version)
|
|
|
|
%{perl_requires}
|
|
|
|
%description
|
|
*YAML::Tiny* is a perl class for reading and writing YAML-style files,
|
|
written with as little code as possible, reducing load time and memory
|
|
overhead.
|
|
|
|
Most of the time it is accepted that Perl applications use a lot of memory
|
|
and modules. The *::Tiny* family of modules is specifically intended to
|
|
provide an ultralight and zero-dependency alternative to many more-thorough
|
|
standard modules.
|
|
|
|
This module is primarily for reading human-written files (like simple
|
|
config files) and generating very simple human-readable files. Note that I
|
|
said *human-readable* and not *geek-readable*. The sort of files that your
|
|
average manager or secretary should be able to look at and make sense of.
|
|
|
|
the YAML::Tiny manpage does not generate comments, it won't necessarily
|
|
preserve the order of your hashes, and it will normalise if reading in and
|
|
writing out again.
|
|
|
|
It only supports a very basic subset of the full YAML specification.
|
|
|
|
Usage is targeted at files like Perl's META.yml, for which a small and
|
|
easily-embeddable module is extremely attractive.
|
|
|
|
Features will only be added if they are human readable, and can be written
|
|
in a few lines of code. Please don't be offended if your request is
|
|
refused. Someone has to draw the line, and for YAML::Tiny that someone is
|
|
me.
|
|
|
|
If you need something with more power move up to the YAML manpage (7
|
|
megabytes of memory overhead) or the YAML::XS manpage (6 megabytes memory
|
|
overhead and requires a C compiler).
|
|
|
|
To restate, the YAML::Tiny manpage does *not* preserve your comments,
|
|
whitespace, or the order of your YAML data. But it should round-trip from
|
|
Perl structure to file and back again just fine.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
%{__perl} Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes CONTRIBUTING LICENSE README README.md
|
|
|
|
%changelog
|