perl-Test-Inter/perl-Test-Inter.spec

236 lines
8.1 KiB
RPMSpec
Raw Normal View History

2010-09-21 08:56:24 +00:00
Name: perl-Test-Inter
2019-03-15 07:25:58 +00:00
Version: 1.09
Release: 14%{?dist}
2010-09-21 08:56:24 +00:00
Summary: Framework for more readable interactive test scripts
2022-12-07 20:42:27 +00:00
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Test-Inter
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-%{version}.tar.gz
# Remove dependencies on release tests that are skipped, proposed to upstream,
# <https://github.com/SBECK-github/Test-Inter/pull/3>
Patch0: Test-Inter-1.09-Do-not-require-release-test-dependencies.patch
2010-09-21 08:56:24 +00:00
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
2018-03-16 08:38:46 +00:00
BuildRequires: perl-interpreter
2019-03-13 08:32:05 +00:00
BuildRequires: perl(:VERSION) >= 5.6
2018-03-16 08:38:46 +00:00
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
2013-03-20 12:46:46 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
2019-03-15 07:25:58 +00:00
BuildRequires: perl(Cwd)
2010-09-21 08:56:24 +00:00
BuildRequires: perl(File::Basename)
BuildRequires: perl(IO::File)
2019-03-13 08:32:05 +00:00
BuildRequires: perl(lib)
2010-09-21 08:56:24 +00:00
# Tests only:
BuildRequires: perl(Config)
# File::Find::Rule not used
BuildRequires: perl(Storable) >= 1.01
2015-02-16 12:36:57 +00:00
BuildRequires: perl(Test::More)
# Test::Pod 1.00 not used
# Test::Pod::Coverage 1.00 not used
2019-03-13 08:32:05 +00:00
Requires: perl(lib)
2010-09-21 08:56:24 +00:00
%description
This is another framework for writing test scripts. It is loosely inspired
by Test::More, and has most of it's functionality, but it is not a drop-in
replacement.
2022-12-07 21:11:49 +00:00
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
2010-09-21 08:56:24 +00:00
%prep
%setup -q -n Test-Inter-%{version}
%patch0 -p1
2010-09-21 08:56:24 +00:00
chmod -x examples/*
2022-12-07 21:11:49 +00:00
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
2010-09-21 08:56:24 +00:00
%build
2019-03-13 08:32:05 +00:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2010-09-21 08:56:24 +00:00
%install
2019-03-13 08:32:05 +00:00
%{make_install}
2022-12-07 21:11:49 +00:00
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
rm -f %{buildroot}%{_libexecdir}/%{name}/t/_*
# Directory for libraries used in tests
mkdir %{buildroot}%{_libexecdir}/%{name}/lib
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
2022-12-07 20:57:28 +00:00
%{_fixperms} %{buildroot}/*
2010-09-21 08:56:24 +00:00
%check
2019-03-13 08:32:05 +00:00
unset RELEASE_TESTING TI_END TI_MODE TI_NOCLEAN TI_QUIET TI_START TI_TESTNUM \
TI_WIDTH
2015-02-16 12:36:57 +00:00
make test
2010-09-21 08:56:24 +00:00
%files
2015-02-16 12:36:57 +00:00
%license LICENSE
%doc Changes README examples
2011-06-24 11:50:07 +00:00
%{perl_vendorlib}/*
2010-09-21 08:56:24 +00:00
%{_mandir}/man3/*
2022-12-07 21:11:49 +00:00
%files tests
%{_libexecdir}/%{name}
2010-09-21 08:56:24 +00:00
%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2022-12-07 20:42:27 +00:00
* Wed Dec 07 2022 Michal Josef Špaček <mspacek@redhat.com> - 1.09-13
2022-12-07 21:11:49 +00:00
- Package tests
2022-12-07 20:42:27 +00:00
- Update license to SPDX format
2022-12-07 20:57:28 +00:00
- Use macros instead of variables
2022-12-07 20:42:27 +00:00
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-05-30 17:24:43 +00:00
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-11
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-21 10:24:41 +00:00
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-8
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-06-22 15:51:15 +00:00
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-5
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.09-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-05-30 11:40:36 +00:00
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.09-2
- Perl 5.30 rebuild
2019-03-15 07:25:58 +00:00
* Fri Mar 15 2019 Petr Pisar <ppisar@redhat.com> - 1.09-1
- 1.09 bump
2019-03-13 08:32:05 +00:00
* Wed Mar 13 2019 Petr Pisar <ppisar@redhat.com> - 1.08-1
- 1.08 bump
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-27 18:31:33 +00:00
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-2
- Perl 5.28 rebuild
2018-03-16 08:38:46 +00:00
* Fri Mar 16 2018 Petr Pisar <ppisar@redhat.com> - 1.07-1
- 1.07 bump
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-04 05:16:56 +00:00
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-8
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-05-15 02:17:08 +00:00
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-6
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Aug 10 2015 Petr Šabata <contyk@redhat.com> - 1.06-4
- Prevent the FTBFS by correcting the build time dependency list
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-03 16:52:03 +00:00
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-2
- Perl 5.22 rebuild
2015-02-16 12:36:57 +00:00
* Mon Feb 16 2015 Petr Pisar <ppisar@redhat.com> - 1.06-1
- 1.06 bump
2014-08-27 22:51:59 +00:00
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.05-5
- Perl 5.20 rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-19 02:59:03 +00:00
* Fri Jul 19 2013 Petr Pisar <ppisar@redhat.com> - 1.05-2
- Perl 5.18 rebuild
2013-03-21 11:45:08 +00:00
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> - 1.05-1
- 1.05 bump
2013-03-20 12:46:46 +00:00
* Wed Mar 20 2013 Petr Pisar <ppisar@redhat.com> - 1.04-1
- 1.04 bump
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-12 15:03:24 +00:00
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 1.03-4
- Perl 5.16 rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-07-18 11:20:35 +00:00
* Mon Jul 18 2011 Petr Sabata <contyk@redhat.com> - 1.03-2
- Perl mass rebuild
2011-07-07 07:03:45 +00:00
* Thu Jul 07 2011 Petr Pisar <ppisar@redhat.com> - 1.03-1
- 1.03 bump
2011-06-24 11:37:48 +00:00
* Fri Jun 24 2011 Petr Pisar <ppisar@redhat.com> - 1.02-1
- 1.02 bump
2011-06-24 11:50:07 +00:00
- Move to vendor path
2011-06-24 11:51:08 +00:00
- Remove BuildRoot and defattr
2011-06-24 11:37:48 +00:00
2011-06-20 13:50:11 +00:00
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.01-4
- Perl mass rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.01-2
- 661697 rebuild for fixing problems with vendorach/lib
2010-09-21 08:56:24 +00:00
* Tue Sep 14 2010 Petr Pisar <ppisar@redhat.com> 1.01-1
- Specfile autogenerated by cpanspec 1.78.
- Add BuildRequires covered by perl package
- Distribute examples
- Install into perl core (i.e. do not use vendor paths)