Accepting request 578902 from devel:tools:scm

- Create subpackage for libsecret credential helper. (forwarded request 578783 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/578902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=214
This commit is contained in:
Dominique Leuenberger 2018-02-23 14:28:45 +00:00 committed by Git OBS Bridge
parent 85d3f7f9bb
commit b6a179e197
2 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 21 12:19:29 UTC 2018 - fcrozat@suse.com
- Create subpackage for libsecret credential helper.
-------------------------------------------------------------------
Sun Feb 18 02:45:50 UTC 2018 - avindra@opensuse.org

View File

@ -30,6 +30,8 @@
%bcond_with git_gnome_keyring
%endif
%bcond_without git_libsecret
%bcond_without docs
Name: git
@ -73,6 +75,9 @@ BuildRequires: libexpat-devel
%if %{with git_gnome_keyring}
BuildRequires: libgnome-keyring-devel
%endif
%if %{with git_libsecret}
BuildRequires: libsecret-devel
%endif
BuildRequires: libopenssl-devel
%if 0%{?suse_version} > 1320
BuildRequires: libsha1detectcoll-devel
@ -176,6 +181,17 @@ Requires: gnome-keyring
A Git credential backend which uses the GNOME keyring as storage.
%endif
%if %{with git_libsecret}
%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.
%endif
%package arch
Summary: Git tools for importing Arch repositories
Group: Development/Tools/Version Control
@ -299,6 +315,9 @@ chmod 755 .make
%if %{with git_gnome_keyring}
./.make -C contrib/credential/gnome-keyring
%endif
%if %{with git_libsecret}
./.make -C contrib/credential/libsecret
%endif
./.make -C contrib/subtree/
%install
@ -340,6 +359,9 @@ install -m 644 -D contrib/completion/git-prompt.sh %{buildroot}/etc/bash_complet
%if %{with git_gnome_keyring}
install -m 755 -D contrib/credential/gnome-keyring/git-credential-gnome-keyring %{buildroot}/%{gitexecdir}/git-credential-gnome-keyring
%endif
%if %{with git_libsecret}
install -m 755 -D contrib/credential/libsecret/git-credential-libsecret %{buildroot}/%{gitexecdir}/git-credential-libsecret
%endif
# contrib/workdir
install -m 755 -D contrib/workdir/git-new-workdir %{buildroot}/%{_bindir}
# process tcsh completion
@ -427,6 +449,11 @@ fi
%{gitexecdir}/git-credential-gnome-keyring
%endif
%if %{with git_libsecret}
%files credential-libsecret
%{gitexecdir}/git-credential-libsecret
%endif
%files arch
%{gitexecdir}/git-archimport
%{!?_without_docs: %{_mandir}/man1/git-archimport.1*}