File kdesvn.spec of Package kdesvn

#
# spec file for package kdesvn
#
# Copyright (c) 2013 SUSE LINUX Products 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.6.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.bz2
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  openldap2-devel
BuildRequires:  sqlite3-devel
BuildRequires:  subversion-devel
Requires:       kio_svn
Provides:       kde4-kdesvn = %{version}
Obsoletes:      kde4-kdesvn < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
kdesvn is a GUI client for subversion repositories.

%define lname libsvnqt7
%package -n %{lname}
Summary:        KDE Subversion Client
Group:          Development/Tools/Version Control
%requires_ge    libqt4

%description -n %{lname}
kdesvn is a GUI client for subversion repositories.

%package -n libsvnqt-devel
Summary:        KDE Subversion Client
Group:          Development/Tools/Version Control
Requires:       %{lname} >= %{version}

%description -n libsvnqt-devel
kdesvn is a GUI client for subversion repositories.

%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  cd ..
  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

%post -n %{lname} -p /sbin/ldconfig

%postun -n %{lname} -p /sbin/ldconfig

%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
%_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*

%files -n libsvnqt-devel
%defattr(-,root,root)
%{_includedir}/svnqt
%{_libdir}/libsvnqt.so

%files -n %{lname}
%defattr(-,root,root)
%dir %{_datadir}/svnqt
%dir %{_datadir}/svnqt/i18n
%{_libdir}/libsvnqt.so.*
%{_datadir}/svnqt/i18n/svnqt_*.qm

%changelog
openSUSE Build Service is sponsored by