diff --git a/git.changes b/git.changes index bd540e6..7ab3c64 100644 --- a/git.changes +++ b/git.changes @@ -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 diff --git a/git.spec b/git.spec index b7f50de..1609b35 100644 --- a/git.spec +++ b/git.spec @@ -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*}