2007-01-16 00:14:16 +01:00
|
|
|
#
|
2011-02-25 09:47:03 +01:00
|
|
|
# spec file for package git
|
2007-01-16 00:14:16 +01:00
|
|
|
#
|
2022-02-01 14:02:42 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-16 00:14:16 +01:00
|
|
|
#
|
2008-08-07 01:18:59 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-08-16 15:32:42 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:14:16 +01:00
|
|
|
#
|
|
|
|
|
2012-05-08 06:45:18 +02:00
|
|
|
|
2020-11-26 23:11:54 +01:00
|
|
|
%define rb_build_ruby_abis %{rb_default_ruby_abi}
|
|
|
|
%define rb_build_versions %{rb_default_ruby}
|
2018-12-10 12:26:12 +01:00
|
|
|
%define gitexecdir %{_libexecdir}/git
|
2020-04-29 20:44:23 +02:00
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%define _fwdefdir %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
|
|
|
%define SuSEfirewall2 1
|
|
|
|
%endif
|
2017-11-30 12:36:22 +01:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
2018-12-10 12:26:12 +01:00
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2014-11-24 11:18:04 +01:00
|
|
|
%endif
|
2019-12-07 15:19:55 +01:00
|
|
|
%bcond_without git_gnome_keyring
|
2018-02-23 15:28:45 +01:00
|
|
|
%bcond_without git_libsecret
|
2017-11-19 11:10:40 +01:00
|
|
|
%bcond_without docs
|
2019-12-07 15:19:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1500 && %{with docs}
|
|
|
|
%bcond_without asciidoctor
|
|
|
|
%else
|
|
|
|
%bcond_with asciidoctor
|
|
|
|
%endif
|
2007-01-16 00:14:16 +01:00
|
|
|
Name: git
|
2022-02-01 14:02:42 +01:00
|
|
|
Version: 2.35.1
|
2012-01-17 11:32:52 +01:00
|
|
|
Release: 0
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Fast, scalable, distributed revision control system
|
2018-03-09 10:35:12 +01:00
|
|
|
License: GPL-2.0-only
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2021-12-01 20:46:36 +01:00
|
|
|
URL: https://git-scm.com/
|
2014-06-26 08:00:13 +02:00
|
|
|
Source0: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz
|
2008-05-21 23:45:42 +02:00
|
|
|
Source1: apache2-gitweb.conf
|
2008-06-23 21:54:16 +02:00
|
|
|
Source2: sysconfig.git-daemon
|
2017-12-03 10:06:55 +01:00
|
|
|
Source3: git-daemon.service
|
2009-01-08 18:10:09 +01:00
|
|
|
Source5: usr.share.git-web.gitweb.cgi
|
2020-04-29 20:44:23 +02:00
|
|
|
Source6: susefirewall-git-daemon
|
2018-12-10 12:26:12 +01:00
|
|
|
Source7: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.sign
|
|
|
|
Source8: %{name}.keyring
|
2016-04-28 16:50:18 +02:00
|
|
|
Source9: %{name}-gui.desktop
|
|
|
|
Source10: %{name}-gui.png
|
2021-04-18 21:44:54 +02:00
|
|
|
Source11: git-daemon.conf
|
2021-04-10 15:26:14 +02:00
|
|
|
# PATCH-FIX-SUSE: Default to builtin add -i mode to avoid perl dependency
|
|
|
|
Patch2: suse-use-builtin-add-interactive.patch
|
2010-06-02 02:01:27 +02:00
|
|
|
Patch3: completion-wordbreaks.diff
|
2011-06-21 09:27:47 +02:00
|
|
|
# CVE-2011-2186, bnc#698456
|
|
|
|
Patch4: git-prevent_xss-default.diff
|
2013-12-03 14:26:02 +01:00
|
|
|
# cook up tcsh completion to be installable (bnc#853183)
|
|
|
|
Patch6: git-tcsh-completion-fixes.diff
|
|
|
|
# adapt paths in zsh completion (bnc#853183)
|
|
|
|
Patch7: git-zsh-completion-fixes.diff
|
2016-09-05 21:18:53 +02:00
|
|
|
Patch8: git-asciidoc.patch
|
2019-02-28 21:37:43 +01:00
|
|
|
Patch10: setup-don-t-fail-if-commondir-reference-is-deleted.patch
|
2013-04-05 13:22:52 +02:00
|
|
|
BuildRequires: fdupes
|
2015-11-12 19:40:08 +01:00
|
|
|
BuildRequires: gpg2
|
2013-04-05 13:22:52 +02:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
2017-08-06 11:25:53 +02:00
|
|
|
BuildRequires: pcre2-devel
|
2013-04-05 13:22:52 +02:00
|
|
|
BuildRequires: perl-Error
|
2018-05-21 20:21:32 +02:00
|
|
|
BuildRequires: perl-MailTools
|
2018-05-25 21:37:43 +02:00
|
|
|
BuildRequires: python3-base
|
2017-12-03 10:06:55 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2013-12-03 14:26:02 +01:00
|
|
|
BuildRequires: tcsh
|
2016-04-28 16:50:18 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2014-06-26 08:00:13 +02:00
|
|
|
BuildRequires: xz
|
2018-09-05 13:47:40 +02:00
|
|
|
BuildRequires: zlib-devel
|
2008-09-26 16:51:20 +02:00
|
|
|
Requires: git-core = %{version}
|
2021-04-10 15:26:14 +02:00
|
|
|
Requires: perl-Git = %{version}
|
2018-12-10 12:26:12 +01:00
|
|
|
Recommends: git-cvs
|
|
|
|
Recommends: git-email
|
|
|
|
Recommends: git-svn
|
2022-02-23 16:25:41 +01:00
|
|
|
Suggests: git-gui
|
|
|
|
Suggests: gitk
|
2018-12-10 12:26:12 +01:00
|
|
|
Suggests: git-daemon
|
|
|
|
Suggests: git-web
|
2021-06-09 21:54:51 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2021-12-01 20:46:36 +01:00
|
|
|
BuildRequires: openssh-clients
|
2021-06-09 21:54:51 +02:00
|
|
|
BuildRequires: sysuser-tools
|
|
|
|
%endif
|
2018-12-10 12:26:12 +01:00
|
|
|
%if %{with docs}
|
2019-12-07 15:19:55 +01:00
|
|
|
BuildRequires: sgml-skel
|
|
|
|
BuildRequires: xmlto
|
|
|
|
%if %{with asciidoctor}
|
2020-11-26 23:11:54 +01:00
|
|
|
BuildRequires: %{rubygem asciidoctor}
|
2021-01-15 19:43:14 +01:00
|
|
|
BuildRequires: docbook5-xsl-stylesheets
|
2018-12-10 12:26:12 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if %{with git_gnome_keyring}
|
|
|
|
BuildRequires: libgnome-keyring-devel
|
|
|
|
%endif
|
|
|
|
%if %{with git_libsecret}
|
|
|
|
BuildRequires: libsecret-devel
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: libsha1detectcoll-devel
|
|
|
|
%endif
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description
|
2007-07-06 15:30:41 +02:00
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations and
|
|
|
|
full access to internals.
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2007-07-06 15:30:41 +02:00
|
|
|
This package itself only provides the README of git but with the
|
|
|
|
packages it requires, it brings you a complete Git environment
|
|
|
|
including GTK and email interfaces and tools for importing source code
|
|
|
|
repositories from other revision control systems such as subversion,
|
|
|
|
CVS, and GNU arch.
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%package core
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Core git tools
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: less
|
2021-06-09 21:54:51 +02:00
|
|
|
Obsoletes: git-remote-helpers < %{version}
|
2021-04-06 17:29:21 +02:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150300
|
|
|
|
Requires: openssh-clients
|
|
|
|
%else
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: openssh
|
2021-04-06 17:29:21 +02:00
|
|
|
%endif
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description core
|
2007-07-06 15:30:41 +02:00
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations and
|
|
|
|
full access to internals.
|
|
|
|
|
|
|
|
These are the core tools with minimal dependencies.
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2021-04-10 15:26:14 +02:00
|
|
|
%package -n perl-Git
|
|
|
|
Summary: perl Bindings for Git
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Requires: perl-Error
|
2021-06-09 21:54:51 +02:00
|
|
|
Provides: git-core:%{perl_vendorlib}/Git
|
2021-04-10 15:26:14 +02:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description -n perl-Git
|
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations and
|
|
|
|
full access to internals.
|
|
|
|
|
|
|
|
This package provides the Perl interface to the Git version control system.
|
|
|
|
|
2014-02-02 07:35:06 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the Git version control system
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Git is a fast, scalable, distributed revision control system with an
|
|
|
|
unusually rich command set that provides both high-level operations and
|
|
|
|
full access to internals.
|
|
|
|
|
|
|
|
This subpackage contains Git's documentation in text/plain and
|
|
|
|
text/html formats. (The manpages are in the main package.)
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%package svn
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Git tools for importing Subversion repositories
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: git-core = %{version}
|
2021-04-10 15:26:14 +02:00
|
|
|
Requires: perl-Git = %{version}
|
2019-12-07 15:19:55 +01:00
|
|
|
Requires: perl-Term-ReadKey
|
2018-12-10 12:26:12 +01:00
|
|
|
Requires: subversion
|
|
|
|
Requires: subversion-perl
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description svn
|
|
|
|
Tools for importing Subversion repositories to the Git version control
|
|
|
|
system.
|
|
|
|
|
|
|
|
%package cvs
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Git tools for importing CVS repositories
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: cvs
|
2013-05-13 14:52:00 +02:00
|
|
|
Requires: cvsps
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires: perl-DBD-SQLite
|
2021-04-10 15:26:14 +02:00
|
|
|
Requires: perl-Git = %{version}
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description cvs
|
|
|
|
Tools for importing CVS repositories to the Git version control system.
|
|
|
|
|
2014-11-24 11:18:04 +01:00
|
|
|
%package credential-gnome-keyring
|
|
|
|
Summary: Git credential backend using the GNOME keyring as storage
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires: gnome-keyring
|
|
|
|
|
|
|
|
%description credential-gnome-keyring
|
|
|
|
A Git credential backend which uses the GNOME keyring as storage.
|
|
|
|
|
2018-02-23 15:28:45 +01:00
|
|
|
%package credential-libsecret
|
|
|
|
Summary: Git credential backend using libsecret to access keyring
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: git-core = %{version}
|
|
|
|
|
|
|
|
%description credential-libsecret
|
|
|
|
A Git credential backend which uses libsecret API to acces keyrings such as
|
|
|
|
kwallet or GNOME keyring.
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%package arch
|
2009-09-02 18:48:38 +02:00
|
|
|
Summary: Git tools for importing Arch repositories
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2009-10-03 03:33:25 +02:00
|
|
|
Requires: git-core = %{version}
|
|
|
|
# Requires: tla
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description arch
|
|
|
|
Tools for importing GNU Arch repositories to the GIT version control
|
|
|
|
system.
|
|
|
|
|
2017-11-19 11:10:40 +01:00
|
|
|
%package p4
|
|
|
|
Summary: Git tools for importing Perforce repositories
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires: python2-base
|
|
|
|
|
|
|
|
%description p4
|
|
|
|
Tools for importing Perforce repositories to the GIT version control
|
|
|
|
system.
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%package email
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Git tools for sending email
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2007-11-28 23:07:45 +01:00
|
|
|
Requires: git-core = %{version}
|
2010-06-02 02:01:27 +02:00
|
|
|
# For sending mails over secure SMTP:
|
2018-12-10 12:26:12 +01:00
|
|
|
Requires: perl-Authen-SASL
|
2021-04-10 15:26:14 +02:00
|
|
|
Requires: perl-Git = %{version}
|
2019-05-15 12:24:30 +02:00
|
|
|
Requires: perl-MailTools
|
2018-12-10 12:26:12 +01:00
|
|
|
Requires: perl-Net-SMTP-SSL
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description email
|
|
|
|
Email interface for the GIT version control system.
|
|
|
|
|
2008-06-23 21:54:16 +02:00
|
|
|
%package daemon
|
2008-09-26 16:51:20 +02:00
|
|
|
Summary: Simple Server for Git Repositories
|
2008-06-23 21:54:16 +02:00
|
|
|
Group: Development/Tools/Version Control
|
2021-06-09 21:54:51 +02:00
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires(pre): %fillup_prereq
|
2021-10-29 22:33:05 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
Requires(pre): group(nogroup)
|
2021-04-18 21:44:54 +02:00
|
|
|
%sysusers_requires
|
|
|
|
%{?systemd_requires}
|
|
|
|
%else
|
2018-12-10 12:26:12 +01:00
|
|
|
Requires(pre): %{_sbindir}/useradd
|
2019-01-26 22:18:54 +01:00
|
|
|
Requires(pre): shadow
|
2018-12-19 13:25:31 +01:00
|
|
|
%endif
|
2008-06-23 21:54:16 +02:00
|
|
|
|
|
|
|
%description daemon
|
2008-09-26 16:51:20 +02:00
|
|
|
A really simple TCP git daemon. In the default configuration it allows
|
|
|
|
read only access to repositories in /srv/git/ that contain the
|
|
|
|
'git-daemon-export-ok' file.
|
2013-04-05 13:22:52 +02:00
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%package -n gitk
|
2007-07-06 15:30:41 +02:00
|
|
|
Summary: Git revision tree visualiser
|
2007-01-16 00:14:16 +01:00
|
|
|
Group: Development/Tools/Version Control
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires: tk >= 8.4
|
2021-06-09 21:54:51 +02:00
|
|
|
Supplements: (git-core and tk)
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%description -n gitk
|
2007-07-06 15:30:41 +02:00
|
|
|
Grapical tool for visualization of revision trees of projects
|
|
|
|
maintained in the Git version control system. It name gitk indicates
|
|
|
|
that it's written using the Tk Widget set.
|
|
|
|
|
|
|
|
A simple Tk based graphical interface for common Git operations is
|
|
|
|
found in the package git-gui.
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2008-09-26 16:51:20 +02:00
|
|
|
%package gui
|
|
|
|
Summary: Grapical tool for common git operations
|
|
|
|
Group: Development/Tools/Version Control
|
2012-05-08 06:45:18 +02:00
|
|
|
Requires: git-core = %{version}
|
|
|
|
Requires: tk >= 8.4
|
2021-06-09 21:54:51 +02:00
|
|
|
Supplements: (git-core and tk)
|
2008-09-26 16:51:20 +02:00
|
|
|
|
|
|
|
%description gui
|
|
|
|
A Tcl/Tk based graphical user interface to Git. git-gui focuses on
|
|
|
|
allowing users to make changes to their repository by making new
|
|
|
|
commits, amending existing ones, creating branches, performing local
|
|
|
|
merges, and fetching/pushing to remote repositories.
|
|
|
|
|
|
|
|
Unlike gitk, git-gui focuses on commit generation and single file
|
|
|
|
annotation, and does not show project history. It does however supply
|
|
|
|
menu actions to start a gitk session from within git-gui.
|
|
|
|
|
|
|
|
%package web
|
|
|
|
Summary: Git Web Interface
|
|
|
|
Group: Development/Tools/Version Control
|
|
|
|
Requires: git-core = %{version}
|
2019-07-17 14:23:25 +02:00
|
|
|
Requires: perl-CGI
|
2021-04-10 15:26:14 +02:00
|
|
|
Requires: perl-Git = %{version}
|
2021-06-09 21:54:51 +02:00
|
|
|
Supplements: (git-core and apache2)
|
2008-09-26 16:51:20 +02:00
|
|
|
|
|
|
|
%description web
|
|
|
|
CGI script that allows browsing git repositories via web interface.
|
|
|
|
|
|
|
|
The apache2 configuration contained in this package installs a virtual
|
|
|
|
directory /git/ that calls the cgi script.
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%prep
|
2008-01-10 15:38:18 +01:00
|
|
|
%setup -q
|
2021-04-10 15:26:14 +02:00
|
|
|
%autopatch -p1
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-08 18:10:09 +01:00
|
|
|
cat > .make <<'EOF'
|
|
|
|
#!/bin/bash
|
2021-03-12 13:30:11 +01:00
|
|
|
%make_build CFLAGS="%{optflags}" \
|
2018-12-10 12:26:12 +01:00
|
|
|
GITWEB_CONFIG="%{_sysconfdir}/gitweb.conf" \
|
2007-05-18 02:07:32 +02:00
|
|
|
GITWEB_PROJECTROOT="/srv/git" \
|
2009-11-20 14:21:15 +01:00
|
|
|
WITH_OWN_SUBPROCESS_PY=YesPlease \
|
2018-01-21 15:47:23 +01:00
|
|
|
DESTDIR=%{buildroot} \
|
2010-10-11 14:44:17 +02:00
|
|
|
NO_CROSS_DIRECTORY_HARDLINKS=1 \
|
2012-08-12 15:25:28 +02:00
|
|
|
NO_INSTALL_HARDLINKS=1 \
|
2017-11-14 14:44:28 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
DC_SHA1_EXTERNAL=YesPlease \
|
2018-03-09 10:35:12 +01:00
|
|
|
%endif
|
2019-12-07 15:19:55 +01:00
|
|
|
%if %{with asciidoctor}
|
|
|
|
USE_ASCIIDOCTOR=YesPlease \
|
2017-11-14 14:44:28 +01:00
|
|
|
%endif
|
2017-11-19 11:10:40 +01:00
|
|
|
PYTHON_PATH=%{_bindir}/python3 \
|
2017-08-06 11:25:53 +02:00
|
|
|
USE_LIBPCRE2=YesPlease \
|
2018-05-21 20:21:32 +02:00
|
|
|
NO_PERL_CPAN_FALLBACKS=1 \
|
2008-05-21 23:45:42 +02:00
|
|
|
V=1 \
|
2007-05-18 02:07:32 +02:00
|
|
|
prefix=%{_prefix} mandir=%{_mandir} \
|
2009-01-08 18:10:09 +01:00
|
|
|
gitexecdir=%{gitexecdir} \
|
2017-06-07 09:54:24 +02:00
|
|
|
htmldir=%{_docdir}/git \
|
2018-05-21 20:21:32 +02:00
|
|
|
perllibdir=%{perl_vendorlib} \
|
2009-01-08 18:10:09 +01:00
|
|
|
"$@"
|
|
|
|
EOF
|
|
|
|
#
|
|
|
|
chmod 755 .make
|
2010-03-19 09:38:33 +01:00
|
|
|
./.make all %{?_smp_mflags}
|
2018-05-25 21:37:43 +02:00
|
|
|
%if %{with docs}
|
|
|
|
./.make doc %{?_smp_mflags}
|
|
|
|
%endif
|
2014-01-17 11:03:34 +01:00
|
|
|
|
2014-11-24 11:18:04 +01:00
|
|
|
%if %{with git_gnome_keyring}
|
|
|
|
./.make -C contrib/credential/gnome-keyring
|
|
|
|
%endif
|
2018-02-23 15:28:45 +01:00
|
|
|
%if %{with git_libsecret}
|
|
|
|
./.make -C contrib/credential/libsecret
|
|
|
|
%endif
|
2014-01-17 11:03:34 +01:00
|
|
|
./.make -C contrib/subtree/
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2021-04-18 21:44:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2021-10-29 22:33:05 +02:00
|
|
|
%sysusers_generate_pre %{SOURCE11} git-daemon git-daemon.conf
|
2021-04-18 21:44:54 +02:00
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%install
|
2009-01-08 18:10:09 +01:00
|
|
|
./.make install %{!?_without_docs: install-doc}
|
2008-05-21 23:45:42 +02:00
|
|
|
### git-web
|
|
|
|
cp gitweb/INSTALL INSTALL.gitweb
|
|
|
|
cp gitweb/README README.gitweb
|
2018-01-21 15:47:23 +01:00
|
|
|
install -d %{buildroot}%{_datadir}/git-web
|
2018-12-10 12:26:12 +01:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/apache2/conf.d
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apache2/conf.d/gitweb.conf
|
2008-06-23 21:54:16 +02:00
|
|
|
### git-daemon
|
2018-01-21 15:47:23 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/git-daemon.service
|
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
2018-12-10 12:26:12 +01:00
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcgit-daemon
|
2018-01-21 15:47:23 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_fillupdir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.git-daemon
|
|
|
|
install -d -m 755 %{buildroot}/srv/git
|
2020-04-29 20:44:23 +02:00
|
|
|
%if 0%{?SuSEfirewall2}
|
|
|
|
mkdir -p %{buildroot}/%{_fwdefdir}
|
|
|
|
install -m 644 %{SOURCE6} %{buildroot}/%{_fwdefdir}/git-daemon
|
|
|
|
%endif
|
2008-05-21 23:45:42 +02:00
|
|
|
###
|
2014-01-17 11:03:34 +01:00
|
|
|
./.make -C contrib/subtree install
|
|
|
|
%{!?_without_docs: ./.make -C contrib/subtree install-doc}
|
2021-04-10 15:26:14 +02:00
|
|
|
(find %{buildroot}%{_bindir} -type f -o -type l | grep -vE "archimport|p4|svn|cvs|email|gitk|git-daemon|gui|web" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
|
|
|
|
(find %{buildroot}%{gitexecdir} ! -type d | grep -vE "archimport|p4|svn|cvs|email|gitk|git-daemon|gui|web" | sed -e s@^%{buildroot}@@) >> bin-man-doc-files
|
|
|
|
(find %{buildroot}%{_mandir} -type f | grep -vE "archimport|p4|svn|git-cvs|email|gitk|git-daemon|gui|web" | sed -e s@^%{buildroot}@@ -e 's/$/*/' ) >> bin-man-doc-files
|
|
|
|
# Don't pick up dependencies from sample files
|
|
|
|
find %{buildroot}/%{_datadir}/git-core/templates -type f -name "*.sample" -exec chmod a-x "{}" "+"
|
2007-01-16 00:14:16 +01:00
|
|
|
%perl_process_packlist
|
2018-05-25 21:37:43 +02:00
|
|
|
%if %{with docs}
|
2018-12-10 12:26:12 +01:00
|
|
|
find %{buildroot}/%{_mandir} -type f -exec chmod 644 "{}" "+"
|
2018-05-25 21:37:43 +02:00
|
|
|
%endif
|
2018-12-10 12:26:12 +01:00
|
|
|
install -m 644 -D contrib/completion/git-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/git.sh
|
|
|
|
install -m 644 -D contrib/completion/git-prompt.sh %{buildroot}%{_sysconfdir}/bash_completion.d/git-prompt.sh
|
2014-11-24 11:18:04 +01:00
|
|
|
# contrib/credential
|
|
|
|
%if %{with git_gnome_keyring}
|
2018-01-21 15:47:23 +01:00
|
|
|
install -m 755 -D contrib/credential/gnome-keyring/git-credential-gnome-keyring %{buildroot}/%{gitexecdir}/git-credential-gnome-keyring
|
2014-11-24 11:18:04 +01:00
|
|
|
%endif
|
2018-02-23 15:28:45 +01:00
|
|
|
%if %{with git_libsecret}
|
|
|
|
install -m 755 -D contrib/credential/libsecret/git-credential-libsecret %{buildroot}/%{gitexecdir}/git-credential-libsecret
|
|
|
|
%endif
|
2016-01-13 22:44:08 +01:00
|
|
|
# contrib/workdir
|
|
|
|
install -m 755 -D contrib/workdir/git-new-workdir %{buildroot}/%{_bindir}
|
2013-12-03 14:26:02 +01:00
|
|
|
# process tcsh completion
|
|
|
|
(cd contrib/completion
|
2018-01-21 15:47:23 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/tcsh
|
2013-12-03 14:26:02 +01:00
|
|
|
tcsh ./git-completion.tcsh
|
2018-12-10 12:26:12 +01:00
|
|
|
install -m 644 -D git.csh %{buildroot}%{_sysconfdir}/profile.d/git.csh
|
2013-12-03 14:26:02 +01:00
|
|
|
)
|
|
|
|
# zsh completion
|
2018-12-10 12:26:12 +01:00
|
|
|
install -m 644 -D contrib/completion/git-completion.zsh %{buildroot}%{_sysconfdir}/zsh_completion.d/_git
|
2009-01-08 18:10:09 +01:00
|
|
|
#
|
|
|
|
# apparmor profile for git-web
|
|
|
|
#
|
2018-12-10 12:26:12 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/apparmor.d
|
|
|
|
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/apparmor.d
|
2009-01-08 18:10:09 +01:00
|
|
|
#
|
|
|
|
# create predictable symlinks to make apparmor profile work
|
2012-08-12 15:25:28 +02:00
|
|
|
for i in git git-upload-archive git-receive-pack; do
|
2018-01-21 15:47:23 +01:00
|
|
|
rm %{buildroot}%{_bindir}/$i
|
|
|
|
ln -s %{gitexecdir}/git %{buildroot}%{_bindir}/$i
|
2009-01-08 18:10:09 +01:00
|
|
|
done
|
2018-01-21 15:47:23 +01:00
|
|
|
if ! test -f %{buildroot}%{gitexecdir}/git-add; then
|
2009-01-08 18:10:09 +01:00
|
|
|
echo "git-add is not a regular file, apparmor profile won't work!" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2014-02-02 07:35:06 +01:00
|
|
|
|
2018-12-10 12:26:12 +01:00
|
|
|
mkdir -p "%{buildroot}/%{_docdir}/git" "%{buildroot}/%{_docdir}/git/howto" "%{buildroot}/%{_docdir}/git/technical"
|
|
|
|
cp -a README.md Documentation/*.txt "%{buildroot}/%{_docdir}/git/"
|
|
|
|
cp -a Documentation/howto/*.txt "%{buildroot}/%{_docdir}/git/howto/"
|
|
|
|
cp -a Documentation/technical/*.txt "%{buildroot}/%{_docdir}/git/technical/"
|
|
|
|
%{!?_without_docs: cp -a Documentation/*.html "%{buildroot}/%{_docdir}/git/"}
|
|
|
|
%{!?_without_docs: cp -a Documentation/howto/*.html "%{buildroot}/%{_docdir}/git/howto/"}
|
|
|
|
%{!?_without_docs: cp -a Documentation/technical/*.html "%{buildroot}/%{_docdir}/git/technical/"}
|
2014-02-02 07:35:06 +01:00
|
|
|
|
2018-01-21 15:47:23 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/applications
|
|
|
|
install -m 644 %{SOURCE9} %{buildroot}%{_datadir}/applications
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -m 644 %{SOURCE10} %{buildroot}%{_datadir}/pixmaps
|
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}-gui.desktop
|
2016-04-28 16:50:18 +02:00
|
|
|
|
2021-04-18 21:44:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
mkdir -p %{buildroot}%{_sysusersdir}
|
|
|
|
install -m 0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/
|
|
|
|
%endif
|
|
|
|
|
2012-02-14 11:23:58 +01:00
|
|
|
%find_lang %{name}
|
2012-05-08 06:45:18 +02:00
|
|
|
cat %{name}.lang >>bin-man-doc-files
|
2008-09-26 16:51:20 +02:00
|
|
|
# use symlinks instead of hardlinks in sub-commands
|
2018-01-21 15:47:23 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2011-12-21 10:00:12 +01:00
|
|
|
%check
|
2012-10-16 21:32:02 +02:00
|
|
|
./.make %{?_smp_mflags} test
|
2007-01-16 00:14:16 +01:00
|
|
|
|
2021-04-18 21:44:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%pre daemon -f git-daemon.pre
|
|
|
|
%else
|
2021-04-24 23:07:10 +02:00
|
|
|
|
2008-06-23 21:54:16 +02:00
|
|
|
%pre daemon
|
2018-12-10 12:26:12 +01:00
|
|
|
if ! %{_bindir}/getent passwd git-daemon >/dev/null; then
|
|
|
|
%{_sbindir}/useradd -r -d %{_localstatedir}/lib/empty -s /bin/false -c "git daemon" -g nogroup git-daemon
|
2008-06-23 21:54:16 +02:00
|
|
|
fi
|
2021-04-18 21:44:54 +02:00
|
|
|
%endif
|
2017-12-03 10:06:55 +01:00
|
|
|
%service_add_pre git-daemon.service
|
2008-06-23 21:54:16 +02:00
|
|
|
|
|
|
|
%post daemon
|
2017-12-03 10:06:55 +01:00
|
|
|
%{fillup_only -n git-daemon}
|
|
|
|
%service_add_post git-daemon.service
|
2008-06-23 21:54:16 +02:00
|
|
|
|
|
|
|
%preun daemon
|
2017-12-03 10:06:55 +01:00
|
|
|
%service_del_preun git-daemon.service
|
|
|
|
|
|
|
|
%postun daemon
|
|
|
|
%service_del_postun git-daemon.service
|
2008-06-23 21:54:16 +02:00
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%files
|
2018-12-10 12:26:12 +01:00
|
|
|
%dir %{_docdir}/%{name}
|
2021-04-10 15:26:14 +02:00
|
|
|
%{gitexecdir}/git-add--interactive
|
2018-12-10 12:26:12 +01:00
|
|
|
%{_docdir}/%{name}/README.md
|
2014-02-02 07:35:06 +01:00
|
|
|
|
|
|
|
%files doc
|
2018-12-10 12:26:12 +01:00
|
|
|
%{_docdir}/%{name}/
|
|
|
|
%exclude %{_docdir}/%{name}/README.md
|
2007-01-16 00:14:16 +01:00
|
|
|
|
|
|
|
%files svn
|
2009-01-08 18:10:09 +01:00
|
|
|
%{gitexecdir}/*svn*
|
2007-01-16 00:14:16 +01:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*svn*.1*}
|
|
|
|
|
|
|
|
%files cvs
|
2008-11-20 15:22:38 +01:00
|
|
|
%{_bindir}/git-cvs*
|
2009-01-08 18:10:09 +01:00
|
|
|
%{gitexecdir}/*cvs*
|
2007-01-16 00:14:16 +01:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*cvs*.1*}
|
|
|
|
|
2014-11-24 11:18:04 +01:00
|
|
|
%if %{with git_gnome_keyring}
|
|
|
|
%files credential-gnome-keyring
|
|
|
|
%{gitexecdir}/git-credential-gnome-keyring
|
|
|
|
%endif
|
|
|
|
|
2018-02-23 15:28:45 +01:00
|
|
|
%if %{with git_libsecret}
|
|
|
|
%files credential-libsecret
|
|
|
|
%{gitexecdir}/git-credential-libsecret
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%files arch
|
2009-01-08 18:10:09 +01:00
|
|
|
%{gitexecdir}/git-archimport
|
2007-01-16 00:14:16 +01:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
|
|
|
|
|
2017-11-19 11:10:40 +01:00
|
|
|
%files p4
|
|
|
|
%{gitexecdir}/git-p4
|
|
|
|
%{gitexecdir}/mergetools/p4merge
|
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-p4.1*}
|
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%files email
|
2009-01-08 18:10:09 +01:00
|
|
|
%{gitexecdir}/*email*
|
2007-01-16 00:14:16 +01:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*email*.1*}
|
|
|
|
|
2008-06-23 21:54:16 +02:00
|
|
|
%files daemon
|
2015-07-24 09:57:51 +02:00
|
|
|
%{gitexecdir}/git-daemon
|
2017-12-03 10:06:55 +01:00
|
|
|
%{_unitdir}/git-daemon.service
|
2008-06-23 21:54:16 +02:00
|
|
|
%{_sbindir}/rcgit-daemon
|
|
|
|
%dir /srv/git
|
2017-11-30 12:36:22 +01:00
|
|
|
%{_fillupdir}/sysconfig.git-daemon
|
2015-07-24 09:57:51 +02:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/git-daemon.1*}
|
2020-04-29 20:44:23 +02:00
|
|
|
%if 0%{?SuSEfirewall2}
|
|
|
|
%config %{_fwdefdir}/*
|
|
|
|
%endif
|
2021-04-18 21:44:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%{_sysusersdir}/git-daemon.conf
|
|
|
|
%endif
|
2008-06-23 21:54:16 +02:00
|
|
|
|
2007-01-16 00:14:16 +01:00
|
|
|
%files -n gitk
|
2008-09-26 16:51:20 +02:00
|
|
|
%{_bindir}/gitk
|
2018-01-21 15:47:23 +01:00
|
|
|
%{_datadir}/gitk
|
2007-01-16 00:14:16 +01:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
|
|
|
|
|
2008-09-26 16:51:20 +02:00
|
|
|
%files gui
|
2009-01-08 18:10:09 +01:00
|
|
|
%{gitexecdir}/git-gui*
|
2018-01-21 15:47:23 +01:00
|
|
|
%{_datadir}/git-gui
|
2008-09-26 16:51:20 +02:00
|
|
|
%{!?_without_docs: %{_mandir}/man1/*gui*.1*}
|
2016-04-28 16:50:18 +02:00
|
|
|
%{_datadir}/applications/%{name}-gui.desktop
|
|
|
|
%{_datadir}/pixmaps/%{name}-gui.png
|
2008-09-26 16:51:20 +02:00
|
|
|
|
|
|
|
%files web
|
|
|
|
%doc README.gitweb INSTALL.gitweb
|
2019-01-21 10:08:17 +01:00
|
|
|
%dir %{_sysconfdir}/apache2
|
|
|
|
%dir %{_sysconfdir}/apache2/conf.d/
|
2018-12-10 12:26:12 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/apache2/conf.d/gitweb.conf
|
2018-01-21 15:47:23 +01:00
|
|
|
%{_datadir}/gitweb
|
2018-12-10 12:26:12 +01:00
|
|
|
%{_sysconfdir}/apparmor.d
|
2021-04-10 15:26:14 +02:00
|
|
|
%{gitexecdir}//git-instaweb
|
|
|
|
%{gitexecdir}//git-web--browse
|
2021-06-09 21:54:51 +02:00
|
|
|
%{_mandir}/man1/*web*1%{?ext_man}
|
|
|
|
%{_mandir}/man5/*web*5%{?ext_man}
|
2008-09-26 16:51:20 +02:00
|
|
|
|
2012-05-08 06:45:18 +02:00
|
|
|
%files core -f bin-man-doc-files
|
2021-04-10 15:26:14 +02:00
|
|
|
%license COPYING
|
2007-01-16 00:14:16 +01:00
|
|
|
%{_datadir}/git-core/
|
2009-01-08 18:10:09 +01:00
|
|
|
%dir %{gitexecdir}
|
2012-10-16 21:32:02 +02:00
|
|
|
%dir %{gitexecdir}/mergetools
|
2018-06-27 10:16:44 +02:00
|
|
|
%{gitexecdir}/mergetools/guiffy
|
2021-04-10 15:26:14 +02:00
|
|
|
# We want to prefer the builtin
|
|
|
|
%exclude %{gitexecdir}/git-add--interactive
|
2016-01-13 22:44:08 +01:00
|
|
|
%{_bindir}/git-new-workdir
|
2018-12-10 12:26:12 +01:00
|
|
|
%{_sysconfdir}/bash_completion.d/*.sh
|
2018-01-21 15:47:23 +01:00
|
|
|
%{_datadir}/tcsh
|
2018-12-10 12:26:12 +01:00
|
|
|
%{_sysconfdir}/profile.d/*.csh
|
|
|
|
%{_sysconfdir}/zsh_completion.d
|
2021-04-10 15:26:14 +02:00
|
|
|
|
|
|
|
%files -n perl-Git
|
2018-03-29 11:49:09 +02:00
|
|
|
%license COPYING
|
2021-04-10 15:26:14 +02:00
|
|
|
%attr(-,root,root) %{perl_vendorlib}/Git
|
|
|
|
%attr(-,root,root) %{perl_vendorlib}/Git.pm
|
2007-11-28 23:07:45 +01:00
|
|
|
|
2007-05-18 02:07:32 +02:00
|
|
|
%changelog
|