From dc1eda7b6765c648e4649845dd0d4ef7cc141c94 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Thu, 16 Feb 2023 09:37:10 +0000 Subject: [PATCH 1/6] Add dependabot.yml --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..dfd0e30 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" From 1a27e209a080fb965fcdc1a7bb64c8fbdd470cc3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 00:33:48 +0000 Subject: [PATCH 2/6] Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/perltest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/perltest.yml b/.github/workflows/perltest.yml index 57fcbfc..110a6c3 100644 --- a/.github/workflows/perltest.yml +++ b/.github/workflows/perltest.yml @@ -21,7 +21,7 @@ jobs: perl: [ 'latest' ] name: Perl ${{ matrix.perl }} on ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up perl uses: shogo82148/actions-setup-perl@v1 with: From 9e62d29643988e6b1565e3b711731b4e85027cfd Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 22 Jan 2024 20:31:28 +0000 Subject: [PATCH 3/6] Standardise CPAN Actions --- .github/workflows/perltest.yml | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/.github/workflows/perltest.yml b/.github/workflows/perltest.yml index 110a6c3..0f185c4 100644 --- a/.github/workflows/perltest.yml +++ b/.github/workflows/perltest.yml @@ -1,9 +1,5 @@ -# This is a basic workflow to help you get started with Actions - name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch on: push: branches: [ master ] @@ -11,21 +7,15 @@ on: branches: [ master ] workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ 'ubuntu-latest', 'macos-latest' ] - perl: [ 'latest' ] - name: Perl ${{ matrix.perl }} on ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Set up perl - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: ${{ matrix.perl }} - - run: perl -V - - run: cpanm --installdeps . - - run: prove -lv t + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-test.yml@main + + coverage: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-coverage.yml@main + + perlcritic: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-perlcritic.yml@main + + complexity: + uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-complexity.yml@main From ae8b3ac2f8e9525fb4c7f40b82b94928b6c81194 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Tue, 23 Jan 2024 13:23:26 +0000 Subject: [PATCH 4/6] Fix GitHub URLs --- Build.PL | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Build.PL b/Build.PL index 487bf06..f4f7477 100644 --- a/Build.PL +++ b/Build.PL @@ -23,11 +23,11 @@ my $build = Module::Build->new( resources => { repository => { type => 'git', - url => 'git://github.com/davorg/parse-rpm-spec.git', - web => 'https://github.com/davorg/parse-rpm-spec', + url => 'git://github.com/davorg-cpan/parse-rpm-spec.git', + web => 'https://github.com/davorg-cpan/parse-rpm-spec', }, bugtracker => { - web => 'https://github.com/davorg/parse-rpm-spec/issues', + web => 'https://github.com/davorg-cpan/parse-rpm-spec/issues', }, }, }, From e491d549e785fa2494479c8c99930d8a7d2a3566 Mon Sep 17 00:00:00 2001 From: zyppe <210hcl@gmail.com> Date: Mon, 5 Aug 2024 13:12:19 +0800 Subject: [PATCH 5/6] Fix Url for SUSE's spec --- lib/Parse/RPM/Spec.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parse/RPM/Spec.pm b/lib/Parse/RPM/Spec.pm index 7ff132a..ced7681 100644 --- a/lib/Parse/RPM/Spec.pm +++ b/lib/Parse/RPM/Spec.pm @@ -42,7 +42,7 @@ sub _build_parse_spec { summary => qr[^Summary:\s+(.+)], license => qr[^License:\s+(.+)], group => qr[^Group:\s+(\S+)], - url => qr[^URL:\s+(\S+)], + url => qr[^(URL|Url):\s+(\S+)], buildroot => qr[^BuildRoot:\s+(\S+)], buildarch => qr[^BuildArch:\s+(\S+)], excludearch => qr[^ExcludeArch:\s+(\S+)], From cbfad9f5ca99a7c596c302c8d872fdeb7d30c221 Mon Sep 17 00:00:00 2001 From: zyppe <210hcl@gmail.com> Date: Mon, 5 Aug 2024 14:07:09 +0800 Subject: [PATCH 6/6] Add URL fix for SUSE's spec and add test --- lib/Parse/RPM/Spec.pm | 2 +- t/parse-rpm-spec.t | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Parse/RPM/Spec.pm b/lib/Parse/RPM/Spec.pm index ced7681..eb871c8 100644 --- a/lib/Parse/RPM/Spec.pm +++ b/lib/Parse/RPM/Spec.pm @@ -42,7 +42,7 @@ sub _build_parse_spec { summary => qr[^Summary:\s+(.+)], license => qr[^License:\s+(.+)], group => qr[^Group:\s+(\S+)], - url => qr[^(URL|Url):\s+(\S+)], + url => qr[^(?:URL|Url):\s+(\S+)], buildroot => qr[^BuildRoot:\s+(\S+)], buildarch => qr[^BuildArch:\s+(\S+)], excludearch => qr[^ExcludeArch:\s+(\S+)], diff --git a/t/parse-rpm-spec.t b/t/parse-rpm-spec.t index 33321ac..d8a1b31 100644 --- a/t/parse-rpm-spec.t +++ b/t/parse-rpm-spec.t @@ -12,6 +12,7 @@ isa_ok($spec, 'Parse::RPM::Spec'); is($spec->name, 'perl-Array-Compare', 'Correct name'); is($spec->summary, 'Perl extension for comparing arrays', 'Correct summary'); +is($spec->url, 'http://search.cpan.org/dist/Array-Compare/', 'Correct URL'); is($spec->epoch, 1, 'Correct epoch'); is($spec->version, '1.16', 'Correct version');