2019-08-28 16:59:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-YAML-LibYAML-API
|
|
|
|
#
|
2024-01-05 21:27:20 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-08-28 16:59:56 +00: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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-04-13 19:24:00 +00:00
|
|
|
%define cpan_name YAML-LibYAML-API
|
2019-08-28 16:59:56 +00:00
|
|
|
Name: perl-YAML-LibYAML-API
|
2024-01-05 21:27:20 +00:00
|
|
|
Version: 0.14.0
|
2019-08-28 16:59:56 +00:00
|
|
|
Release: 0
|
2022-04-13 19:24:00 +00:00
|
|
|
License: MIT
|
2019-08-28 16:59:56 +00:00
|
|
|
Summary: Wrapper around the C libyaml library
|
2020-05-20 04:39:51 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-01-05 21:27:20 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/%{cpan_name}-v%{version}.tar.gz
|
2019-08-28 16:59:56 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:43 +02:00
|
|
|
Source100: README.md
|
2019-08-28 16:59:56 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::More) >= 0.98
|
2020-08-21 12:21:24 +00:00
|
|
|
BuildRequires: perl(YAML::PP) >= 0.024
|
2019-08-28 16:59:56 +00:00
|
|
|
BuildRequires: perl(YAML::PP::Common)
|
|
|
|
Requires: perl(YAML::PP::Common)
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides a thin wrapper around the C libyaml API.
|
|
|
|
|
|
|
|
Currently it provides functions for parsing and emitting events.
|
|
|
|
|
|
|
|
libyaml also provides a loader/dumper API to load/dump YAML into a list of
|
|
|
|
nodes. There's no wrapper for these functions yet.
|
|
|
|
|
|
|
|
This is just one of the first releases. The function names will eventually
|
|
|
|
be changed.
|
|
|
|
|
|
|
|
The sources of 'libyaml-dev' are included in this distribution. You can
|
|
|
|
build this module with the system libyaml instead, if you remove the
|
|
|
|
libyaml sources and call 'Makefile.PL' with 'WITH_SYSTEM_LIBYAML=1'.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 21:27:20 +00:00
|
|
|
%autosetup -n %{cpan_name}-v%{version}
|
2019-08-28 16:59:56 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2022-04-13 19:24:00 +00:00
|
|
|
%make_build
|
2019-08-28 16:59:56 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|