20
0

Accepting request 723823 from home:tinita:branches:devel:languages:perl:CPAN-Y

I would like to add and maintain YAML::LibYAML::API.
Compared to YAML::XS, it provides access to libyaml parser/emitter API functions and allows low level processing parsing events with perl.

OBS-URL: https://build.opensuse.org/request/show/723823
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-YAML-LibYAML-API?expand=0&rev=1
This commit is contained in:
Stephan Kulow
2019-08-28 16:59:56 +00:00
committed by Git OBS Bridge
commit a14d95d63a
6 changed files with 133 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Aug 15 18:45:01 UTC 2019 - Tina Mueller <tina.mueller@suse.com>
- initial package 0.007
* created by cpanspec 1.78.09
+73
View File
@@ -0,0 +1,73 @@
#
# spec file for package perl-YAML-LibYAML-API
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
Name: perl-YAML-LibYAML-API
Version: 0.007
Release: 0
%define cpan_name YAML-LibYAML-API
Summary: Wrapper around the C libyaml library
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(YAML::PP) >= 0.018
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
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog
+23
View File
@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
+1
View File
@@ -0,0 +1 @@
.osc
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:589c0d8bea2343e29b6376e025ee38702ca80abe31c4c6dab0196cc0c2445ad9
size 118165
+28
View File
@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module