Remove EL-5 and old Fedora conditionals
EL-5 has been EOL for several months now. We can drop all the conditionals needed to build there, as well as some conditionals for long-expired Fedora releases. Without EL-5 we also no longer use the prebuilt documentation. Remove these sources and simplify the gpg check for the remaining source.
This commit is contained in:
parent
570387156b
commit
903d8f35ed
134
git.spec
134
git.spec
@ -1,36 +1,9 @@
|
|||||||
# Pass --without docs to rpmbuild if you don't want the documentation
|
# Pass --without docs to rpmbuild if you don't want the documentation
|
||||||
|
|
||||||
# Settings for EL-5
|
|
||||||
# - Leave git-* binaries in %%{_bindir}
|
|
||||||
# - Don't use noarch subpackages
|
|
||||||
# - Use proper libcurl devel package
|
|
||||||
# - Patch emacs and tweak docbook spaces
|
|
||||||
# - Explicitly enable ipv6 for git-daemon
|
|
||||||
# - Use prebuilt documentation, asciidoc is too old
|
|
||||||
# - Define missing python macro
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
%global gitcoredir %{_bindir}
|
|
||||||
%global noarch_sub 0
|
|
||||||
%global libcurl_devel curl-devel
|
|
||||||
%global emacs_old 1
|
|
||||||
%global docbook_suppress_sp 1
|
|
||||||
%global enable_ipv6 1
|
|
||||||
%global use_prebuilt_docs 1
|
|
||||||
%global filter_yaml_any 1
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
||||||
%else
|
|
||||||
%global gitcoredir %{_libexecdir}/git-core
|
%global gitcoredir %{_libexecdir}/git-core
|
||||||
%global noarch_sub 1
|
|
||||||
%global libcurl_devel libcurl-devel
|
|
||||||
%global emacs_old 0
|
|
||||||
%global docbook_suppress_sp 0
|
|
||||||
%global enable_ipv6 0
|
|
||||||
%global use_prebuilt_docs 0
|
|
||||||
%global filter_yaml_any 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Settings for F-19+ and EL-7+
|
# Settings for F-19+ and EL-7+
|
||||||
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
%global bashcomp_pkgconfig 1
|
%global bashcomp_pkgconfig 1
|
||||||
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
|
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
|
||||||
%global bashcomproot %(dirname %{bashcompdir} 2>/dev/null)
|
%global bashcomproot %(dirname %{bashcompdir} 2>/dev/null)
|
||||||
@ -50,19 +23,12 @@
|
|||||||
# to use it on older fedora instead of libsecret. So that's
|
# to use it on older fedora instead of libsecret. So that's
|
||||||
# why this ugly solution
|
# why this ugly solution
|
||||||
# TODO: we should maybe update conditions according to supported systems
|
# TODO: we should maybe update conditions according to supported systems
|
||||||
%if 0%{?fedora} >= 19 && 0%{?fedora} < 26 || 0%{?rhel} == 7
|
%if ( 0%{?fedora} && 0%{?fedora} < 26 ) || 0%{?rhel} == 7
|
||||||
%global gnome_keyring 1
|
%global gnome_keyring 1
|
||||||
%else
|
%else
|
||||||
%global gnome_keyring 0
|
%global gnome_keyring 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# This one macro is for F19+ and EL-6+
|
|
||||||
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 6
|
|
||||||
%global desktop_vendor_tag 0
|
|
||||||
%else
|
|
||||||
%global desktop_vendor_tag 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Settings for EL <= 7
|
# Settings for EL <= 7
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
|
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
|
||||||
@ -85,11 +51,7 @@ License: GPLv2
|
|||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: https://git-scm.com/
|
URL: https://git-scm.com/
|
||||||
Source0: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz
|
Source0: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz
|
||||||
Source1: https://www.kernel.org/pub/software/scm/git/%{name}-htmldocs-%{version}.tar.xz
|
Source1: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.sign
|
||||||
Source2: https://www.kernel.org/pub/software/scm/git/%{name}-manpages-%{version}.tar.xz
|
|
||||||
Source3: https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.sign
|
|
||||||
Source4: https://www.kernel.org/pub/software/scm/git/%{name}-htmldocs-%{version}.tar.sign
|
|
||||||
Source5: https://www.kernel.org/pub/software/scm/git/%{name}-manpages-%{version}.tar.sign
|
|
||||||
|
|
||||||
# Junio C Hamano's key is used to sign git releases, it can be found in the
|
# Junio C Hamano's key is used to sign git releases, it can be found in the
|
||||||
# junio-gpg-pub tag within git.
|
# junio-gpg-pub tag within git.
|
||||||
@ -113,12 +75,10 @@ Source16: git.socket
|
|||||||
Patch0: git-1.8-gitweb-home-link.patch
|
Patch0: git-1.8-gitweb-home-link.patch
|
||||||
# https://bugzilla.redhat.com/490602
|
# https://bugzilla.redhat.com/490602
|
||||||
Patch1: git-cvsimport-Ignore-cvsps-2.2b1-Branches-output.patch
|
Patch1: git-cvsimport-Ignore-cvsps-2.2b1-Branches-output.patch
|
||||||
# https://bugzilla.redhat.com/600411
|
|
||||||
Patch3: git-1.7-el5-emacs-support.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
%if ! 0%{?_without_docs}
|
||||||
BuildRequires: asciidoc >= 8.4.1
|
BuildRequires: asciidoc >= 8.4.1
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
%if %{test_links}
|
%if %{test_links}
|
||||||
@ -130,12 +90,12 @@ BuildRequires: emacs
|
|||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
BuildRequires: %{libcurl_devel}
|
BuildRequires: libcurl-devel
|
||||||
%if %{libsecret}
|
%if %{libsecret}
|
||||||
BuildRequires: libsecret-devel
|
BuildRequires: libsecret-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pcre-devel
|
BuildRequires: pcre-devel
|
||||||
%if 0%{?fedora} && 0%{?fedora} >= 21
|
%if 0%{?fedora}
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: perl(Test)
|
BuildRequires: perl(Test)
|
||||||
@ -157,7 +117,7 @@ Requires: perl(Term::ReadKey)
|
|||||||
%endif
|
%endif
|
||||||
Requires: perl-Git = %{version}-%{release}
|
Requires: perl-Git = %{version}-%{release}
|
||||||
|
|
||||||
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
Requires: emacs-filesystem >= %{_emacs_version}
|
Requires: emacs-filesystem >= %{_emacs_version}
|
||||||
# These can be removed in Fedora 26
|
# These can be removed in Fedora 26
|
||||||
Obsoletes: emacs-git <= 2.4.5
|
Obsoletes: emacs-git <= 2.4.5
|
||||||
@ -181,9 +141,7 @@ tools for integrating with other SCMs, install the git-all meta-package.
|
|||||||
%package all
|
%package all
|
||||||
Summary: Meta-package to pull in all git tools
|
Summary: Meta-package to pull in all git tools
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
%if %{gnome_keyring}
|
%if %{gnome_keyring}
|
||||||
Requires: git-gnome-keyring = %{version}-%{release}
|
Requires: git-gnome-keyring = %{version}-%{release}
|
||||||
@ -252,9 +210,7 @@ The git daemon for supporting git:// access to git repositories
|
|||||||
%package -n gitweb
|
%package -n gitweb
|
||||||
Summary: Simple web interface to git repositories
|
Summary: Simple web interface to git repositories
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
|
|
||||||
%description -n gitweb
|
%description -n gitweb
|
||||||
@ -263,9 +219,7 @@ Simple web interface to track changes in git repositories
|
|||||||
%package p4
|
%package p4
|
||||||
Summary: Git tools for working with Perforce depots
|
Summary: Git tools for working with Perforce depots
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
BuildRequires: python
|
BuildRequires: python
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
%description p4
|
%description p4
|
||||||
@ -285,9 +239,7 @@ Git tools for importing Subversion repositories.
|
|||||||
%package cvs
|
%package cvs
|
||||||
Summary: Git tools for importing CVS repositories
|
Summary: Git tools for importing CVS repositories
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}, cvs
|
Requires: git = %{version}-%{release}, cvs
|
||||||
Requires: cvsps
|
Requires: cvsps
|
||||||
Requires: perl(DBD::SQLite)
|
Requires: perl(DBD::SQLite)
|
||||||
@ -298,9 +250,7 @@ Git tools for importing CVS repositories.
|
|||||||
%package email
|
%package email
|
||||||
Summary: Git tools for sending email
|
Summary: Git tools for sending email
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}, perl-Git = %{version}-%{release}
|
Requires: git = %{version}-%{release}, perl-Git = %{version}-%{release}
|
||||||
Requires: perl(Authen::SASL)
|
Requires: perl(Authen::SASL)
|
||||||
Requires: perl(Net::SMTP::SSL)
|
Requires: perl(Net::SMTP::SSL)
|
||||||
@ -311,9 +261,7 @@ Git tools for sending email.
|
|||||||
%package gui
|
%package gui
|
||||||
Summary: Git GUI tool
|
Summary: Git GUI tool
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}, tk >= 8.4
|
Requires: git = %{version}-%{release}, tk >= 8.4
|
||||||
Requires: gitk = %{version}-%{release}
|
Requires: gitk = %{version}-%{release}
|
||||||
%description gui
|
%description gui
|
||||||
@ -322,9 +270,7 @@ Git GUI tool.
|
|||||||
%package -n gitk
|
%package -n gitk
|
||||||
Summary: Git revision tree visualiser
|
Summary: Git revision tree visualiser
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}, tk >= 8.4
|
Requires: git = %{version}-%{release}, tk >= 8.4
|
||||||
%description -n gitk
|
%description -n gitk
|
||||||
Git revision tree visualiser.
|
Git revision tree visualiser.
|
||||||
@ -332,9 +278,7 @@ Git revision tree visualiser.
|
|||||||
%package -n perl-Git
|
%package -n perl-Git
|
||||||
Summary: Perl interface to Git
|
Summary: Perl interface to Git
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
BuildRequires: perl(Error), perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(Error), perl(ExtUtils::MakeMaker)
|
||||||
Requires: perl(Error)
|
Requires: perl(Error)
|
||||||
@ -346,9 +290,7 @@ Perl interface to Git.
|
|||||||
%package -n perl-Git-SVN
|
%package -n perl-Git-SVN
|
||||||
Summary: Perl interface to Git::SVN
|
Summary: Perl interface to Git::SVN
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
@ -360,12 +302,8 @@ Perl interface to Git.
|
|||||||
Summary: Git version control system support for Emacs
|
Summary: Git version control system support for Emacs
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: emacs(bin) >= %{_emacs_version}
|
Requires: emacs(bin) >= %{_emacs_version}
|
||||||
%else
|
|
||||||
Requires: emacs-common
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n emacs-git
|
%description -n emacs-git
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -373,9 +311,7 @@ Requires: emacs-common
|
|||||||
%package -n emacs-git-el
|
%package -n emacs-git-el
|
||||||
Summary: Elisp source files for git version control system support for Emacs
|
Summary: Elisp source files for git version control system support for Emacs
|
||||||
Group: Applications/Editors
|
Group: Applications/Editors
|
||||||
%if %{noarch_sub}
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
Requires: emacs-git = %{version}-%{release}
|
Requires: emacs-git = %{version}-%{release}
|
||||||
|
|
||||||
%description -n emacs-git-el
|
%description -n emacs-git-el
|
||||||
@ -397,37 +333,23 @@ Requires: gnome-keyring
|
|||||||
# Verify GPG signatures
|
# Verify GPG signatures
|
||||||
gpghome="$(mktemp -qd)" # Ensure we don't use any existing gpg keyrings
|
gpghome="$(mktemp -qd)" # Ensure we don't use any existing gpg keyrings
|
||||||
key="%{SOURCE9}"
|
key="%{SOURCE9}"
|
||||||
|
src="%{SOURCE0}"
|
||||||
# Ignore noisy output from GnuPG 2.0, used on EL <= 7
|
# Ignore noisy output from GnuPG 2.0, used on EL <= 7
|
||||||
# https://bugs.gnupg.org/gnupg/issue1555
|
# https://bugs.gnupg.org/gnupg/issue1555
|
||||||
gpg2 --dearmor --quiet --batch --yes $key >/dev/null
|
gpg2 --dearmor --quiet --batch --yes $key >/dev/null
|
||||||
for src in %{SOURCE0} %{SOURCE1} %{SOURCE2}; do
|
|
||||||
# Upstream signs the uncompressed tarballs
|
# Upstream signs the uncompressed tarballs
|
||||||
tar=${src/%.xz/}
|
tar=${src/%.xz/}
|
||||||
xz -dc $src > $tar
|
xz -dc $src > $tar
|
||||||
gpgv2 --homedir "$gpghome" --quiet --keyring $key.gpg $tar.sign $tar
|
gpgv2 --homedir "$gpghome" --quiet --keyring $key.gpg $tar.sign $tar
|
||||||
rm -f $tar
|
rm -rf "$tar" "$gpghome" # Cleanup tar files and tmp gpg home dir
|
||||||
done
|
|
||||||
rm -rf "$gpghome" # Cleanup tmp gpg home dir
|
|
||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%if %{emacs_old}
|
|
||||||
%patch3 -p1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Remove git-archimport from command list
|
# Remove git-archimport from command list
|
||||||
sed -i '/^git-archimport/d' command-list.txt
|
sed -i '/^git-archimport/d' command-list.txt
|
||||||
|
|
||||||
%if %{use_prebuilt_docs}
|
|
||||||
mkdir -p prebuilt_docs/{html,man}
|
|
||||||
xz -dc %{SOURCE1} | tar xf - -C prebuilt_docs/html
|
|
||||||
xz -dc %{SOURCE2} | tar xf - -C prebuilt_docs/man
|
|
||||||
# Remove non-html files
|
|
||||||
find prebuilt_docs/html -type f ! -name '*.html' | xargs rm
|
|
||||||
find prebuilt_docs/html -type d | xargs rmdir --ignore-fail-on-non-empty
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Use these same options for every invocation of 'make'.
|
# Use these same options for every invocation of 'make'.
|
||||||
# Otherwise it will rebuild in %%install due to flags changes.
|
# Otherwise it will rebuild in %%install due to flags changes.
|
||||||
cat << \EOF > config.mak
|
cat << \EOF > config.mak
|
||||||
@ -450,11 +372,6 @@ EOF
|
|||||||
echo gitexecdir = %{_bindir} >> config.mak
|
echo gitexecdir = %{_bindir} >> config.mak
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{docbook_suppress_sp}
|
|
||||||
# This is needed for 1.69.1-1.71.0
|
|
||||||
echo DOCBOOK_SUPPRESS_SP = 1 >> config.mak
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Filter bogus perl requires
|
# Filter bogus perl requires
|
||||||
# packed-refs comes from a comment in contrib/hooks/update-paranoid
|
# packed-refs comes from a comment in contrib/hooks/update-paranoid
|
||||||
# YAML::Any is optional and not available on el5
|
# YAML::Any is optional and not available on el5
|
||||||
@ -468,11 +385,7 @@ echo DOCBOOK_SUPPRESS_SP = 1 >> config.mak
|
|||||||
cat << \EOF > %{name}-req
|
cat << \EOF > %{name}-req
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
%{__perl_requires} $* |\
|
%{__perl_requires} $* |\
|
||||||
sed \
|
sed -e '/perl(packed-refs)/d'
|
||||||
%if %{filter_yaml_any}
|
|
||||||
-e '/perl(YAML::Any)/d' \
|
|
||||||
%endif
|
|
||||||
-e '/perl(packed-refs)/d'
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
||||||
@ -481,7 +394,7 @@ chmod +x %{__perl_requires}
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} all
|
make %{?_smp_mflags} all
|
||||||
%if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
%if ! 0%{?_without_docs}
|
||||||
make %{?_smp_mflags} doc
|
make %{?_smp_mflags} doc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -503,17 +416,13 @@ sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make %{?_smp_mflags} INSTALLDIRS=vendor install
|
make %{?_smp_mflags} INSTALLDIRS=vendor install
|
||||||
%if ! %{use_prebuilt_docs} && ! 0%{?_without_docs}
|
%if ! 0%{?_without_docs}
|
||||||
make %{?_smp_mflags} INSTALLDIRS=vendor install-doc
|
make %{?_smp_mflags} INSTALLDIRS=vendor install-doc
|
||||||
%else
|
%else
|
||||||
cp -a prebuilt_docs/man/* %{buildroot}%{_mandir}
|
cp -a prebuilt_docs/man/* %{buildroot}%{_mandir}
|
||||||
cp -a prebuilt_docs/html/* Documentation/
|
cp -a prebuilt_docs/html/* Documentation/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{emacs_old}
|
|
||||||
%global _emacs_sitelispdir %{_datadir}/emacs/site-lisp
|
|
||||||
%global _emacs_sitestartdir %{_emacs_sitelispdir}/site-start.d
|
|
||||||
%endif
|
|
||||||
%global elispdir %{_emacs_sitelispdir}/git
|
%global elispdir %{_emacs_sitelispdir}/git
|
||||||
make -C contrib/emacs install \
|
make -C contrib/emacs install \
|
||||||
emacsdir=%{buildroot}%{elispdir}
|
emacsdir=%{buildroot}%{elispdir}
|
||||||
@ -540,9 +449,7 @@ install -pm 755 contrib/credential/netrc/git-credential-netrc \
|
|||||||
%{buildroot}%{gitcoredir}
|
%{buildroot}%{gitcoredir}
|
||||||
|
|
||||||
make -C contrib/subtree install
|
make -C contrib/subtree install
|
||||||
%if ! %{use_prebuilt_docs}
|
|
||||||
make -C contrib/subtree install-doc
|
make -C contrib/subtree install-doc
|
||||||
%endif
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
|
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
|
||||||
install -pm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/httpd/conf.d/git.conf
|
install -pm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/httpd/conf.d/git.conf
|
||||||
@ -582,15 +489,9 @@ mkdir -p %{buildroot}%{_unitdir}
|
|||||||
cp -a %{SOURCE15} %{SOURCE16} %{buildroot}%{_unitdir}
|
cp -a %{SOURCE15} %{SOURCE16} %{buildroot}%{_unitdir}
|
||||||
%else
|
%else
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
|
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
|
||||||
# On EL <= 5, xinetd does not enable IPv6 by default
|
|
||||||
enable_ipv6=" # xinetd does not enable IPv6 by default
|
|
||||||
flags = IPv6"
|
|
||||||
perl -p \
|
perl -p \
|
||||||
-e "s|\@GITCOREDIR\@|%{gitcoredir}|g;" \
|
-e "s|\@GITCOREDIR\@|%{gitcoredir}|g;" \
|
||||||
-e "s|\@BASE_PATH\@|%{_localstatedir}/lib/git|g;" \
|
-e "s|\@BASE_PATH\@|%{_localstatedir}/lib/git|g;" \
|
||||||
%if %{enable_ipv6}
|
|
||||||
-e "s|^}|$enable_ipv6\n$&|;" \
|
|
||||||
%endif
|
|
||||||
%{SOURCE11} > %{buildroot}%{_sysconfdir}/xinetd.d/git
|
%{SOURCE11} > %{buildroot}%{_sysconfdir}/xinetd.d/git
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -617,11 +518,7 @@ install -pm 644 contrib/completion/git-prompt.sh \
|
|||||||
%{buildroot}%{_datadir}/git-core/contrib/completion/
|
%{buildroot}%{_datadir}/git-core/contrib/completion/
|
||||||
|
|
||||||
# install git-gui .desktop file
|
# install git-gui .desktop file
|
||||||
desktop-file-install \
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
|
||||||
%if %{desktop_vendor_tag}
|
|
||||||
--vendor fedora \
|
|
||||||
%endif
|
|
||||||
--dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
|
|
||||||
|
|
||||||
# find translations
|
# find translations
|
||||||
%find_lang %{name} %{name}.lang
|
%find_lang %{name} %{name}.lang
|
||||||
@ -695,7 +592,7 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%files -f bin-man-doc-git-files
|
%files -f bin-man-doc-git-files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%if 0%{?fedora} >= 16 || 0%{?rhel} >= 7
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
||||||
%{elispdir}
|
%{elispdir}
|
||||||
%{_emacs_sitestartdir}/git-init.el
|
%{_emacs_sitestartdir}/git-init.el
|
||||||
%endif
|
%endif
|
||||||
@ -829,6 +726,9 @@ rm -rf %{buildroot}
|
|||||||
# No files for you!
|
# No files for you!
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 01 2017 Todd Zullinger <tmz@pobox.com>
|
||||||
|
- Remove EL-5 and old Fedora conditionals
|
||||||
|
|
||||||
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 2.13.3-3
|
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 2.13.3-3
|
||||||
- Rebuild with binutils fix for ppc64le (#1475636)
|
- Rebuild with binutils fix for ppc64le (#1475636)
|
||||||
|
|
||||||
|
4
sources
4
sources
@ -1,6 +1,2 @@
|
|||||||
SHA512 (git-2.13.3.tar.sign) = 82d7379ac88b5c0762cdabf980a302e0acd7fa1d2426a3067c008ce87d79161853e8188ee15f10a1c2900f5d232591fc00c185de0a43012fd142459851ca28e5
|
SHA512 (git-2.13.3.tar.sign) = 82d7379ac88b5c0762cdabf980a302e0acd7fa1d2426a3067c008ce87d79161853e8188ee15f10a1c2900f5d232591fc00c185de0a43012fd142459851ca28e5
|
||||||
SHA512 (git-2.13.3.tar.xz) = 8a8db4d675c9d8d0e834620c5c7ce7937edd7f4bf1d8a176e1218e5773960e2635c48cb931dfe206b237e2da8371e521acf9c2776847605bea13f8a7304c9f9b
|
SHA512 (git-2.13.3.tar.xz) = 8a8db4d675c9d8d0e834620c5c7ce7937edd7f4bf1d8a176e1218e5773960e2635c48cb931dfe206b237e2da8371e521acf9c2776847605bea13f8a7304c9f9b
|
||||||
SHA512 (git-htmldocs-2.13.3.tar.sign) = c4cf6cde3f1c3345f9279b4310b277c099b723f2ac22242eadef32ead67810805a965a1657bb7a1ea4dd5f2fdfba7a481ac32adf0d9c1a5d673f5844239a4883
|
|
||||||
SHA512 (git-htmldocs-2.13.3.tar.xz) = 6ac9bd2f401bc3330d5a23a4f48afbe224c6d558154281737f6cd83b8ae6b73c32e7fcb491c642f926a9c5f95019964cbe7902c0ec18456b53847fd6c3b7e292
|
|
||||||
SHA512 (git-manpages-2.13.3.tar.sign) = 7911827da65381ae3daaca653085e6319320b8b310092b93b889101222976ffcf84e68be45c9e42f9eb393eb7fe73c2e2a871abe333222db5fac3157fe5d7470
|
|
||||||
SHA512 (git-manpages-2.13.3.tar.xz) = 9c81335f3d882df1220801ea6fdedea90533c904a1e4dd0394b42721aa31392e6c923568a81c05479fe77a89a974e02fd40b4bcff397c4f739306ba4cb874501
|
|
||||||
|
Loading…
Reference in New Issue
Block a user