Compare commits
No commits in common. "c9" and "c8-stream-6.34" have entirely different histories.
c9
...
c8-stream-
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/HTML-Parser-3.76.tar.gz
|
||||
SOURCES/HTML-Parser-3.72.tar.gz
|
||||
|
||||
@ -1 +1 @@
|
||||
a5071fce244e78b818974b1f0876d8024713523b SOURCES/HTML-Parser-3.76.tar.gz
|
||||
0d8491510f4e56588678ef0fd2b6ddee5d134137 SOURCES/HTML-Parser-3.72.tar.gz
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
Name: perl-HTML-Parser
|
||||
Summary: Perl module for parsing HTML
|
||||
Version: 3.76
|
||||
Release: 3%{?dist}
|
||||
Version: 3.72
|
||||
Release: 15%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTML-Parser-%{version}.tar.gz
|
||||
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,25 +13,26 @@ BuildRequires: make
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Run-time
|
||||
BuildRequires: perl(Carp)
|
||||
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(Config)
|
||||
BuildRequires: perl(Exporter)
|
||||
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)
|
||||
@ -46,129 +47,35 @@ 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
|
||||
if head -1 "$F" | grep -q -e '^#!.*perl\b' ; then
|
||||
perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F"
|
||||
else
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
|
||||
fi
|
||||
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}_ && \
|
||||
mv -f "${file}_" "$file"
|
||||
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||
|
||||
# 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
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%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/*.3pm*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.76-3
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.76-2
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
* 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user