Accepting request 542209 from devel:tools:scm

OBS-URL: https://build.opensuse.org/request/show/542209
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=208
This commit is contained in:
Dominique Leuenberger 2017-11-19 10:10:40 +00:00 committed by Git OBS Bridge
parent 890007cdfd
commit 7d0792e5ae
2 changed files with 33 additions and 4 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Nov 9 18:46:12 UTC 2017 - jmatejek@suse.com
- split off p4 to a subpackage (bsc#1067502)
- do not buildrequire asciidoc (dependent on Python 2) when
not building docs
- switch to Python 3 for tests
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 6 15:47:22 CET 2017 - tiwai@suse.de Mon Nov 6 15:47:22 CET 2017 - tiwai@suse.de

View File

@ -25,6 +25,8 @@
%bcond_with git_gnome_keyring %bcond_with git_gnome_keyring
%endif %endif
%bcond_without docs
Name: git Name: git
Version: 2.15.0 Version: 2.15.0
Release: 0 Release: 0
@ -57,7 +59,9 @@ Patch8: git-asciidoc.patch
Patch9: git-gui-tclIndex.patch Patch9: git-gui-tclIndex.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: apache2 BuildRequires: apache2
%if %{with docs}
BuildRequires: asciidoc BuildRequires: asciidoc
%endif
BuildRequires: curl BuildRequires: curl
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gpg2 BuildRequires: gpg2
@ -72,7 +76,7 @@ BuildRequires: libsha1detectcoll-devel
%endif %endif
BuildRequires: pcre2-devel BuildRequires: pcre2-devel
BuildRequires: perl-Error BuildRequires: perl-Error
BuildRequires: python BuildRequires: python3
BuildRequires: sgml-skel BuildRequires: sgml-skel
BuildRequires: tcsh BuildRequires: tcsh
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
@ -177,6 +181,16 @@ Requires: git-core = %{version}
Tools for importing GNU Arch repositories to the GIT version control Tools for importing GNU Arch repositories to the GIT version control
system. system.
%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.
%package email %package email
Summary: Git tools for sending email Summary: Git tools for sending email
Group: Development/Tools/Version Control Group: Development/Tools/Version Control
@ -265,6 +279,7 @@ make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} > 1320
DC_SHA1_EXTERNAL=YesPlease \ DC_SHA1_EXTERNAL=YesPlease \
%endif %endif
PYTHON_PATH=%{_bindir}/python3 \
USE_LIBPCRE2=YesPlease \ USE_LIBPCRE2=YesPlease \
V=1 \ V=1 \
prefix=%{_prefix} mandir=%{_mandir} \ prefix=%{_prefix} mandir=%{_mandir} \
@ -305,9 +320,9 @@ install -m 644 %{S:6} $RPM_BUILD_ROOT/%{_fwdefdir}/git-daemon
### ###
./.make -C contrib/subtree install ./.make -C contrib/subtree install
%{!?_without_docs: ./.make -C contrib/subtree install-doc} %{!?_without_docs: ./.make -C contrib/subtree install-doc}
(find $RPM_BUILD_ROOT%{_bindir} -type f -o -type l | grep -vE "archimport|svn|cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files (find $RPM_BUILD_ROOT%{_bindir} -type f -o -type l | grep -vE "archimport|p4|svn|cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
(find $RPM_BUILD_ROOT%{gitexecdir} ! -type d | grep -vE "archimport|svn|cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) >> bin-man-doc-files (find $RPM_BUILD_ROOT%{gitexecdir} ! -type d | grep -vE "archimport|p4|svn|cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) >> bin-man-doc-files
(find $RPM_BUILD_ROOT%{_mandir} -type f | grep -vE "archimport|svn|git-cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files (find $RPM_BUILD_ROOT%{_mandir} -type f | grep -vE "archimport|p4|svn|git-cvs|email|gitk|git-daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
( pushd perl ( pushd perl
perl Makefile.PL perl Makefile.PL
make -f perl.mak DESTDIR=%{buildroot} install_vendor make -f perl.mak DESTDIR=%{buildroot} install_vendor
@ -417,6 +432,12 @@ fi
%{gitexecdir}/git-archimport %{gitexecdir}/git-archimport
%{!?_without_docs: %{_mandir}/man1/git-archimport.1*} %{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
%files p4
%defattr(-,root,root)
%{gitexecdir}/git-p4
%{gitexecdir}/mergetools/p4merge
%{!?_without_docs: %{_mandir}/man1/git-p4.1*}
%files email %files email
%defattr(-,root,root) %defattr(-,root,root)
%{gitexecdir}/*email* %{gitexecdir}/*email*