File smb4k.spec of Package smb4k

#
# spec file for package smb4k (Version 0.10.4)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           smb4k
Url:            http://smb4k.berlios.de/
Version:        0.10.4
Release:        1
Summary:        Extended SMB and CIFS Share Browser for KDE
License:        GPL v2 or later
Group:          Productivity/Networking/Samba
BuildRequires:  kdebase4-workspace-devel libkde4-devel
%if 0%{?suse_version} < 1010  
BuildRequires:  update-desktop-files
%endif  
%if 0%{?suse_version} > 1020  
BuildRequires:  fdupes
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         %{name}-%{version}.tar.bz2
Requires:       kdebase4-runtime
Requires:       %{name}-lang = %version
Recommends:     %{name}-doc = %version
Provides:       kde4-smb4k = 0.10.2
Obsoletes:      kde4-smb4k <= 0.10.2

%description
Smb4K is a more extensive share browser than the standard KDE network
browser (via smb:/ slave). It has a larger number of features and is
also designed as an administrator tool.



Authors:
--------
    Alexander Reinholdt <dustpuppy@mail.berlios.de>

%lang_package
%prep
%setup -q -n %{name}-%{version}

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall
%suse_update_desktop_file -r %{name} System Network
cd ..
%find_lang %{name} --without-kde
%if 0%{?suse_version} > 1020  
%fdupes -s %buildroot  
%endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files lang -f %{name}.lang

%files
%defattr(-,root,root)
/usr/share/applications/kde4/smb4k.desktop
/usr/share/kde4/*
/usr/%_lib/kde4/libsmb4kconfigdialog.so
/usr/%_lib/kde4/libsmb4knetworkbrowser.so
/usr/%_lib/kde4/libsmb4ksearchdialog.so
/usr/%_lib/kde4/libsmb4ksharesview.so
/usr/%_lib/libsmb4kdialogs.so
/usr/%_lib/libsmb4kcore.so.*
/usr/bin/smb4k
/usr/bin/smb4k_mount
/usr/bin/smb4k_umount
/usr/bin/smb4k_kill
/usr/bin/smb4k_sudowriter
/usr/share/icons/*

%package devel
License:        GPL v2 or later
Summary:        Extended SMB and CIFS Share Browser for KDE
Requires:       %name = %version
Requires:       libkde4-devel
Group:          Development/Libraries/C and C++

%description devel
Smb4K is a more extensive share browser than the standard KDE network
browser (via smb:/ slave). It has a larger number of features and is
also designed as an administrator tool.



Authors:
--------
    Alexander Reinholdt <dustpuppy@mail.berlios.de>

%files devel
%defattr(-,root,root)
/usr/%_lib/libsmb4kcore.so
/usr/include/*

%package doc
License:        GPL v2 or later
Summary:        Extended SMB and CIFS Share Browser for KDE
Requires:       %name = %version
Group:          Productivity/Networking/Samba

%description doc
Smb4K is a more extensive share browser than the standard KDE network
browser (via smb:/ slave). It has a larger number of features and is
also designed as an administrator tool.



Authors:
--------
    Alexander Reinholdt <dustpuppy@mail.berlios.de>

%files doc
%defattr(-,root,root)
%lang(en) /usr/share/doc/*

%changelog
openSUSE Build Service is sponsored by