62 lines
2.9 KiB
RPMSpec
62 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-XML-Tiny
|
|
#
|
|
# Copyright (c) 2024 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 XML-Tiny
|
|
Name: perl-XML-Tiny
|
|
Version: 2.70.0
|
|
Release: 0
|
|
# 2.07 -> normalize -> 2.70.0
|
|
%define cpan_version 2.07
|
|
#Upstream: David Cantrell <_david@cantrell.org.uk_> Thanks to David Romano for some compatibility patches for Ye Aunciente Perl; to Matt Knecht and David Romano for prodding me to support attributes, and to Matt for providing code to implement it in a quick n dirty minimal kind of way; to the people on the http://use.perl.org/ manpage and elsewhere who have been kind enough to point out ways it could be improved; to Sergio Fanchiotti for pointing out a bug in handling self-closing tags, for reporting another bug that I introduced when fixing the first one, and for providing a patch to improve error reporting; to 'Corion' for finding a bug with localised filehandles and providing a fix; to Diab Jerius for spotting that element and attribute names can begin with an underscore; to Nick Dumas for finding a bug when attribs have their quoting character in CDATA, and providing a patch; to Mathieu Longtin for pointing out that BOMs exist. This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Simple lightweight parser for a subset of XML
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(XML::Tiny) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
XML::Tiny is a simple lightweight parser for a subset of XML
|
|
|
|
%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 CHANGELOG README
|
|
%license ARTISTIC.txt GPL2.txt
|
|
|
|
%changelog
|