File kdesvn.spec of Package kdesvn

#
# spec file for package kdesvn
#
# Copyright (c) 2017 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:        2.0.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
# PATCH-FIX-UPSTREAM fix-startup.patch boo#1021486 -- fixes starting kdesvn from the application menu
Patch:          fix-startup.patch
# PATCH-FIX-UPSTREAM fix-crash.patch kde#375655 -- fixes crash when there's a '@' in the path
Patch1:         fix-crash.patch
# PATCH-FIX-UPSTREAM fix-crash-root-path.patch kde#383187 -- fix kded crash when the root path ('/') is checked for a working copy
Patch2:         fix-crash-root-path.patch
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  kbookmarks-devel
BuildRequires:  kconfig-devel
BuildRequires:  kconfigwidgets-devel
BuildRequires:  kcoreaddons-devel
BuildRequires:  kdbusaddons-devel
BuildRequires:  kdoctools-devel
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kio-devel
BuildRequires:  kitemviews-devel
BuildRequires:  kjobwidgets-devel
BuildRequires:  knotifications-devel
BuildRequires:  kparts-devel
BuildRequires:  kservice-devel
BuildRequires:  ktexteditor-devel
BuildRequires:  kwallet-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  openldap2-devel
BuildRequires:  pkgconfig
BuildRequires:  sqlite3-devel
BuildRequires:  subversion-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Widgets)
Provides:       kde4-kdesvn = %{version}
Obsoletes:      kde4-kdesvn < %{version}
Obsoletes:      libsvnqt7 < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
kdesvn is a GUI client for subversion repositories.

%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1

%build
  %cmake_kf5 -d build
  %make_jobs

%install
  %kf5_makeinstall -C build
  %suse_update_desktop_file -G "SVN Client" org.kde.kdesvn Development RevisionControl
  %find_lang %{name}
  %fdupes -s %{buildroot}%{_datadir}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING COPYING.OpenSSL
%dir %{_kf5_iconsdir}/hicolor/96x96
%dir %{_kf5_iconsdir}/hicolor/96x96/actions
%dir %{_kf5_iconsdir}/hicolor/96x96/places
%dir %{_kf5_htmldir}/pt_BR
%{_kf5_applicationsdir}/org.kde.kdesvn.desktop
%{_kf5_bindir}/kdesvn
%{_kf5_bindir}/kdesvnaskpass
%{_kf5_configkcfgdir}/
%{_kf5_dbusinterfacesdir}/kf5_org.kde.kdesvnd.xml
%doc %lang(nl) %{_kf5_htmldir}/nl/kdesvn/
%doc %lang(uk) %{_kf5_htmldir}/uk/kdesvn/
%doc %lang(de) %{_kf5_htmldir}/de/kdesvn/
%doc %lang(pt_BR) %{_kf5_htmldir}/pt_BR/kdesvn/
%doc %lang(sv) %{_kf5_htmldir}/sv/kdesvn/
%doc %lang(en) %{_kf5_htmldir}/en/kdesvn/
%{_kf5_iconsdir}/hicolor/*/*/*
%{_kf5_kxmlguidir}/kdesvn/
%{_kf5_plugindir}/kdesvnpart.so
%{_kf5_plugindir}/kf5/kded/kdesvnd.so
%{_kf5_plugindir}/kio_ksvn.so
%{_kf5_servicesdir}/*.desktop
%{_kf5_servicesdir}/*.protocol
%{_kf5_servicesdir}/ServiceMenus/
%{_kf5_sharedir}/dbus-1/services/org.kde.kdesvnd.service
%{_kf5_sharedir}/kconf_update/
%{_kf5_sharedir}/kdesvn/

%changelog
openSUSE Build Service is sponsored by