# Run optional test %if ! (0%{?rhel}) %bcond_without perl_HTML_FormatText_WithLinks_enables_optional_test %else %bcond_with perl_HTML_FormatText_WithLinks_enables_optional_test %endif Name: perl-HTML-FormatText-WithLinks Version: 0.15 Release: 23%{?dist} Summary: HTML to text conversion with links as footnotes License: GPL+ or Artistic URL: https://metacpan.org/release/HTML-FormatText-WithLinks Source0: https://cpan.metacpan.org/authors/id/S/ST/STRUAN/HTML-FormatText-WithLinks-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) # Run-time BuildRequires: perl(base) BuildRequires: perl(HTML::FormatText) BuildRequires: perl(HTML::TreeBuilder) BuildRequires: perl(strict) BuildRequires: perl(URI::WithBase) BuildRequires: perl(vars) # Tests BuildRequires: perl(Test::More) # Optional tests %if %{with perl_HTML_FormatText_WithLinks_enables_optional_test} BuildRequires: perl(Test::MockObject) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) >= 0.08 %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) # not picked up automatically since it is called through SUPER Requires: perl(HTML::FormatText) >= 2 %description HTML::FormatText::WithLinks takes HTML and turns it into plain text but prints all the links in the HTML as footnotes. By default, it attempts to mimic the format of the lynx text based web browser's --dump option. %prep %setup -q -n HTML-FormatText-WithLinks-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' chmod -R u+w $RPM_BUILD_ROOT/* %check make test %files %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.15-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.15-22 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.15-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.15-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 23 2021 Jitka Plesnikova - 0.15-19 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.15-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.15-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Jitka Plesnikova - 0.15-16 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.15-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.15-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.15-13 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.15-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.15-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 0.15-10 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.15-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.15-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 0.15-7 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue May 17 2016 Jitka Plesnikova - 0.15-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.15-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 09 2015 Jitka Plesnikova - 0.15-2 - Perl 5.22 rebuild * Tue Feb 10 2015 Jitka Plesnikova - 0.15-1 - 0.15 bump; Update BRs - Modernize spec file * Mon Sep 01 2014 Jitka Plesnikova - 0.14-11 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.14-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Petr Pisar - 0.14-9 - Perl 5.18 rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.14-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.14-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 21 2012 Petr Pisar - 0.14-5 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jul 20 2011 Petr Sabata - 0.14-3 - Perl mass rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 13 2010 Petr Sabata - 0.14-1 - 0.14 bump * Thu Dec 2 2010 Petr Sabata - 0.12-1 - 0.12 bump * Wed Sep 15 2010 Petr Pisar - 0.11-1 - 0.11 bump * Sun May 02 2010 Marcela Maslanova - 0.09-8 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.09-7 - rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 0.09-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.09-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.09-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jul 11 2008 Tom "spot" Callaway - 0.09-3 - fix license tag (it may be correct, but its flagging as a false positive on checks) * Thu Mar 06 2008 Tom "spot" Callaway - 0.09-2 - Rebuild for new perl * Wed Aug 8 2007 Patrice Dumas 0.09-1 - update to 0.09 * Sun Sep 17 2006 Patrice Dumas 0.07-1 - update to 0.07 * Fri Sep 15 2006 Patrice Dumas 0.06-3 - add Requires for perl(HTML::FormatText), fix #206729 * Tue Aug 29 2006 Patrice Dumas 0.06-2 - added BuildRequires for tests * Tue Jul 18 2006 Patrice Dumas 0.06-1 - Initial packaging