2024-07-22 20:53:04 +00:00
committed by Git OBS Bridge
parent d52241aa84
commit 445a157822

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Git-PurePerl
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,22 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Git-PurePerl
Version: 0.53
Release: 0
%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
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Git-PurePerl/
Source0: http://www.cpan.org/authors/id/B/BR/BROQ/%{cpan_name}-%{version}.tar.gz
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Archive::Extract)
@@ -36,9 +36,9 @@ 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(Module::Install)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::StrictConstructor)
BuildRequires: perl(MooseX::Types::Path::Class)
@@ -57,6 +57,33 @@ 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
@@ -65,14 +92,14 @@ This module is a Pure Perl interface to Git repositories.
It was mostly based on Grit http://grit.rubyforge.org/.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -80,7 +107,6 @@ It was mostly based on Grit http://grit.rubyforge.org/.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README test-encoding.tgz test-project-packs2.tgz test-project-packs.tgz test-project.tgz
%changelog