SHA256
1
0
forked from pool/git

Accepting request 752814 from devel:tools:scm

OBS-URL: https://build.opensuse.org/request/show/752814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=241
This commit is contained in:
Dominique Leuenberger 2019-12-07 14:19:55 +00:00 committed by Git OBS Bridge
parent d547c32f13
commit dc5d755f72
5 changed files with 140 additions and 35 deletions

View File

@ -1,20 +1,19 @@
From 5264df9284461edb4ae2309ad72acf7c3d8161e9 Mon Sep 17 00:00:00 2001
From f901c954d1882ef24fcf3a1642d46eb785a1863f Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Wed, 8 May 2019 19:00:47 +0200
Subject: [PATCH] DOC: Move to DocBook 5 when using asciidoctor
Subject: [PATCH 1/2] DOC: Move to DocBook 5 when using asciidoctor
DocBook 5 has been released about a decade ago. Newer versions of
asciidoctor (since version 2.x) no longer support DocBook 4.5, it
is thus time for us to move to newer support as well.
---
Documentation/Makefile | 4 ++--
contrib/subtree/Makefile | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
1 file changed, 3 insertions(+), 2 deletions(-)
Index: git-2.24.0/contrib/subtree/Makefile
===================================================================
--- git-2.24.0.orig/contrib/subtree/Makefile
+++ git-2.24.0/contrib/subtree/Makefile
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index 6906aae..09e53b9 100644
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -25,12 +25,13 @@ ASCIIDOC_HTML = xhtml11
ASCIIDOC_DOCBOOK = docbook
ASCIIDOC_EXTRA =
@ -39,3 +38,6 @@ Index: git-2.24.0/contrib/subtree/Makefile
$(GIT_SUBTREE_XML): $(GIT_SUBTREE_TXT)
$(ASCIIDOC) -b $(ASCIIDOC_DOCBOOK) -d manpage $(ASCIIDOC_CONF) \
--
2.24.0

View File

@ -0,0 +1,76 @@
From c83742bc6a8e0662aafa6a0fb3779fa3e333ee24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Fri, 29 Nov 2019 15:53:38 +0100
Subject: [PATCH 2/2] Also use DocBook 5 stylesheet when generating HTML output
xsl/current refers to DocBook 4, while DocBook 5 uses xsl-ns/current.
Make sure the stylesheet is also used for contrib/subtree, as xmlto
otherwise defaults to DocBook 4.
---
Documentation/Makefile | 4 +++-
Documentation/docbook5.xsl | 8 ++++++++
contrib/subtree/Makefile | 3 ++-
3 files changed, 13 insertions(+), 2 deletions(-)
create mode 100644 Documentation/docbook5.xsl
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 06d85ad..606b00f 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -205,6 +205,9 @@ ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
DBLATEX_COMMON =
XMLTO_EXTRA += --skip-validation
XMLTO_EXTRA += -x manpage.xsl
+XSLT = docbook5.xsl
+else
+XSLT = docbook.xsl
endif
SHELL_PATH ?= $(SHELL)
@@ -397,7 +400,6 @@ $(patsubst %,%.html,$(API_DOCS) technical/api-index $(TECH_DOCS)): %.html : %.tx
SubmittingPatches.txt: SubmittingPatches
$(QUIET_GEN) cp $< $@
-XSLT = docbook.xsl
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
user-manual.html: user-manual.xml $(XSLT)
diff --git a/Documentation/docbook5.xsl b/Documentation/docbook5.xsl
new file mode 100644
index 0000000..ab95b94
--- /dev/null
+++ b/Documentation/docbook5.xsl
@@ -0,0 +1,8 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl"/>
+ <xsl:output method="html"
+ encoding="UTF-8" indent="no"
+ doctype-public="-//W3C//DTD HTML 4.01//EN"
+ doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
+</xsl:stylesheet>
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index 09e53b9..5905a31 100644
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -25,7 +25,6 @@ ASCIIDOC_HTML = xhtml11
ASCIIDOC_DOCBOOK = docbook
ASCIIDOC_EXTRA =
XMLTO = xmlto
-XMLTO_EXTRA = --skip-validation
ifdef USE_ASCIIDOCTOR
ASCIIDOC = asciidoctor
@@ -34,6 +33,8 @@ ASCIIDOC_HTML = xhtml5
ASCIIDOC_DOCBOOK = docbook5
ASCIIDOC_EXTRA += -I../../Documentation -rasciidoctor-extensions
ASCIIDOC_EXTRA += -alitdd='&\#x2d;&\#x2d;'
+XMLTO_EXTRA += --skip-validation
+XMLTO_EXTRA += -x ../../Documentation/manpage.xsl
endif
ifndef SHELL_PATH
--
2.24.0

View File

@ -0,0 +1,16 @@
Index: git-2.24.0/t/t7812-grep-icase-non-ascii.sh
===================================================================
--- git-2.24.0.orig/t/t7812-grep-icase-non-ascii.sh
+++ git-2.24.0/t/t7812-grep-icase-non-ascii.sh
@@ -74,11 +74,4 @@ test_expect_success GETTEXT_LOCALE,LIBPC
test_cmp expected actual
'
-test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep non-ASCII from invalid UTF-8 data with -i' '
- test_might_fail git grep -hi "Æ" invalid-0x80 >actual &&
- test_cmp expected actual &&
- test_must_fail git grep -hi "(*NO_JIT)Æ" invalid-0x80 &&
- test_cmp expected actual
-'
-
test_done

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri Nov 29 14:57:55 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Guard xmlto/sgml-skel BuildRequires by docs bcond.
- Fix building with asciidoctor and without DocBook4 stylesheets:
* Add 0002-Also-use-DocBook-5-stylesheet-when-generating-HTML-o.patch
* Refresh 0001-DOC-Move-to-DocBook-5-when-using-asciidoctor.patch
- Spec file cleanup, remove conditionals for obsolete/EOLed distros.
- Drop curl (executable) BuildRequires, only required by some skipped
tests (skipped as these have an apache2 prerequisite).
-------------------------------------------------------------------
Fri Nov 29 10:22:06 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- added patch git-skip-test-s390x-aarch64-fail.patch
* workaround for bsc#1156651
-------------------------------------------------------------------
Mon Nov 4 10:45:32 UTC 2019 - Andreas Schwab <schwab@linux-m68k.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package git
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,17 +17,20 @@
%define gitexecdir %{_libexecdir}/git
%if 0%{?suse_version} >= 1210
%bcond_without git_gnome_keyring
%else
%bcond_with git_gnome_keyring
%endif
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
%bcond_without git_gnome_keyring
%bcond_without git_libsecret
%bcond_without docs
%if 0%{?suse_version} >= 1500 && %{with docs}
%bcond_without asciidoctor
%else
%bcond_with asciidoctor
%endif
Name: git
Version: 2.24.0
Release: 0
@ -54,7 +57,9 @@ Patch7: git-zsh-completion-fixes.diff
Patch8: git-asciidoc.patch
Patch10: setup-don-t-fail-if-commondir-reference-is-deleted.patch
Patch11: 0001-DOC-Move-to-DocBook-5-when-using-asciidoctor.patch
BuildRequires: curl
# workaround for bsc#1156651, try to build without it when updating
Patch12: git-skip-test-s390x-aarch64-fail.patch
Patch13: 0002-Also-use-DocBook-5-stylesheet-when-generating-HTML-o.patch
BuildRequires: fdupes
BuildRequires: gpg2
BuildRequires: libcurl-devel
@ -64,11 +69,9 @@ BuildRequires: pcre2-devel
BuildRequires: perl-Error
BuildRequires: perl-MailTools
BuildRequires: python3-base
BuildRequires: sgml-skel
BuildRequires: systemd-rpm-macros
BuildRequires: tcsh
BuildRequires: update-desktop-files
BuildRequires: xmlto
BuildRequires: xz
BuildRequires: zlib-devel
Requires: git-core = %{version}
@ -80,9 +83,11 @@ Recommends: gitk
Suggests: git-daemon
Suggests: git-web
%if %{with docs}
%if 0%{?suse_version} > 1320
BuildRequires: rubygem(asciidoctor)
BuildRequires: sgml-skel
BuildRequires: xmlto
%if %{with asciidoctor}
BuildRequires: docbook5-xsl-stylesheets
BuildRequires: rubygem(asciidoctor)
%else
BuildRequires: asciidoc
%endif
@ -116,11 +121,7 @@ Requires: openssh
Requires: perl-Error
Requires: rsync
Obsoletes: git-remote-helpers < %{version}
%if 0%{?suse_version} >= 1230
%{perl_requires}
%else
Requires: perl-base = %{perl_version}
%endif
%description core
Git is a fast, scalable, distributed revision control system with an
@ -132,9 +133,7 @@ These are the core tools with minimal dependencies.
%package doc
Summary: Documentation for the Git version control system
Group: Documentation/HTML
%if 0%{?suse_version} >= 1210
BuildArch: noarch
%endif
%description doc
Git is a fast, scalable, distributed revision control system with an
@ -148,13 +147,9 @@ text/html formats. (The manpages are in the main package.)
Summary: Git tools for importing Subversion repositories
Group: Development/Tools/Version Control
Requires: git-core = %{version}
Requires: perl-Term-ReadKey
Requires: subversion
Requires: subversion-perl
%if 0%{?suse_version} < 1140
Requires: perl-TermReadKey
%else
Requires: perl-Term-ReadKey
%endif
%description svn
Tools for importing Subversion repositories to the Git version control
@ -292,6 +287,8 @@ directory /git/ that calls the cgi script.
%patch8 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
cat > .make <<'EOF'
@ -305,9 +302,9 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" \
NO_INSTALL_HARDLINKS=1 \
%if 0%{?suse_version} > 1320
DC_SHA1_EXTERNAL=YesPlease \
%if %{with docs}
USE_ASCIIDOCTOR=YesPlease \
%endif
%if %{with asciidoctor}
USE_ASCIIDOCTOR=YesPlease \
%endif
PYTHON_PATH=%{_bindir}/python3 \
USE_LIBPCRE2=YesPlease \
@ -507,9 +504,6 @@ fi
%dir %{gitexecdir}/mergetools
%{gitexecdir}/mergetools/guiffy
%{_bindir}/git-new-workdir
%if 0%{?suse_version} < 1140
%{_localstatedir}/adm/perl-modules/%{name}
%endif
%attr(-,root,root) %{perl_vendorlib}/*
%{_sysconfdir}/bash_completion.d/*.sh
%{_datadir}/tcsh