Compare commits

..

No commits in common. "c10" and "c8-stream-6.34" have entirely different histories.

4 changed files with 27 additions and 163 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
HTML-Parser-3.82.tar.gz
SOURCES/HTML-Parser-3.72.tar.gz

View File

@ -0,0 +1 @@
0d8491510f4e56588678ef0fd2b6ddee5d134137 SOURCES/HTML-Parser-3.72.tar.gz

View File

@ -1,9 +1,9 @@
Name: perl-HTML-Parser
Summary: Perl module for parsing HTML
Version: 3.82
Release: 3%{?dist}
License: GPL-1.0-or-later OR Artistic-1.0-Perl
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTML-Parser-%{version}.tar.gz
Version: 3.72
Release: 15%{?dist}
License: GPL+ or Artistic
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.gz
URL: https://metacpan.org/release/HTML-Parser
BuildRequires: coreutils
BuildRequires: findutils
@ -13,23 +13,27 @@ BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Exporter)
BuildRequires: perl(HTML::Tagset) >= 3
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(IO::File)
BuildRequires: perl(URI)
BuildRequires: perl(XSLoader)
# Tests
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Spec)
BuildRequires: perl(FileHandle)
BuildRequires: perl(HTML::Tagset) >= 3
%if %{undefined perl_bootstrap}
# This creates cycle with perl-HTTP-Message.
BuildRequires: perl(HTTP::Headers)
%endif
BuildRequires: perl(IO::File)
BuildRequires: perl(SelectSaver)
BuildRequires: perl(strict)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(threads)
BuildRequires: perl(URI)
BuildRequires: perl(vars)
BuildRequires: perl(XSLoader)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(HTML::Tagset) >= 3
Requires: perl(HTTP::Headers)
Requires: perl(IO::File)
@ -43,31 +47,16 @@ The HTML-Parser module for perl to parse and extract information from
HTML documents, including the HTML::Entities, HTML::HeadParser,
HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
%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 HTML-Parser-%{version}
chmod -c a-x eg/*
# Help file to recognise the Perl scripts and normalize shebangs
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
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
%install
%{make_install}
make pure_install DESTDIR=%{buildroot}
file=%{buildroot}%{_mandir}/man3/HTML::Entities.3pm
iconv -f iso-8859-1 -t utf-8 <"$file" > "${file}_" && \
touch -r ${file} ${file}_ && \
@ -75,143 +64,18 @@ iconv -f iso-8859-1 -t utf-8 <"$file" > "${file}_" && \
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
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
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 TODO eg/
%{perl_vendorarch}/HTML/
%{perl_vendorarch}/auto/HTML/
%{_mandir}/man3/HTML::*.3pm*
%files tests
%{_libexecdir}/%{name}
%{_mandir}/man3/*.3pm*
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.82-3
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 3.82-2
- Bump release for Aug 2024 java mass rebuild
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 3.82-1
- 3.82 bump
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.81-6
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.81-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.81-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.81-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.81-2
- Perl 5.38 rebuild
* Wed Feb 01 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.81-1
- 3.81 bump
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.80-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Nov 02 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.80-1
- 3.80 bump
* Thu Oct 13 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.79-1
- 3.79 bump
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.78-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.78-2
- Perl 5.36 rebuild
* Thu Mar 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 3.78-1
- 3.78 bump
* Tue Mar 15 2022 Michal Josef Špaček <mspacek@redhat.com> - 3.77-1
- 3.77 bump
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.76-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.76-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.76-2
- Perl 5.34 rebuild
* Fri Mar 05 2021 Jitka Plesnikova <jplesnik@redhat.com> - 3.76-1
- 3.76 bump
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.75-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Thu Sep 10 2020 Petr Pisar <ppisar@redhat.com> - 3.75-2
- Always build-require HTTP::Headers
* Mon Aug 31 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.75-1
- 3.75 bump
* Wed Aug 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.73-1
- 3.73 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.72-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.72-23
- Perl 5.32 re-rebuild of bootstrapped packages
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 3.72-22
- Perl 5.32 rebuild
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 3.72-21
- Spec file cleanups: Use make_build and make_install macros
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.72-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.72-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.72-18
- Perl 5.30 re-rebuild of bootstrapped packages
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.72-17
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.72-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.72-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 3.72-15
- Rebuild with enable hardening (bug #1636329)
* Mon Jul 09 2018 Petr Pisar <ppisar@redhat.com> - 3.72-14
- Remove tests subpackage

View File

@ -1 +0,0 @@
SHA512 (HTML-Parser-3.82.tar.gz) = c3c173097eabe46dc95cf408915f1f33cdac2dab2430ea144258741cdcd4c8b90c5b11f4e1114da2703a4412aecfea778e003a3d8eb4c61ee433f64b07489d18