2011-04-04 10:31:53 +02:00
|
|
|
#
|
2011-07-19 16:21:33 +02:00
|
|
|
# spec file for package perl-YAML-Tiny
|
2011-04-04 10:31:53 +02:00
|
|
|
#
|
2013-10-04 17:24:20 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-04 10:31:53 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-08-26 13:27:17 +02:00
|
|
|
|
2011-07-19 16:21:33 +02:00
|
|
|
|
2010-08-26 13:27:17 +02:00
|
|
|
Name: perl-YAML-Tiny
|
2013-10-04 17:24:20 +02:00
|
|
|
Version: 1.56
|
2012-05-23 15:02:39 +02:00
|
|
|
Release: 0
|
2011-04-04 10:31:53 +02:00
|
|
|
%define cpan_name YAML-Tiny
|
2010-08-26 13:27:17 +02:00
|
|
|
Summary: Read/Write YAML files with as little code as possible
|
2012-05-23 15:02:39 +02:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-08-26 13:27:17 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2012-05-23 15:02:39 +02:00
|
|
|
Url: http://search.cpan.org/dist/YAML-Tiny/
|
2013-10-04 17:24:20 +02:00
|
|
|
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
2011-04-04 10:31:53 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 15:57:06 +01:00
|
|
|
BuildRequires: perl-macros
|
2013-10-04 17:24:20 +02:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.027
|
|
|
|
BuildRequires: perl(Test::More) >= 0.94
|
|
|
|
#BuildRequires: perl(Pod::Wordlist)
|
|
|
|
#BuildRequires: perl(Test::Kwalitee)
|
|
|
|
#BuildRequires: perl(Test::NoTabs)
|
|
|
|
#BuildRequires: perl(Test::Spelling) >= 0.12
|
2012-05-23 15:02:39 +02:00
|
|
|
#BuildRequires: perl(t::lib::Test)
|
|
|
|
#BuildRequires: perl(YAML)
|
|
|
|
#BuildRequires: perl(YAML::Perl)
|
|
|
|
#BuildRequires: perl(YAML::Syck)
|
|
|
|
#BuildRequires: perl(YAML::Tiny)
|
|
|
|
#BuildRequires: perl(YAML::XS)
|
2011-04-04 10:31:53 +02:00
|
|
|
%{perl_requires}
|
2010-08-26 13:27:17 +02:00
|
|
|
|
|
|
|
%description
|
2011-04-04 10:31:53 +02:00
|
|
|
*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.
|
|
|
|
|
2013-10-04 17:24:20 +02:00
|
|
|
the YAML::Tiny manpage does not generate comments, it won't necessarily
|
2011-04-04 10:31:53 +02:00
|
|
|
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.
|
2010-08-26 13:27:17 +02:00
|
|
|
|
2013-10-04 17:24:20 +02:00
|
|
|
Usage is targeted at files like Perl's META.yml, for which a small and
|
2011-04-04 10:31:53 +02:00
|
|
|
easily-embeddable module is extremely attractive.
|
2010-08-26 13:27:17 +02:00
|
|
|
|
2011-04-04 10:31:53 +02:00
|
|
|
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
|
2013-10-04 17:24:20 +02:00
|
|
|
_libsyck_ and a C compiler).
|
2011-04-04 10:31:53 +02:00
|
|
|
|
|
|
|
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.
|
2010-08-26 13:27:17 +02:00
|
|
|
|
|
|
|
%prep
|
2011-04-04 10:31:53 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2012-05-23 15:02:39 +02:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-08-26 13:27:17 +02:00
|
|
|
|
|
|
|
%build
|
2013-10-04 17:24:20 +02:00
|
|
|
%{__perl} Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2011-04-04 10:31:53 +02:00
|
|
|
|
|
|
|
%check
|
2013-10-04 17:24:20 +02:00
|
|
|
./Build test
|
2011-04-04 10:31:53 +02:00
|
|
|
|
2010-08-26 13:27:17 +02:00
|
|
|
%install
|
2013-10-04 17:24:20 +02:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2011-04-04 10:31:53 +02:00
|
|
|
%perl_gen_filelist
|
2010-08-26 13:27:17 +02:00
|
|
|
|
2011-04-04 10:31:53 +02:00
|
|
|
%files -f %{name}.files
|
2012-05-23 15:02:39 +02:00
|
|
|
%defattr(-,root,root,755)
|
2013-10-04 17:24:20 +02:00
|
|
|
%doc Changes LICENSE README
|
2010-08-26 13:27:17 +02:00
|
|
|
|
2011-04-04 10:31:53 +02:00
|
|
|
%changelog
|