Compare commits
11 commits
RELEASE_1.
...
master
Author | SHA1 | Date | |
---|---|---|---|
cbfad9f5ca | |||
e491d549e7 | |||
|
ae8b3ac2f8 | ||
|
9e62d29643 | ||
|
eaca7b7c4d | ||
|
1a27e209a0 | ||
|
dc1eda7b67 | ||
|
dd6cfc1536 | ||
|
623e7fc65c | ||
|
e229a81b61 | ||
|
e1dd92a4f9 |
7 changed files with 34 additions and 26 deletions
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
|
@ -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"
|
30
.github/workflows/perltest.yml
vendored
30
.github/workflows/perltest.yml
vendored
|
@ -1,9 +1,5 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
||||||
# events but only for the master branch
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
@ -11,21 +7,15 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-test.yml@main
|
||||||
strategy:
|
|
||||||
matrix:
|
coverage:
|
||||||
os: [ 'ubuntu-latest', 'macos-latest' ]
|
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-coverage.yml@main
|
||||||
perl: [ 'latest' ]
|
|
||||||
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
|
perlcritic:
|
||||||
steps:
|
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-perlcritic.yml@main
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up perl
|
complexity:
|
||||||
uses: shogo82148/actions-setup-perl@v1
|
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-complexity.yml@main
|
||||||
with:
|
|
||||||
perl-version: ${{ matrix.perl }}
|
|
||||||
- run: perl -V
|
|
||||||
- run: cpanm --installdeps .
|
|
||||||
- run: prove -lv t
|
|
||||||
|
|
6
Build.PL
6
Build.PL
|
@ -23,11 +23,11 @@ my $build = Module::Build->new(
|
||||||
resources => {
|
resources => {
|
||||||
repository => {
|
repository => {
|
||||||
type => 'git',
|
type => 'git',
|
||||||
url => 'git://github.com/davorg/parse-rpm-spec.git',
|
url => 'git://github.com/davorg-cpan/parse-rpm-spec.git',
|
||||||
web => 'https://github.com/davorg/parse-rpm-spec',
|
web => 'https://github.com/davorg-cpan/parse-rpm-spec',
|
||||||
},
|
},
|
||||||
bugtracker => {
|
bugtracker => {
|
||||||
web => 'https://github.com/davorg/parse-rpm-spec/issues',
|
web => 'https://github.com/davorg-cpan/parse-rpm-spec/issues',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
5
Changes
5
Changes
|
@ -1,3 +1,8 @@
|
||||||
|
2023-01-13 Dave Cross <dave@perlhacks.com>
|
||||||
|
|
||||||
|
* Version 1.1.2
|
||||||
|
* Fix name of excludearch method (thanks Michal Josef Špaček)
|
||||||
|
|
||||||
2023-01-12 Dave Cross <dave@perlhacks.com>
|
2023-01-12 Dave Cross <dave@perlhacks.com>
|
||||||
|
|
||||||
* Version 1.1.1
|
* Version 1.1.1
|
||||||
|
|
|
@ -7,7 +7,7 @@ use warnings;
|
||||||
use Carp;
|
use Carp;
|
||||||
use Moose;
|
use Moose;
|
||||||
|
|
||||||
our $VERSION = 'v1.1.1';
|
our $VERSION = 'v1.1.2';
|
||||||
|
|
||||||
has file => ( is => 'ro', isa => 'Str', required => 1 );
|
has file => ( is => 'ro', isa => 'Str', required => 1 );
|
||||||
has name => ( is => 'rw', isa => 'Str' );
|
has name => ( is => 'rw', isa => 'Str' );
|
||||||
|
@ -23,7 +23,7 @@ has buildroot => ( is => 'rw', isa => 'Str' );
|
||||||
has buildarch => ( is => 'rw', isa => 'Str' );
|
has buildarch => ( is => 'rw', isa => 'Str' );
|
||||||
has buildrequires => ( is => 'rw', isa => 'ArrayRef[Str]', default => sub { [] } );
|
has buildrequires => ( is => 'rw', isa => 'ArrayRef[Str]', default => sub { [] } );
|
||||||
has requires => ( is => 'rw', isa => 'ArrayRef[Str]', default => sub { [] } );
|
has requires => ( is => 'rw', isa => 'ArrayRef[Str]', default => sub { [] } );
|
||||||
has [ qw( excluderach exclusivearch excludeos exclusiveos ) ]
|
has [ qw( excludearch exclusivearch excludeos exclusiveos ) ]
|
||||||
=> ( is => 'rw', isa => 'Str' );
|
=> ( is => 'rw', isa => 'Str' );
|
||||||
|
|
||||||
has parse_spec => (
|
has parse_spec => (
|
||||||
|
@ -42,7 +42,7 @@ sub _build_parse_spec {
|
||||||
summary => qr[^Summary:\s+(.+)],
|
summary => qr[^Summary:\s+(.+)],
|
||||||
license => qr[^License:\s+(.+)],
|
license => qr[^License:\s+(.+)],
|
||||||
group => qr[^Group:\s+(\S+)],
|
group => qr[^Group:\s+(\S+)],
|
||||||
url => qr[^URL:\s+(\S+)],
|
url => qr[^(?:URL|Url):\s+(\S+)],
|
||||||
buildroot => qr[^BuildRoot:\s+(\S+)],
|
buildroot => qr[^BuildRoot:\s+(\S+)],
|
||||||
buildarch => qr[^BuildArch:\s+(\S+)],
|
buildarch => qr[^BuildArch:\s+(\S+)],
|
||||||
excludearch => qr[^ExcludeArch:\s+(\S+)],
|
excludearch => qr[^ExcludeArch:\s+(\S+)],
|
||||||
|
|
|
@ -13,6 +13,7 @@ BuildRequires: perl >= 1:5.6.0
|
||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl(Module::Build)
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
ExclusiveArch: megaCPU
|
ExclusiveArch: megaCPU
|
||||||
|
ExcludeArch: crapCPU
|
||||||
|
|
||||||
%description
|
%description
|
||||||
If you have two arrays and you want to know if they are the same or
|
If you have two arrays and you want to know if they are the same or
|
||||||
|
|
|
@ -12,6 +12,7 @@ isa_ok($spec, 'Parse::RPM::Spec');
|
||||||
|
|
||||||
is($spec->name, 'perl-Array-Compare', 'Correct name');
|
is($spec->name, 'perl-Array-Compare', 'Correct name');
|
||||||
is($spec->summary, 'Perl extension for comparing arrays', 'Correct summary');
|
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->epoch, 1, 'Correct epoch');
|
||||||
|
|
||||||
is($spec->version, '1.16', 'Correct version');
|
is($spec->version, '1.16', 'Correct version');
|
||||||
|
@ -23,6 +24,7 @@ is($spec->buildrequires->[0], 'perl >= 1:5.6.0',
|
||||||
'First build requirement is correct');
|
'First build requirement is correct');
|
||||||
|
|
||||||
is($spec->exclusivearch, 'megaCPU', 'Correct exclusive architecture');
|
is($spec->exclusivearch, 'megaCPU', 'Correct exclusive architecture');
|
||||||
|
is($spec->excludearch, 'crapCPU', 'Correct excluded architecture');
|
||||||
|
|
||||||
dies_ok { Parse::RPM::Spec->new }
|
dies_ok { Parse::RPM::Spec->new }
|
||||||
'No spec file given';
|
'No spec file given';
|
||||||
|
|
Loading…
Add table
Reference in a new issue