Files
perl-Dist-Zilla-Plugin-Chan…/perl-Dist-Zilla-Plugin-ChangelogFromGit.spec
2025-08-12 18:13:38 +02:00

92 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Dist-Zilla-Plugin-ChangelogFromGit
#
# 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-ChangelogFromGit
Name: perl-Dist-Zilla-Plugin-ChangelogFromGit
Version: 0.17.0
Release: 0
# 0.017 -> normalize -> 0.17.0
%define cpan_version 0.017
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Write a Changes file from a project's git log
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCAPUTO/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Infinite)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
BuildRequires: perl(Git::Repository::Log::Iterator)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Software::Release)
BuildRequires: perl(Software::Release::Change)
BuildRequires: perl(Test::More) >= 0.94
Requires: perl(DateTime)
Requires: perl(DateTime::Infinite)
Requires: perl(Dist::Zilla::File::InMemory)
Requires: perl(Dist::Zilla::Role::FileGatherer)
Requires: perl(Git::Repository::Log::Iterator)
Requires: perl(IPC::Cmd)
Requires: perl(Moose)
Requires: perl(Moose::Autobox)
Requires: perl(Software::Release)
Requires: perl(Software::Release::Change)
Provides: perl(Dist::Zilla::Plugin::ChangelogFromGit) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This Dist::Zilla plugin turns a project's git commit log into a change log
file. It's better than simply running `git log > CHANGES` in at least two
ways. First, it understands release tags, and it uses them to group changes
by release. Second, it reformats the changes to make them easier to read.
And third, subclasses can change some or all of the reformatting to make
change logs even easier to read.
See this project's CHANGES file for sample output. Yes, this project uses
itself to generate its own change log. Why not?
%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 README.mkdn
%license LICENSE
%changelog