- updated to 1.48

- Fix to the refaddr compatibility where Scalar::Util is installed
      but is older than 1.18.
    - No functional changes
    - Only depend on the YAML implementations when we are release testing
    - No functional changes
    - Moving to a production release now CPAN Testers is green again
    - Adding experimental support for exception->errstr conversion
    - Updating test suite yaml_error to not expect exceptions
    - Added support for trailing line comments (INGY)
    - Added checks for some characters that are illegal or reserved
      in plain scalars (INGY)
    - Minor cleaning up of some out of date POD (ADAMK)
    - Updated AUTOMATED_TESTING dependencies to new versions (ADAMK)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-YAML-Tiny?expand=0&rev=6
This commit is contained in:
Stephan Kulow 2011-04-04 08:31:53 +00:00 committed by Git OBS Bridge
parent 31ee82028c
commit d840c740ee
4 changed files with 98 additions and 42 deletions

View File

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

3
YAML-Tiny-1.48.tar.gz Normal file
View File

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

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Apr 4 08:30:23 UTC 2011 - coolo@novell.com
- updated to 1.48
- Fix to the refaddr compatibility where Scalar::Util is installed
but is older than 1.18.
- No functional changes
- Only depend on the YAML implementations when we are release testing
- No functional changes
- Moving to a production release now CPAN Testers is green again
- Adding experimental support for exception->errstr conversion
- Updating test suite yaml_error to not expect exceptions
- Added support for trailing line comments (INGY)
- Added checks for some characters that are illegal or reserved
in plain scalars (INGY)
- Minor cleaning up of some out of date POD (ADAMK)
- Updated AUTOMATED_TESTING dependencies to new versions (ADAMK)
-------------------------------------------------------------------
Thu Dec 2 12:51:46 UTC 2010 - seife@opensuse.org

View File

@ -1,60 +1,98 @@
# vim: set sw=4 ts=4 et nu:
# norootforbuild
#
# spec file for package perl-YAML-Tiny (Version 1.48)
#
# Copyright (c) 2010 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.44
Release: 0
Version: 1.48
Release: 1
License: GPL+ or Artistic
%define cpan_name YAML-Tiny
Summary: Read/Write YAML files with as little code as possible
Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/YAML-Tiny-%{version}.tar.gz
URL: http://search.cpan.org/dist/YAML-Tiny
Url: http://search.cpan.org/dist/YAML-Tiny/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
#Source: http://www.cpan.org/authors/id/A/AD/ADAMK/YAML-Tiny-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: make perl
BuildRequires: perl(YAML)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(File::Spec) >= 0.80
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(YAML) >= 0.72
BuildRequires: perl(YAML::Perl) >= 0.02
BuildRequires: perl(YAML::Syck) >= 1.17
BuildRequires: perl(YAML::XS) >= 0.34
%{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.
*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.
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.
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 necesarily
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 targetted 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 (4
megabytes of memory overhead) or the YAML::Syck manpage (275k, but requires
libsyck and 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 "YAML-Tiny-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%perl_gen_filelist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/YAML
%{perl_vendorlib}/YAML/Tiny.pm
%dir %{perl_vendorarch}/auto/YAML
%{perl_vendorarch}/auto/YAML/Tiny
%doc %{perl_man3dir}/YAML::Tiny.%{perl_man3ext}%{ext_man}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes LICENSE README
%changelog