# # spec file for package perl-Config-Tiny # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name Config-Tiny Name: perl-Config-Tiny Version: 2.300.0 Release: 1.2 %define cpan_version 2.30 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Read/Write .ini style files with as little code as possible URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{cpan_version}.tgz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Spec) >= 3.30 BuildRequires: perl(File::Temp) >= 0.22 BuildRequires: perl(Test::More) >= 1.001002 Requires: perl(File::Spec) >= 3.30 Requires: perl(File::Temp) >= 0.22 Provides: perl(Config::Tiny) = 2.300.0 %define __perllib_provides /bin/true %{perl_requires} %description 'Config::Tiny' is a Perl class to read and write .ini style configuration files 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 alternative to the standard modules. This module is primarily for reading human written files, and anything we write shouldn't need to have documentation/comments. If you need something with more power move up to Config::Simple, Config::General or one of the many other 'Config::*' modules. Lastly, Config::Tiny does *not* preserve your comments, whitespace, or the order of your config file. See Config::Tiny::Ordered (and possibly others) for the preservation of the order of the entries in the file. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog * Fri Oct 13 2023 Tina Müller - updated to 2.30 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini [V 2.30] Date=2023-10-12T17:17:08 Comments= < - fix build on SLES 12 (no make_build macro) * Thu Apr 6 2023 Tina Müller - updated to 2.29 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini [V 2.29] Date=2023-04-05T12:53:00 Comments= < - updated to 2.28 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini [V 2.28] Date=2022-01-04T15:47:58 Comments= < - updated to 2.27 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini [V 2.27] Date=2021-09-21T15:48:00 Comments= < - updated to 2.26 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini * Thu Aug 1 2019 Stephan Kulow - Update to 0.24 - Delete from caveats in documentation where it used to say: 'Config::Tiny will only recognize the first time an option is set in a config file.' 'Any further attempts to set the same option later in the config file are ignored.' In reality the code uses the 2nd and subsequent values to overwrite earlier values. - Make this topic a new FAQ. - Add corresponding test t/06.repeat.key.t. - Update POD to clarify trailing comment options. - Add corresponding test t/07.trailing.comment.t. - Romanize Gregory Kidrenko's name so Config::IniFiles does not get 'Wide char in print'. - Move xt/pod.t to xt/author/pod.t. - Adopt new repo structure. See http://savage.net.au/Ron/html/My.Workflow.for.Building.Distros.html. - Move require 5.008001 from Tiny.pm into Makefile.PL. * Sun Oct 8 2017 coolo@suse.com - updated to 2.23 see /usr/share/doc/packages/perl-Config-Tiny/Changelog.ini [V 2.23] Date=2015-10-14T09:11:00 Comments= < $VERSION in Makefile.PL to VERSION_FROM => 'lib/Config/Tiny.pm'. Reported by Jean-Louis Morel. See RT#88670. 2.18 Sat Sep 14 10:03:00 2013 - Remove obsolete and wrong version # from Makefile.PL. Reported by Jean-Louis Morel. See RT#88658. - Implement Kevin Ryde's suggestion to test if read() will return undef. If so, set an error message and (still) return undef. 2.17 Fri Sep 13 12:41:00 2013 - Remove the file tests -efr during calls to read(). The open() tests for any error. Also, the -f test was reporting /dev/null as a directory, not a file. Thanx to Kevin Ryde for pushing me to implement this. See RT#36974. - Clean up some error messages slightly. 2.16 Fri Sep 6 11:54:00 2013 - Replace Path::Tiny with File::Spec, because the former's list of dependencies is soooo long :-(. Changed files: t/02.main.t, t/04.utf8.t, Build.PL and Makefile.PL. See: RT#88435 (for Tree::DAG_Node) for an explanation. 2.15 Sun Aug 4 14:59:00 2013 - Clean up the shambolic dates in this file. - Add a note under Caveats about setting options more that once. Only the first case is respected. Thanx to Kimmel K. See RT#69795. - Add a $encoding parameter to read_file() and write_file(). See docs for details. Add t/04.utf8.t and t/04.utf8.txt. Thanx to Mark Lawrence and Wolfgang Husmann. See RT#71029 and RT#85571. - For BSD-based systems, when writing a file during tests, use: my($temp_dir) = File::Temp -> newdir('temp.XXXX', CLEANUP => 1, EXLOCK => 0, TMPDIR => 1); - Rename t/*.t files. I use '.' rather than '_' in file names because the latter is a shift char. - Add MANIFEST.SKIP, Changelog.ini, Build.PL, META.json. - Add an FAQ to the docs. - Clean up the docs. * Fri Nov 18 2011 coolo@suse.com - use original .tar.gz * Thu Mar 24 2011 pascal.bleser@opensuse.org - update to 2.14: * fix RT#63080: module can write multiline values but not read them * Tue Nov 30 2010 coolo@novell.com - switch to perl_requires macro * Wed Nov 24 2010 chris@computersalat.de - update to 2.13 - Resolved #60703: Display glitch in Config::Tiny 2.12 POD - Resolved #40585: member 'set;' doesn't exist - Resolved #30479: does not warn or die when writing data it - created by cpanspec 1.78 - noarch pkg * Tue Oct 19 2010 coolo@novell.com - add perl as explicit buildrequire * Sat Jan 19 2008 gerrit.beine@googlemail.com - moved to openSUSE Build Service * Thu Dec 6 2007 gerrit@beine-computer.de - first release 2.12