File kdesdk-kioslaves.spec of Package kdesdk-kioslaves4

#
# spec file for package kdesdk-kioslaves
#
# Copyright (c) 2015 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:           kdesdk-kioslaves
BuildRequires:  libkde4-devel
BuildRequires:  subversion-devel
Summary:        KDE SDK kioslaves Package
License:        GPL-2.0 and LGPL-2.0
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Version:        16.04.3
Release:        0
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix-build-with-newer-subversion.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This package suggests the packages, built from the kdesdk-kioslaves module.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%build
%ifarch ppc64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC"
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
  %cmake_kde4 -d build -- -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" 
  %make_jobs

%install
  cd build
  %makeinstall
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%package -n kio_svn
Summary:        KDE KIO-Slave for SVN
Group:          System/GUI/KDE
%kde4_runtime_requires
Provides:       kde4-kio_svn = 4.3.0
Obsoletes:      kde4-kio_svn < 4.3.0

%description -n kio_svn
This KDE KIO-Slave allows to browse SVN repositories in file managers.

%post -n kio_svn -p /sbin/ldconfig

%postun -n kio_svn -p /sbin/ldconfig

%files -n kio_svn
%defattr(-,root,root)
%doc COPYING COPYING.LIB
%{_kde4_modulesdir}/kio_perldoc.so
%{_kde4_appsdir}/kio_perldoc/
%{_kde4_servicesdir}/perldoc.protocol
%{_kde4_bindir}/kio_svn_helper
%{_kde4_modulesdir}/kded_ksvnd.so
%{_kde4_modulesdir}/kio_svn.so
%{_datadir}/dbus-1/interfaces/org.kde.ksvnd.xml
%{_kde4_iconsdir}/hicolor/*/actions/vcs-*
%{_kde4_servicesdir}/ServiceMenus/subversion.desktop
%{_kde4_servicesdir}/ServiceMenus/subversion_toplevel.desktop
%{_kde4_servicesdir}/svn*.protocol
%{_kde4_servicesdir}/kded/ksvnd.desktop

%changelog
openSUSE Build Service is sponsored by