| |
@@ -1,16 +1,16 @@
|
| |
Name: perl-Data-Flow
|
| |
Version: 1.02
|
| |
- Release: 32%{?dist}
|
| |
+ Release: 33%{?dist}
|
| |
Summary: Perl extension for simple-minded recipe-controlled build of data
|
| |
# Author declared license there:
|
| |
# <https://rt.cpan.org/Public/Bug/Display.html?id=18068#txn-175743>
|
| |
- License: GPL+ or Artistic
|
| |
+ License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
| |
URL: https://metacpan.org/release/Data-Flow
|
| |
Source0: https://cpan.metacpan.org/authors/id/I/IL/ILYAZ/modules/Data-Flow-%{version}.tar.gz
|
| |
Source1: license_agreement-Radoslav_Nedyalkov.mbox
|
| |
Source2: license_agreement-Terrence_Brannon.mbox
|
| |
BuildArch: noarch
|
| |
- BuildRequires: make
|
| |
+ BuildRequires: make
|
| |
BuildRequires: perl-interpreter
|
| |
BuildRequires: perl-generators
|
| |
BuildRequires: perl(ExtUtils::MakeMaker)
|
| |
@@ -24,9 +24,23 @@
|
| |
%description
|
| |
%{summary}.
|
| |
|
| |
+ %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".
|
| |
+
|
| |
%prep
|
| |
%setup -q -n Data-Flow-%{version}
|
| |
install -m 0644 -t . %SOURCE1 %SOURCE2
|
| |
+ # 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
|
| |
|
| |
%build
|
| |
perl Makefile.PL INSTALLDIRS=vendor
|
| |
@@ -34,6 +48,16 @@
|
| |
|
| |
%install
|
| |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
| |
+ # Install tests
|
| |
+ mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
| |
+ cp -a t %{buildroot}%{_libexecdir}/%{name}
|
| |
+ # MANIFEST file is needed to test
|
| |
+ cp MANIFEST %{buildroot}%{_libexecdir}/%{name}
|
| |
+ 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
|
| |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
| |
%{_fixperms} $RPM_BUILD_ROOT/*
|
| |
|
| |
@@ -46,7 +70,15 @@
|
| |
%{perl_vendorlib}/*
|
| |
%{_mandir}/man3/*
|
| |
|
| |
+ %files tests
|
| |
+ %{_libexecdir}/%{name}
|
| |
+
|
| |
%changelog
|
| |
+ * Mon Nov 14 2022 Michal Josef Špaček <mspacek@redhat.com> - 1.02-33
|
| |
+ - Package tests
|
| |
+ - Update license to SPDX format
|
| |
+ - Whitespace fix
|
| |
+
|
| |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.02-32
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
|
| |