Skip to content

Commit

Permalink
Updating CBL-Mariner import Fedora 41 (Version 1.09 -> 1.11).
Browse files Browse the repository at this point in the history
- Added "License verified" statement to the changelog.
  • Loading branch information
v-smalavathu committed Dec 20, 2024
1 parent bdb6277 commit d8e206a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"perl-Test-Inter-1.09.tar.gz": "1e9f129cc1a001fb95449d385253b38afabf5b466e3b3bd33e4e430f216e177a"
"Test-Inter-1.11.tar.gz": "2b9845212547cd6056753f87866d19368efc67c080146bcbb929a51ab055da37"
}
}
}
51 changes: 39 additions & 12 deletions SPECS-EXTENDED/perl-Test-Inter/perl-Test-Inter.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
Name: perl-Test-Inter
Version: 1.09
Release: 5%{?dist}
Summary: Framework for more readable interactive test scripts
License: GPL+ or Artistic
Vendor: Microsoft Corporation
Distribution: Azure Linux
Name: perl-Test-Inter
Version: 1.11
Release: 3%{?dist}
Summary: Framework for more readable interactive test scripts
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#/perl-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
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
Expand All @@ -31,26 +28,49 @@ BuildRequires: perl(Storable) >= 1.01
BuildRequires: perl(Test::More)
# Test::Pod 1.00 not used
# Test::Pod::Coverage 1.00 not used
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(lib)

%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.

%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 Test-Inter-%{version}
%patch 0 -p1
chmod -x examples/*
# 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 NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
# 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
%{_fixperms} %{buildroot}/*

%check
unset RELEASE_TESTING TI_END TI_MODE TI_NOCLEAN TI_QUIET TI_START TI_TESTNUM \
Expand All @@ -63,7 +83,14 @@ make test
%{perl_vendorlib}/*
%{_mandir}/man3/*

%files tests
%{_libexecdir}/%{name}

%changelog
* Thu Dec 19 2024 Sreenivasulu Malavathula <v-smalavathu@microsoft.com> 1.11-3
- Initial CBL-Mariner import from Fedora 41 (license: GPL-1.0-or-later OR Artistic-1.0-Perl).
- License verified.

* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.09-5
- Initial CBL-Mariner import from Fedora 32 (license: MIT).

Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19913,8 +19913,8 @@
"type": "other",
"other": {
"name": "perl-Test-Inter",
"version": "1.09",
"downloadUrl": "https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-1.09.tar.gz"
"version": "1.11",
"downloadUrl": "https://cpan.metacpan.org/authors/id/S/SB/SBECK/Test-Inter-1.11.tar.gz"
}
}
},
Expand Down

0 comments on commit d8e206a

Please sign in to comment.