Browse Source

subversion add gnome-keyring option

Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64lebuilder0 6 years ago
parent
commit
80329a8ff5
  1. 9
      SPECS/subversion.spec

9
SPECS/subversion.spec

@ -3,6 +3,7 @@


%global _hardened_build 1 %global _hardened_build 1


%define with_gnomekeyring 0
%define with_java 0 %define with_java 0
%define with_kwallet 0 %define with_kwallet 0


@ -106,6 +107,7 @@ Requires: apr-devel%{?_isa}, apr-util-devel%{?_isa}
The subversion-devel package includes the libraries and include files The subversion-devel package includes the libraries and include files
for developers interacting with the subversion package. for developers interacting with the subversion package.


%if %{with_gnomekeyring}
%package gnome %package gnome
Group: Development/Tools Group: Development/Tools
Summary: GNOME Keyring support for Subversion Summary: GNOME Keyring support for Subversion
@ -115,6 +117,7 @@ BuildRequires: libgnome-keyring-devel, dbus-devel
%description gnome %description gnome
The subversion-gnome package adds support for storing Subversion The subversion-gnome package adds support for storing Subversion
passwords in the GNOME Keyring. passwords in the GNOME Keyring.
%endif


%if %{with_kwallet} %if %{with_kwallet}
%package kde %package kde
@ -242,7 +245,9 @@ export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} CFLAGS="$RPM_OPT_FLAGS"
--disable-static --with-sasl=%{_prefix} \ --disable-static --with-sasl=%{_prefix} \
--disable-neon-version-check \ --disable-neon-version-check \
--with-libmagic=%{_prefix} \ --with-libmagic=%{_prefix} \
%if %{with_gnomekeyring}
--with-gnome-keyring \ --with-gnome-keyring \
%endif
%if %{with_java} %if %{with_java}
--enable-javahl \ --enable-javahl \
--with-junit=%{_prefix}/share/java/junit.jar \ --with-junit=%{_prefix}/share/java/junit.jar \
@ -452,16 +457,20 @@ rm -rf ${RPM_BUILD_ROOT}
%if %{with_kwallet} %if %{with_kwallet}
%exclude %{_libdir}/libsvn_auth_kwallet* %exclude %{_libdir}/libsvn_auth_kwallet*
%endif %endif
%if %{with_gnomekeyring}
%exclude %{_libdir}/libsvn_auth_gnome* %exclude %{_libdir}/libsvn_auth_gnome*
%endif


%files python %files python
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/svn %{python_sitearch}/svn
%{python_sitearch}/libsvn %{python_sitearch}/libsvn


%if %{with_gnomekeyring}
%files gnome %files gnome
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libsvn_auth_gnome_keyring-*.so.* %{_libdir}/libsvn_auth_gnome_keyring-*.so.*
%endif


%if %{with_kwallet} %if %{with_kwallet}
%files kde %files kde

Loading…
Cancel
Save