11Vendor: Microsoft Corporation
22Distribution: Azure Linux
33Name: perl-XML-Writer
4- Version: 0.625
5- Release: 17 %{?dist }
4+ Version: 0.900
5+ Release: 16 %{?dist }
66Summary: A simple Perl module for writing XML documents
7- License: CC0
7+ License: LicenseRef-Fedora-UltraPermissive
88URL: https://metacpan.org/release/XML-Writer
99Source0: https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-%{version }.tar.gz#/perl-XML-Writer-%{version}.tar.gz
1010BuildArch: noarch
11+ BuildRequires: make
1112BuildRequires: perl-interpreter
1213BuildRequires: perl-generators
1314BuildRequires: perl(ExtUtils::MakeMaker)
@@ -28,7 +29,6 @@ BuildRequires: perl(warnings)
2829BuildRequires: perl(IO::Scalar)
2930BuildRequires: perl(Test::Pod) >= 1.00
3031BuildRequires: perl(Test::Pod::Coverage)
31- Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
3232
3333%description
3434XML::Writer is a simple Perl module for writing XML documents: it
@@ -38,31 +38,115 @@ checking on the output, to make certain (for example) that start and
3838end tags match, that there is exactly one document element, and that
3939there are not duplicate attribute names.
4040
41+ %package tests
42+ Summary: Tests for %{name }
43+ Requires: %{name } = %{?epoch:%{epoch }:}%{version }-%{release }
44+ Requires: perl-Test-Harness
45+ Recommends: perl(IO::Scalar)
46+
47+ %description tests
48+ Tests from %{name }. Execute them
49+ with "%{_libexecdir }/%{name }/test".
50+
4151%prep
4252%setup -q -n XML-Writer-%{version }
4353find examples -type f -exec chmod -x {} +
54+ # Remove executable flag from library
55+ chmod -x Writer.pm
56+ # Help generators to recognize Perl scripts
57+ perl -i -MConfig -ple ' print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' " t/selfcontained_output.t"
58+ chmod +x " t/selfcontained_output.t"
4459
4560%build
46- perl Makefile.PL INSTALLDIRS=vendor
47- make %{? _smp_mflags }
61+ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
62+ %{ make_build }
4863
4964%install
50- make pure_install DESTDIR=$RPM_BUILD_ROOT
51- find $RPM_BUILD_ROOT -type f -a \( -name .packlist \
52- -o \( -name ' *.bs' -a -empty \) \) -exec rm -f {} ' ;'
65+ %{make_install }
66+ # Install tests
67+ mkdir -p %{buildroot }%{_libexecdir }/%{name }
68+ cp -a t %{buildroot }%{_libexecdir }/%{name }
69+ # Remove release tests
70+ rm %{buildroot }/%{_libexecdir }/%{name }/t/pod-coverage.t
71+ rm %{buildroot }/%{_libexecdir }/%{name }/t/pod.t
72+ # Test script
73+ cat > %{buildroot }%{_libexecdir }/%{name }/test << 'EOF '
74+ #!/bin/sh
75+ cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
76+ EOF
77+ chmod +x %{buildroot }%{_libexecdir }/%{name }/test
78+ %{_fixperms } %{buildroot }/*
5379
5480%check
5581make test
5682
5783%files
58- %doc Changes examples LICENSE README TODO
84+ %doc Changes examples README TODO
85+ %license LICENSE
5986%{perl_vendorlib} /*
6087%{_mandir }/man3/* .3*
6188
89+ %files tests
90+ %{_libexecdir }/%{name }
6291
6392%changelog
64- *
Fri Oct 15 2021 Pawel Winogrodzki <[email protected] > -
0.625-17 65- - Initial CBL-Mariner import from Fedora 32 (license: MIT).
93+ *
Wed Dec 18 2024 Sumit Jena <[email protected] > -
0.900-14 94+ - Initial Azure Linux import from Fedora 41 (license: MIT).
95+ - License verified.
96+
97+ *
Fri Jul 19 2024 Fedora Release Engineering <[email protected] > -
0.900-15 98+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
99+
100+ *
Thu Jan 25 2024 Fedora Release Engineering <[email protected] > -
0.900-14 101+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
102+
103+ *
Sun Jan 21 2024 Fedora Release Engineering <[email protected] > -
0.900-13 104+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
105+
106+ *
Fri Jul 21 2023 Fedora Release Engineering <[email protected] > -
0.900-12 107+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
108+
109+ *
Wed Mar 15 2023 Michal Josef Špaček <[email protected] > -
0.900-11 110+ - Fix SPDX license
111+
112+ *
Fri Jan 20 2023 Fedora Release Engineering <[email protected] > -
0.900-10 113+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
114+
115+ *
Thu Oct 27 2022 Michal Josef Špaček <[email protected] > -
0.900-9 116+ - Package tests
117+ - Update license to SPDX format and change from CC0, it's not CC0, but public domain
118+ - Remove bad executable flag from library file
119+ - Simplify build and install process
120+
121+ *
Fri Jul 22 2022 Fedora Release Engineering <[email protected] > -
0.900-8 122+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
123+
124+ *
Tue May 31 2022 Jitka Plesnikova <[email protected] > -
0.900-7 125+ - Perl 5.36 rebuild
126+
127+ *
Fri Jan 21 2022 Fedora Release Engineering <[email protected] > -
0.900-6 128+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
129+
130+ *
Fri Jul 23 2021 Fedora Release Engineering <[email protected] > -
0.900-5 131+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
132+
133+ *
Fri May 21 2021 Jitka Plesnikova <[email protected] > -
0.900-4 134+ - Perl 5.34 rebuild
135+
136+ *
Wed Jan 27 2021 Fedora Release Engineering <[email protected] > -
0.900-3 137+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
138+
139+ *
Mon Oct 12 2020 Xavier Bachelot <[email protected] > -
0.900-2 140+ - Use %%license
141+
142+ *
Mon Oct 12 2020 Xavier Bachelot <[email protected] > -
0.900-1 143+ - Update to 0.900
144+
145+ *
Tue Jul 28 2020 Fedora Release Engineering <[email protected] > -
0.625-18 146+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
147+
148+ *
Tue Jun 23 2020 Jitka Plesnikova <[email protected] > -
0.625-17 149+ - Perl 5.32 rebuild
66150
67151*
Thu Jan 30 2020 Fedora Release Engineering <[email protected] > -
0.625-16 68152- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0 commit comments