Name: perl-YAML-LibYAML-API Version: 0.14.0 Release: 5%{?dist} Summary: Wrapper around the C libyaml library License: MIT URL: https://metacpan.org/release/YAML-LibYAML-API Source0: https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-API-v%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: libyaml-devel >= 0.2.5 BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.8.0 BuildRequires: perl(Config) BuildRequires: perl(Data::Dumper) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(XSLoader) BuildRequires: perl(YAML::PP::Common) >= 0.024 # Tests BuildRequires: perl(blib) BuildRequires: perl(Encode) BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(IO::Handle) BuildRequires: perl(IPC::Open3) BuildRequires: perl(Test::More) >= 0.98 Requires: perl(YAML::PP::Common) >= 0.024 # Filter unversioned require %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(YAML::PP::Common\\) %description This module provides a thin wrapper around the C libyaml API. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n YAML-LibYAML-API-v%{version} # Unbundled libyaml for F in api.c config.h dumper.c emitter.c loader.c parser.c reader.c \ scanner.c writer.c yaml.h yaml_private.h; do rm "LibYAML/$F" perl -i -ne 'print $_ unless m{^LibYAML/\Q'"$F"'\E}' MANIFEST done # Help file to recognise the Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build WITH_SYSTEM_LIBYAML=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \ NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh set -e # Some tests write into temporary files/directories. The easiest solution # is to copy the tests into a writable directory and execute them from there. DIR=$(mktemp -d) pushd "$DIR" cp -a %{_libexecdir}/%{name}/* ./ prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -rf "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check unset AUTHOR_TESTING export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc Changes README %{perl_vendorarch}/auto/YAML* %{perl_vendorarch}/YAML* %{_mandir}/man3/YAML::LibYAML::API* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.14.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 11 2024 Jitka Plesnikova - 0.14.0-4 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.14.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.14.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 08 2024 Jitka Plesnikova - 0.14.0-1 - 0.14.0 bump (rhbz#2256874) * Fri Jul 21 2023 Fedora Release Engineering - 0.013-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.013-5 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.013-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.013-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.013-2 - Perl 5.36 rebuild * Thu Apr 28 2022 Jitka Plesnikova - 0.013-1 - 0.013 bump; License was change to MIT * Fri Jan 21 2022 Fedora Release Engineering - 0.012-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.012-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.012-2 - Perl 5.34 rebuild * Mon Apr 12 2021 Jitka Plesnikova 0.012-1 - Specfile autogenerated by cpanspec 1.78.