2582c09
# This file is licensed under the terms of GNU GPLv2+.
793d5c8
793d5c8
# Run optional tests
47cdddc
%if ! (0%{?rhel})
793d5c8
%{bcond_without perl_Module_Runtime_enables_optional_test}
47cdddc
%else
47cdddc
%{bcond_with perl_Module_Runtime_enables_optional_test}
47cdddc
%endif
793d5c8
2582c09
Name:           perl-Module-Runtime
b645807
Version:        0.016
8d0c946
Release:        19%{?dist}
2582c09
Summary:        Runtime module handling
fd8f4cb
License:        GPL-1.0-or-later OR Artistic-1.0-Perl
d7df6cf
URL:            https://metacpan.org/release/Module-Runtime
d7df6cf
Source0:        https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/Module-Runtime-%{version}.tar.gz
2582c09
BuildArch:      noarch
b645807
BuildRequires:  coreutils
1edf626
BuildRequires:  make
9c4ae14
BuildRequires:  perl-generators
1edf626
BuildRequires:  perl-interpreter
1edf626
BuildRequires:  perl(:VERSION) >= 5.6
1edf626
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
2582c09
# Tests:
e36bf32
BuildRequires:  perl(Math::BigInt)
1edf626
BuildRequires:  perl(strict)
1edf626
BuildRequires:  perl(Test::More) >= 0.41
1edf626
BuildRequires:  perl(warnings)
793d5c8
%if %{with perl_Module_Runtime_enables_optional_test}
2582c09
# Optional tests:
2582c09
BuildRequires:  perl(Test::Pod) >= 1.00
2582c09
BuildRequires:  perl(Test::Pod::Coverage)
793d5c8
%endif
2582c09
9413003
# Remove underspecified dependencies
9413003
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(t::Nested\\)$
0faed23
# Remove private modules
0faed23
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
9413003
2582c09
%description
2582c09
The functions exported by this module deal with runtime handling of Perl
2582c09
modules, which are normally handled at compile time.
2582c09
9413003
%package tests
9413003
Summary:        Tests for %{name}
9413003
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
9413003
Requires:       perl-Test-Harness
9413003
9413003
%description tests
9413003
Tests from %{name}. Execute them
9413003
with "%{_libexecdir}/%{name}/test".
9413003
2582c09
%prep
2582c09
%setup -q -n Module-Runtime-%{version}
9413003
# Help generators to recognize Perl scripts
9413003
for F in t/*.t; do
9413003
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
9413003
    chmod +x "$F"
9413003
done
2582c09
2582c09
%build
e450d6d
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
e450d6d
%{make_build}
2582c09
2582c09
%install
e450d6d
%{make_install}
9413003
# Install tests
9413003
mkdir -p %{buildroot}%{_libexecdir}/%{name}
9413003
cp -a t %{buildroot}%{_libexecdir}/%{name}
9413003
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod*
9413003
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
9413003
#!/bin/sh
9413003
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
9413003
EOF
9413003
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
b645807
%{_fixperms} %{buildroot}
2582c09
2582c09
%check
1edf626
make test
2582c09
2582c09
%files
2582c09
%doc Changes README
b645807
%{perl_vendorlib}/Module/
b645807
%{_mandir}/man3/Module::Runtime.3*
2582c09
9413003
%files tests
9413003
%{_libexecdir}/%{name}
9413003
2582c09
%changelog
8d0c946
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-19
8d0c946
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
8d0c946
0faed23
* Wed Dec 07 2022 Michal Josef Špaček <mspacek@redhat.com> - 0.016-18
0faed23
- Fix provided packages in *-tests package
0faed23
fd8f4cb
* Sun Dec 04 2022 Michal Josef Špaček <mspacek@redhat.com> - 0.016-17
9413003
- Package tests
e450d6d
- Simplify build and install phases
fd8f4cb
- Update license to SPDX format
fd8f4cb
3af3d9e
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-16
3af3d9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3af3d9e
609ecdc
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-15
609ecdc
- Perl 5.36 rebuild
609ecdc
4e9df2f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-14
4e9df2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4e9df2f
50d8c61
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-13
50d8c61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
50d8c61
7fbffae
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-12
7fbffae
- Perl 5.34 rebuild
7fbffae
861fd15
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-11
861fd15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
861fd15
7a9f233
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-10
7a9f233
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7a9f233
e21319d
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-9
e21319d
- Perl 5.32 rebuild
e21319d
6b14010
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-8
6b14010
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6b14010
5ab22c1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-7
5ab22c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5ab22c1
c7fa874
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-6
c7fa874
- Perl 5.30 rebuild
c7fa874
13d750a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-5
13d750a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
13d750a
3021515
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-4
3021515
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3021515
65f569f
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-3
65f569f
- Perl 5.28 rebuild
65f569f
6174cb5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.016-2
6174cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6174cb5
b645807
* Thu Oct 19 2017 Paul Howarth <paul@city-fan.org> - 0.016-1
b645807
- 0.016 bump
b645807
01fb2e5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.015-2
01fb2e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
01fb2e5
1edf626
* Mon Jul 17 2017 Petr Pisar <ppisar@redhat.com> - 0.015-1
1edf626
- 0.015 bump
1edf626
845ffc9
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-10
845ffc9
- Perl 5.26 rebuild
845ffc9
4200903
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-9
4200903
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4200903
4df1d07
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-8
4df1d07
- Perl 5.24 rebuild
4df1d07
b6cefd7
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-7
b6cefd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b6cefd7
e36bf32
* Mon Jul 20 2015 Petr Pisar <ppisar@redhat.com> - 0.014-6
e36bf32
- Specify all dependencies
e36bf32
375ab62
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.014-5
375ab62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
375ab62
f42a58a
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-4
f42a58a
- Perl 5.22 rebuild
f42a58a
1f9baf1
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-3
1f9baf1
- Perl 5.20 rebuild
1f9baf1
f15ef52
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.014-2
f15ef52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f15ef52
0a29c25
* Mon Feb 10 2014 Petr Pisar <ppisar@redhat.com> - 0.014-1
0a29c25
- 0.014 bump
0a29c25
39dab32
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.013-6
39dab32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
39dab32
f4eba84
* Fri Jul 19 2013 Petr Pisar <ppisar@redhat.com> - 0.013-5
f4eba84
- Perl 5.18 rebuild
f4eba84
759b501
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.013-4
759b501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
759b501
d443523
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.013-3
d443523
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d443523
f7fd4fe
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.013-2
f7fd4fe
- Perl 5.16 rebuild
f7fd4fe
d42004c
* Mon Feb 20 2012 Petr Pisar <ppisar@redhat.com> - 0.013-1
d42004c
- 0.013 bump
d42004c
6ce500d
* Mon Feb 13 2012 Petr Pisar <ppisar@redhat.com> - 0.012-1
6ce500d
- 0.012 bump
6ce500d
f54096c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.011-2
f54096c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f54096c
93f67aa
* Tue Oct 25 2011 Petr Pisar <ppisar@redhat.com> - 0.011-1
93f67aa
- 0.011 bump
93f67aa
cc5139d
* Fri Oct 07 2011 Petr Pisar <ppisar@redhat.com> - 0.010-1
cc5139d
- 0.010 bump
cc5139d
60af100
* Wed Oct 05 2011 Petr Pisar <ppisar@redhat.com> - 0.009-1
60af100
- 0.009 bump
60af100
- Remove defattr now
60af100
Petr Sabata de7728b
* Fri Jul 22 2011 Petr Sabata <contyk@redhat.com> - 0.008-2
Petr Sabata de7728b
- Perl mass rebuild
Petr Sabata de7728b
2582c09
* Mon Jul 11 2011 Petr Pisar <ppisar@redhat.com> 0.008-1
2582c09
- Specfile autogenerated by cpanspec 1.78.
2582c09
- Remove BuildRoot and defattr