Name: perl-XML-Writer Version: 0.900 Release: 9%{?dist} Summary: A simple Perl module for writing XML documents License: LicenseRef-Fedora-Public-Domain URL: https://metacpan.org/release/XML-Writer Source0: https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(strict) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(IO::Handle) BuildRequires: perl(overload) BuildRequires: perl(vars) # Tests: BuildRequires: perl(Algorithm::Diff) BuildRequires: perl(Encode) BuildRequires: perl(Errno) BuildRequires: perl(IO::File) BuildRequires: perl(Test::More) >= 0.047 BuildRequires: perl(warnings) # Optional tests: BuildRequires: perl(IO::Scalar) BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Test::Pod::Coverage) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description XML::Writer is a simple Perl module for writing XML documents: it takes care of constructing markup and escaping data correctly, and by default, it also performs a significant amount of well-formedness checking on the output, to make certain (for example) that start and end tags match, that there is exactly one document element, and that there are not duplicate attribute names. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Recommends: perl(IO::Scalar) %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n XML-Writer-%{version} find examples -type f -exec chmod -x {} + # Remove executable flag from library chmod -x Writer.pm # Help generators to recognize Perl scripts perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "t/selfcontained_output.t" chmod +x "t/selfcontained_output.t" %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} # Remove release tests rm %{buildroot}/%{_libexecdir}/%{name}/t/pod-coverage.t rm %{buildroot}/%{_libexecdir}/%{name}/t/pod.t # Test script 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 %{_fixperms} %{buildroot}/* %check make test %files %doc Changes examples README TODO %license LICENSE %{perl_vendorlib}/* %{_mandir}/man3/*.3* %files tests %{_libexecdir}/%{name} %changelog * Thu Oct 27 2022 Michal Josef Špaček - 0.900-9 - Package tests - Update license to SPDX format and change from CC0, it's not CC0, but public domain - Remove bad executable flag from library file - Simplify build and install process * Fri Jul 22 2022 Fedora Release Engineering - 0.900-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 0.900-7 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.900-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.900-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.900-4 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.900-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Oct 12 2020 Xavier Bachelot - 0.900-2 - Use %%license * Mon Oct 12 2020 Xavier Bachelot - 0.900-1 - Update to 0.900 * Tue Jul 28 2020 Fedora Release Engineering - 0.625-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.625-17 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.625-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.625-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.625-14 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.625-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.625-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 0.625-11 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.625-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.625-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.625-8 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.625-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.625-6 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.625-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.625-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 0.625-3 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 0.625-2 - Perl 5.20 rebuild * Mon Jun 09 2014 Petr Pisar - 0.625-1 - 0.625 bump * Sat Jun 07 2014 Fedora Release Engineering - 0.624-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Feb 13 2014 Petr Pisar - 0.624-1 - 0.624 bump * Sun Aug 04 2013 Fedora Release Engineering - 0.623-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jul 20 2013 Petr Pisar - 0.623-3 - Perl 5.18 rebuild * Wed Jul 03 2013 Jitka Plesnikova - 0.623-2 - Change license to CC0 * Fri Jun 14 2013 Petr Pisar - 0.623-1 - 0.623 bump * Mon Apr 15 2013 Petr Šabata - 0.621-1 - 0.621 bump - Lots of bugfixes - Packaging examples - Fixing build-time deps and removing unneeded lines - Fixing changelog issues * Thu Feb 14 2013 Fedora Release Engineering - 0.612-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Aug 17 2012 Jitka Plesnikova - 0.612-5 - Specify all dependencies. * Fri Jul 20 2012 Fedora Release Engineering - 0.612-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 12 2012 Petr Pisar - 0.612-3 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.612-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sun Oct 2 2011 Tom Callaway - 0.612-1 - update to 0.612 * Mon Jun 20 2011 Marcela Mašláňová - 0.606-9 - Perl mass rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.606-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 23 2010 Marcela Maslanova - 0.606-7 - 661697 rebuild for fixing problems with vendorach/lib * Fri May 07 2010 Marcela Maslanova - 0.606-6 - Mass rebuild with perl-5.12.0 * Thu Feb 25 2010 Marcela Mašláňová - 0.606-6 - make rpmlint happy * Mon Dec 7 2009 Stepan Kasal - 0.606-4 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 0.606-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.606-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Feb 2 2009 Alex Lancaster - 0.606-1 - Update to upstream 0.606 - Clarify license is MIT * Tue Mar 18 2008 Alex Lancaster - 0.604-1 - New upstream release (0.604) * Wed Feb 27 2008 Tom "spot" Callaway - 0.603-4 - Rebuild for perl 5.10 (again) * Sun Jan 20 2008 Tom "spot" Callaway 0.603-3 - rebuild for new perl * Thu Aug 23 2007 Alex Lancaster 0.603-2 - License tag to "GPL+ or Artistic" as per new guidelines. * Sat Aug 18 2007 Alex Lancaster 0.603-1 - Update to latest upstream * Mon Mar 26 2007 Alex Lancaster 0.602-3 - Fixed %%check * Fri Mar 23 2007 Alex Lancaster 0.602-2 - Update BR as per suggestions from review by Ralf Corsepius * Fri Mar 23 2007 Alex Lancaster 0.602-1 - Update to 0.602 * Wed Apr 06 2005 Hunter Matthews 0.531-1 - Review suggestions from José Pedro Oliveira * Tue Mar 22 2005 Hunter Matthews 0.531-1 - Initial build.