Files
perl-Git-PurePerl/perl-Git-PurePerl.spec
2025-08-12 18:14:23 +02:00

114 lines
4.1 KiB
RPMSpec

#
# spec file for package perl-Git-PurePerl
#
# 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 Git-PurePerl
Name: perl-Git-PurePerl
Version: 0.530.0
Release: 0
# 0.53 -> normalize -> 0.530.0
%define cpan_version 0.53
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Pure Perl interface to Git repositories
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BR/BROQ/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Archive::Extract)
BuildRequires: perl(Compress::Raw::Zlib)
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Config::GitLike)
BuildRequires: perl(Data::Stream::Bulk)
BuildRequires: perl(DateTime)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(IO::Digest)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::StrictConstructor)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::utf8) >= 0.02
BuildRequires: perl(namespace::autoclean)
Requires: perl(Archive::Extract)
Requires: perl(Compress::Raw::Zlib)
Requires: perl(Compress::Zlib)
Requires: perl(Config::GitLike)
Requires: perl(Data::Stream::Bulk)
Requires: perl(DateTime)
Requires: perl(File::Find::Rule)
Requires: perl(IO::Digest)
Requires: perl(Moose)
Requires: perl(MooseX::StrictConstructor)
Requires: perl(MooseX::Types::Path::Class)
Requires: perl(namespace::autoclean)
Provides: perl(Git::PurePerl) = %{version}
Provides: perl(Git::PurePerl::Actor)
Provides: perl(Git::PurePerl::Config)
Provides: perl(Git::PurePerl::DirectoryEntry)
Provides: perl(Git::PurePerl::Loose)
Provides: perl(Git::PurePerl::NewDirectoryEntry)
Provides: perl(Git::PurePerl::NewObject)
Provides: perl(Git::PurePerl::NewObject::Blob)
Provides: perl(Git::PurePerl::NewObject::Commit)
Provides: perl(Git::PurePerl::NewObject::Tag)
Provides: perl(Git::PurePerl::NewObject::Tree)
Provides: perl(Git::PurePerl::Object)
Provides: perl(Git::PurePerl::Object::Blob)
Provides: perl(Git::PurePerl::Object::Commit)
Provides: perl(Git::PurePerl::Object::Tag)
Provides: perl(Git::PurePerl::Object::Tree)
Provides: perl(Git::PurePerl::Pack)
Provides: perl(Git::PurePerl::Pack::WithIndex)
Provides: perl(Git::PurePerl::Pack::WithoutIndex)
Provides: perl(Git::PurePerl::PackIndex)
Provides: perl(Git::PurePerl::PackIndex::Version1)
Provides: perl(Git::PurePerl::PackIndex::Version2)
Provides: perl(Git::PurePerl::Protocol)
Provides: perl(Git::PurePerl::Protocol::File)
Provides: perl(Git::PurePerl::Protocol::Git)
Provides: perl(Git::PurePerl::Protocol::SSH)
%undefine __perllib_provides
%{perl_requires}
%description
This module is a Pure Perl interface to Git repositories.
It was mostly based on Grit http://grit.rubyforge.org/.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 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 test-encoding.tgz test-project-packs2.tgz test-project-packs.tgz test-project.tgz
%changelog