# Perform optional tests
%bcond_with perl_HTML_Strip_enables_optional_test
Name: perl-HTML-Strip
Version: 2.10
Release: 23%{?dist}
Summary: Perl extension for stripping HTML markup from text
License: GPL+ or Artistic
URL: https://metacpan.org/release/HTML-Strip
Source0: https://cpan.metacpan.org/authors/id/K/KI/KILINRAX/HTML-Strip-%{version}.tar.gz
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Optional run-time:
BuildRequires: perl(HTML::Entities)
# Tests:
BuildRequires: perl(Encode)
BuildRequires: perl(FindBin)
BuildRequires: perl(Test::Exception)
# Test::Kwalitee not used
BuildRequires: perl(Test::More)
%if %{with perl_HTML_Strip_enables_optional_test}
# Optional tests
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Suggests: perl(HTML::Entities)
%{?perl_default_filter}
%description
This module simply strips HTML-like markup from text in a very quick and
brutal manner. It could quite easily be used to strip XML or SGML from text
as well; but removing HTML markup is a much more common problem, hence this
module lives in the HTML:: namespace.
%prep
%setup -q -n HTML-Strip-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
unset RELEASE_TESTING
make test
%files
%doc Changes README
%{perl_vendorarch}/auto/HTML*
%{perl_vendorarch}/HTML*
%{_mandir}/man3/HTML*
%changelog
* Fri Jul 22 2022 Fedora Release Engineering - 2.10-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue May 31 2022 Jitka Plesnikova - 2.10-22
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering - 2.10-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering - 2.10-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri May 21 2021 Jitka Plesnikova - 2.10-19
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering - 2.10-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering - 2.10-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova - 2.10-16
- Perl 5.32 rebuild
* Thu Mar 12 2020 Petr Pisar - 2.10-15
- Specify all dependencies
* Thu Jan 30 2020 Fedora Release Engineering - 2.10-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering - 2.10-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova - 2.10-12
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering - 2.10-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering - 2.10-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 28 2018 Jitka Plesnikova - 2.10-9
- Perl 5.28 rebuild
* Sun Feb 18 2018 Charles R. Anderson - 2.10-8
- add BR gcc
* Thu Feb 08 2018 Fedora Release Engineering - 2.10-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering - 2.10-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering - 2.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sun Jun 04 2017 Jitka Plesnikova - 2.10-4
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering - 2.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sun May 15 2016 Jitka Plesnikova - 2.10-2
- Perl 5.24 rebuild
* Fri May 06 2016 Emmanuel Seyman - 2.10-1
- Update to 2.10
* Thu Feb 04 2016 Fedora Release Engineering - 2.09-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering - 2.09-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 06 2015 Jitka Plesnikova - 2.09-2
- Perl 5.22 rebuild
* Sun Jan 11 2015 Emmanuel Seyman - 2.09-1
- Update to 2.09
* Sun Dec 14 2014 Emmanuel Seyman - 2.08-1
- Update to 2.08
* Sun Dec 07 2014 Emmanuel Seyman - 2.07-1
- Update to 2.07
- Drop the private lib filtering
- Tighten file listing
* Thu Dec 04 2014 Emmanuel Seyman - 2.05-1
- Update to 2.05
* Fri Nov 28 2014 Emmanuel Seyman - 2.04-1
- Update to 2.04
* Sat Nov 22 2014 Emmanuel Seyman - 2.02-1
- Update to 2.02
* Mon Nov 10 2014 Emmanuel Seyman - 1.10-1
- Update to 1.10
- Clean up specfile
* Thu Aug 28 2014 Jitka Plesnikova - 1.06-16
- Perl 5.20 rebuild
* Sun Aug 17 2014 Fedora Release Engineering - 1.06-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering - 1.06-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering - 1.06-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Mon Jul 22 2013 Petr Pisar - 1.06-12
- Perl 5.18 rebuild
* Thu Feb 14 2013 Fedora Release Engineering - 1.06-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jul 20 2012 Fedora Release Engineering - 1.06-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jun 13 2012 Petr Pisar - 1.06-9
- Perl 5.16 rebuild
* Fri Jan 13 2012 Fedora Release Engineering - 1.06-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Jun 21 2011 Marcela Mašláňová - 1.06-7
- Perl mass rebuild
* Tue Feb 08 2011 Fedora Release Engineering - 1.06-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Dec 17 2010 Marcela Maslanova - 1.06-5
- 661697 rebuild for fixing problems with vendorach/lib
* Sun May 02 2010 Marcela Maslanova - 1.06-4
- Mass rebuild with perl-5.12.0
* Mon Dec 7 2009 Stepan Kasal - 1.06-3
- rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering - 1.06-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Mar 15 2009 Iain Arnell 1.06-1
- Specfile autogenerated by cpanspec 1.77.
- don't "provide" private Perl libs