Skip to content

Commit 09bf97a

Browse files
authored
Upgrade: perl-XML-Writer to version 0.900 (microsoft#11557)
1 parent 3cf32aa commit 09bf97a

File tree

3 files changed

+99
-15
lines changed

3 files changed

+99
-15
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"perl-XML-Writer-0.625.tar.gz": "e080522c6ce050397af482665f3965a93c5d16f5e81d93f6e2fe98084ed15fbe"
3+
"perl-XML-Writer-0.900.tar.gz": "73c8f5bd3ecf2b350f4adae6d6676d52e08ecc2d7df4a9f089fa68360d400d1f"
44
}
55
}

SPECS-EXTENDED/perl-XML-Writer/perl-XML-Writer.spec

Lines changed: 96 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
33
Name: perl-XML-Writer
4-
Version: 0.625
5-
Release: 17%{?dist}
4+
Version: 0.900
5+
Release: 16%{?dist}
66
Summary: A simple Perl module for writing XML documents
7-
License: CC0
7+
License: LicenseRef-Fedora-UltraPermissive
88
URL: https://metacpan.org/release/XML-Writer
99
Source0: https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-%{version}.tar.gz#/perl-XML-Writer-%{version}.tar.gz
1010
BuildArch: noarch
11+
BuildRequires: make
1112
BuildRequires: perl-interpreter
1213
BuildRequires: perl-generators
1314
BuildRequires: perl(ExtUtils::MakeMaker)
@@ -28,7 +29,6 @@ BuildRequires: perl(warnings)
2829
BuildRequires: perl(IO::Scalar)
2930
BuildRequires: perl(Test::Pod) >= 1.00
3031
BuildRequires: perl(Test::Pod::Coverage)
31-
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
3232

3333
%description
3434
XML::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
3838
end tags match, that there is exactly one document element, and that
3939
there 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}
4353
find 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
5581
make 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

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20983,8 +20983,8 @@
2098320983
"type": "other",
2098420984
"other": {
2098520985
"name": "perl-XML-Writer",
20986-
"version": "0.625",
20987-
"downloadUrl": "https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-0.625.tar.gz"
20986+
"version": "0.900",
20987+
"downloadUrl": "https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/XML-Writer-0.900.tar.gz"
2098820988
}
2098920989
}
2099020990
},

0 commit comments

Comments
 (0)