Compare commits

...

No commits in common. 'c9' and 'i10cs' have entirely different histories.
c9 ... i10cs

2
.gitignore vendored

@ -1 +1 @@
SOURCES/YAML-free-1.30.tar.gz SOURCES/YAML-free-1.31.tar.gz

@ -1 +1 @@
0482da488fe9d079d08bcdc980c914b96967d72e SOURCES/YAML-free-1.30.tar.gz a43ad6582c437fc26889e65a9e27ceca697391a6 SOURCES/YAML-free-1.31.tar.gz

@ -12,10 +12,10 @@
%endif %endif
Name: perl-YAML Name: perl-YAML
Version: 1.30 Version: 1.31
Release: 8%{?dist} Release: 7%{?dist}
Summary: YAML Ain't Markup Language (tm) Summary: YAML Ain't Markup Language (tm)
License: GPL+ or Artistic License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/YAML URL: https://metacpan.org/release/YAML
# Tarball created from https://cpan.metacpan.org/modules/by-module/YAML/YAML-%%{version}.tar.gz # Tarball created from https://cpan.metacpan.org/modules/by-module/YAML/YAML-%%{version}.tar.gz
# using script YAML-free (see https://bugzilla.redhat.com/show_bug.cgi?id=1813197) # using script YAML-free (see https://bugzilla.redhat.com/show_bug.cgi?id=1813197)
@ -29,6 +29,7 @@ BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) > 6.75 BuildRequires: perl(ExtUtils::MakeMaker) > 6.75
# Module Runtime # Module Runtime
BuildRequires: perl(B) BuildRequires: perl(B)
@ -59,8 +60,7 @@ BuildRequires: perl(utf8)
BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(Test::Pod) >= 1.41
%endif %endif
%endif %endif
# Runtime # Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(B::Deparse) Requires: perl(B::Deparse)
Requires: perl(Carp) Requires: perl(Carp)
@ -68,15 +68,43 @@ Requires: perl(Carp)
# perl(yaml_mapping) perl(yaml_scalar) perl(yaml_sequence) # perl(yaml_mapping) perl(yaml_scalar) perl(yaml_sequence)
%global __provides_exclude ^perl\\(yaml_ %global __provides_exclude ^perl\\(yaml_
# Remove private test modules
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((TestYAML|TestYAMLBase)\\)$
%description %description
The YAML.pm module implements a YAML Loader and Dumper based on the YAML 1.0 If you need to use YAML with Perl, it is likely that you will have a look at
specification (http://www.yaml.org/spec/). YAML is a generic data serialization this module (YAML.pm) first. There are several YAML modules in Perl and they
language that is optimized for human readability. It can be used to express the all support the simple Load() and Dump() API. Since this one has the obvious
data structures of most modern programming languages, including Perl. For name "YAML", it may seem obvious to pick this one.
information on the YAML syntax, please refer to the YAML specification.
The author of this module humbly asks you to choose another. YAML.pm was the
very first YAML implementation in the world, released in 2001. It was
originally made as a prototype, over 2 years before the YAML 1.0 spec was
published. Although it may work for your needs, it has numerous bugs and is
barely maintained.
Please consider using these first:
* YAML::PP - Pure Perl, full featured, well maintained
* YAML::PP::LibYAML - A libyaml Perl binding like YAML::XS but with the
YAML::PP 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 %prep
%setup -q -n YAML-%{version} %setup -q -n YAML-%{version}
# Help generators to recognize 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 %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@ -85,6 +113,26 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%install %install
%{make_install} %{make_install}
%{_fixperms} -c %{buildroot} %{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}/t
# XXX Skip tests which is using Test::YAML
for F in \
2-scalars.t \
dump-synopsis.t \
issue-149.t \
issue-69.t \
numify.t \
preserve.t \
roundtrip.t \
rt-90593.t \
; do
cp "t/$F" %{buildroot}%{_libexecdir}/%{name}/t
done
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
%check %check
# Avoid circular build deps Test::YAML → Test::Base → YAML when bootstrapping # Avoid circular build deps Test::YAML → Test::Base → YAML when bootstrapping
@ -133,13 +181,66 @@ make test AUTHOR_TESTING=%{with perl_YAML_enables_extra_test}
%{_mandir}/man3/YAML::Tag.3* %{_mandir}/man3/YAML::Tag.3*
%{_mandir}/man3/YAML::Types.3* %{_mandir}/man3/YAML::Types.3*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-8 * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.31-7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Bump release for October 2024 mass rebuild:
Related: rhbz#1991688 Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.31-6
- Rebuilt for MSVSphere 10
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-6
- Fix filters of dependencies
* Mon Jul 15 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.31-5
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.31-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Dec 28 2023 Paul Howarth <paul@city-fan.org> - 1.31-1
- Update to 1.31 (rhbz#2255994)
- Update docs to recommend YAML::PP
- Package description updated as per upstream documentation
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Mar 02 2023 Michal Josef Špaček <mspacek@redhat.com> - 1.30-15
- Update license to SPDX format
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-12
- Perl 5.36 re-rebuild of bootstrapped packages
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-11
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-8
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.30-7 * Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.30-7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-6 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.30-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save