File smb4k.spec of Package smb4k

#
# spec file for package smb4k
#
# Copyright (c) 2012 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:           smb4k
Version:        1.0.2
Release:        0
Summary:        Advanced Network Neighborhood Browser for KDE
License:        GPL-2.0+
Group:          Productivity/Networking/Samba
Url:            http://smb4k.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  libkde4-devel
Requires:       cifs-utils
Requires:       samba-client
Recommends:     %{name}-doc = %{version}
Recommends:     %{name}-lang = %{version}
Recommends:     rsync
# smb4k-devel was last used in openSUSE-11.4 (version 0.10.9)
Provides:       smb4k-devel = %{version}
Obsoletes:      smb4k-devel <= 0.10.9
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
Smb4K is an advanced network neighborhood browser for KDE and a frontend to the
programs of the Samba software suite. Its purpose is to provide a program
that's easy to use and has as many features as possible.

%package doc
Summary:        Documentation for smb4k
Group:          Documentation/HTML
Requires:       %{name} = %{version}

%description doc
Smb4K is an advanced network neighborhood browser for KDE and a frontend to the
programs of the Samba software suite. Its purpose is to provide a program
that's easy to use and has as many features as possible.

This package provides the documentation for smb4k.

%lang_package

%prep
%setup -q

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..

# Not needed, fix "devel-file-in-non-devel-package" rpmlint warning
rm -f %{buildroot}%{_kde4_libdir}/libsmb4kcore.so

%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE System Network
%endif

%fdupes -s %{buildroot}

%find_lang %{name}

%kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING ChangeLog README TODO
%{_kde4_applicationsdir}/smb4k.desktop
%{_kde4_appsdir}/kconf_update/*.sh
%{_kde4_appsdir}/kconf_update/smb4ksettings.upd
%{_kde4_appsdir}/smb4k/
%{_kde4_bindir}/smb4k
%{_kde4_configkcfgdir}/smb4k.kcfg
%{_kde4_iconsdir}/*/*/apps/smb4k.png
%{_kde4_libdir}/libsmb4kcore.so*
%{_kde4_libexecdir}/mounthelper
%{_kde4_libdir}/libsmb4ktooltips.so*
%{_kde4_modulesdir}/smb4k*.so
%config %{_sysconfdir}/dbus-1/system.d/de.berlios.smb4k.mounthelper.conf
%{_datadir}/dbus-1/system-services/de.berlios.smb4k.mounthelper.service
%{_datadir}/polkit-1/actions/de.berlios.smb4k.mounthelper.policy

%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/smb4k/

%files doc
%defattr(-,root,root,-)
%doc %lang(en) %{_kde4_htmldir}/en/smb4k/

%changelog
openSUSE Build Service is sponsored by