89 lines
3.1 KiB
RPMSpec
89 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Dist-Zilla-Plugin-OurPkgVersion
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Dist-Zilla-Plugin-OurPkgVersion
|
|
Name: perl-Dist-Zilla-Plugin-OurPkgVersion
|
|
Version: 0.210.0
|
|
Release: 0
|
|
# 0.21 -> normalize -> 0.210.0
|
|
%define cpan_version 0.21
|
|
License: Artistic-2.0
|
|
Summary: No line insertion and does Package version with our
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Dist::Zilla) >= 6.00
|
|
BuildRequires: perl(Dist::Zilla::Role::FileFinderUser)
|
|
BuildRequires: perl(Dist::Zilla::Role::FileMunger)
|
|
BuildRequires: perl(Dist::Zilla::Role::PPI)
|
|
BuildRequires: perl(Dist::Zilla::Role::VersionProvider)
|
|
BuildRequires: perl(Moose)
|
|
BuildRequires: perl(MooseX::Types::Perl)
|
|
BuildRequires: perl(PPI)
|
|
BuildRequires: perl(Path::Tiny)
|
|
BuildRequires: perl(Test::DZil)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::Version) >= 0.40.0
|
|
BuildRequires: perl(namespace::autoclean)
|
|
Requires: perl(Dist::Zilla) >= 6.00
|
|
Requires: perl(Dist::Zilla::Role::FileFinderUser)
|
|
Requires: perl(Dist::Zilla::Role::FileMunger)
|
|
Requires: perl(Dist::Zilla::Role::PPI)
|
|
Requires: perl(Moose)
|
|
Requires: perl(MooseX::Types::Perl)
|
|
Requires: perl(PPI)
|
|
Requires: perl(namespace::autoclean)
|
|
Provides: perl(Dist::Zilla::Plugin::OurPkgVersion) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module was created as an alternative to
|
|
Dist::Zilla::Plugin::PkgVersion and uses some code from that module. This
|
|
module is designed to use a the more readable format 'our $VERSION =
|
|
$version;' as well as not change then number of lines of code in your
|
|
files, which will keep your repository more in sync with your CPAN release.
|
|
It also allows you slightly more freedom in how you specify your version.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|