8
0
2023-03-25 11:28:17 +00:00
committed by Git OBS Bridge
parent f1887bbe2c
commit fdedda161d
4 changed files with 25 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
patches: patches:
https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch: -p1 PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935 https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch: -p1 PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935
https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22 https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22
git-2.40.0.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/23
preamble: |- preamble: |-
BuildRequires: git-core BuildRequires: git-core
#post_prep: |- #post_prep: |-

13
git-2.40.0.patch Normal file
View File

@@ -0,0 +1,13 @@
--- a/t/20-simple.t
+++ b/t/20-simple.t
@@ -85,6 +85,9 @@
skip "this test does not work with msysgit on Win32", 2
if $^O eq 'MSWin32';
+ skip "'git var GIT_EDITOR' behaviour was changed in git 2.40.0, and we have $version", 2
+ if Git::Repository->version_ge('2.40.0');
+
ok( !eval { $r->run( var => 'GIT_EDITOR' ); 1; }, 'git var GIT_EDITOR' );
like(
$@,

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 25 11:27:20 UTC 2023 - Dirk Stoecker <opensuse@dstoecker.de>
- add patch git-2.40.0.patch to addapt to git 2.40 changes
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 3 11:00:22 UTC 2022 - Stephan Kulow <coolo@suse.com> Sat Dec 3 11:00:22 UTC 2022 - Stephan Kulow <coolo@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Git-Repository # spec file for package perl-Git-Repository
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,12 @@ Summary: Perl interface to Git repositories
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOOK/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BO/BOOK/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
# PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/23
Patch0: git-2.40.0.patch
# PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22 # PATCH-FIX-UPSTREAM https://github.com/book/Git-Repository/pull/22
Patch0: https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch Patch1: https://patch-diff.githubusercontent.com/raw/book/Git-Repository/pull/22.patch
# PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935 # PATCH-FIX-UPSTREAM https://rt.cpan.org/Public/Ticket/Attachment/1923740/1029935
Patch1: https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch Patch2: https://salsa.debian.org/perl-team/modules/packages/libgit-repository-perl/-/raw/c5e0eca06ca27fdaa547634b1e49f4637e7c1ca6/debian/patches/git-2.30.0.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
@@ -72,6 +74,7 @@ See Git::Repository::Tutorial for more code examples.
%prep %prep
%autosetup -n %{cpan_name}-%{version} -p1 %autosetup -n %{cpan_name}-%{version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build