File kdesvn.spec of Package kdesvn4

#
# spec file for package kdesvn
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           kdesvn
Version:        1.7.0
Release:        0
Summary:        KDE Subversion Client
License:        GPL-2.0+
Group:          Development/Tools/Version Control
Url:            http://kdesvn.alwins-world.de/
Source:         %{name}-%{version}.tar.xz
Patch0:         Do-not-install-svnqt-static-lib.patch
Patch1:         Remove-throw-specifier.patch
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  openldap2-devel
BuildRequires:  sqlite3-devel
BuildRequires:  subversion-devel
Recommends:     kio_svn
Provides:       kde4-kdesvn = %{version}
Obsoletes:      kde4-kdesvn < %{version}
Obsoletes:      libsvnqt7 < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{?kde4_runtime_requires}

%description
kdesvn is a GUI client for subversion repositories.

%prep
%autosetup -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  rm -rf %{buildroot}%{_kde4_servicesdir}/svn*.protocol
  %suse_update_desktop_file -G "SVN Client" %{name} Development RevisionControl
  %find_lang %{name}
  %fdupes -s %{buildroot}%{_datadir}
  %kde_post_install

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING.OpenSSL
%{_bindir}/kdesvn
%{_bindir}/kdesvnaskpass
%_kde4_modules/kded_kdesvnd.so
%_kde4_modules/kdesvnpart.so
%_kde4_modules/kio_ksvn.so
%{_datadir}/applications/kde4/kdesvn.desktop
%{_datadir}/dbus-1/interfaces/org.kde.kdesvnd.xml
%{_datadir}/icons/hicolor
%dir %{_datadir}/svnqt
%dir %{_datadir}/svnqt/i18n
%{_datadir}/svnqt/i18n/svnqt_*.qm
%_kde_share_dir/apps/kdesvn
%_kde_share_dir/apps/kdesvnpart
%_kde_share_dir/apps/kconf_update/kdesvn-use-external-update.sh
%_kde_share_dir/apps/kconf_update/kdesvnpartrc-use-external.upd
%_kde_share_dir/config.kcfg/kdesvn_part.kcfg
%_kde_share_dir/services/ServiceMenus/kdesvn_subversion.desktop
%_kde_share_dir/services/ServiceMenus/kdesvn_subversion_toplevel.desktop
%_kde_share_dir/services/kded/kdesvnd.desktop
%_kde_share_dir/services/kdesvnpart.desktop
%_kde_share_dir/services/ksvn*.protocol
%{_mandir}/man1/kdesvn*
%dir %{_mandir}/uk
%dir %{_mandir}/uk/man1
%{_mandir}/*/man1/kdesvn*

%changelog
openSUSE Build Service is sponsored by