File kde3-basket.spec of Package kde3-basket

#
# spec file for package kde3-basket
#
# 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:           kde3-basket
BuildRequires:  kdelibs3-devel
%if %suse_version < 1120
BuildRequires:  kdepim3-devel
%endif
BuildRequires:  gpgme-devel
BuildRequires:  libassuan-devel
Url:            http://basket.kde.org/
Summary:        Extended Clipboard
License:        GPL-2.0+
Group:          System/X11/Utilities
Version:        1.0.3.1
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define rversion 1.0.3.1
Source0:        basket-%{rversion}.tar.bz2
Patch1:         kdepim-enterprise.diff
Patch2:         basket-gcc43.diff
Patch3:         fix-desktop-file.diff
Patch4:         basket-gcc47.patch
Provides:       basket = 1.0.3.1
Obsoletes:      basket <= 1.0.3.1

%description
BasKet can be used as a manual clipboard. This means that you can drop
files of all kinds inside. They can be grouped in different tabs.

It is also possible to add additional comments to the items or to use 
BasKet as a KDE clipboard replacement.

%prep
%setup -q -n basket-%rversion
%patch1
%patch2
%patch3
%patch4
. /etc/opt/kde3/common_options

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final --without-arts
do_make %{?jobs:-j %jobs}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%install
. /etc/opt/kde3/common_options
iconv -f iso8859-1 -t utf8 src/basket.desktop > w && mv w src/basket.desktop
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
# non-valid .desktop files
rm $RPM_BUILD_ROOT/opt/kde3/share/services/basket_config_features.desktop
rm $RPM_BUILD_ROOT/opt/kde3/share/services/basket_config_notes.desktop
%if %suse_version < 1120
rm $RPM_BUILD_ROOT/opt/kde3/share/services/kontact/basket_v4.desktop
%endif
%suse_update_desktop_file -G "Extended Clipboard" basket DesktopUtility
kde_post_install
%find_lang basket

%files -f basket.lang
%defattr(-,root,root)
%doc README COPYING AUTHORS
/opt/kde3/share/icons/*
/opt/kde3/bin/*
/opt/kde3/share/appl*/*/basket.desktop
/opt/kde3/share/apps/basket
/opt/kde3/%_lib/kde3/kcm_basket.*
/opt/kde3/%_lib/kde3/libbasketpart.*
/opt/kde3/%_lib/libbasketcommon.*
%if %suse_version < 1120
/opt/kde3/%_lib/kde3/libkontact_basket.*
%endif
/opt/kde3/%_lib/kde3/basketthumbcreator.*
%dir /opt/kde3/share/config/magic
/opt/kde3/share/config/magic/basket.magic
/opt/kde3/share/mimelnk/application/x-basket-archive.desktop
/opt/kde3/share/mimelnk/application/x-basket-template.desktop
/opt/kde3/share/services/basket*
%if %suse_version < 1120
%dir /opt/kde3/share/apps/kontact/ksettingsdialog
/opt/kde3/share/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg
%endif
%if %suse_version < 1120
/opt/kde3/share/services/kontact/basket.desktop
%endif

%changelog
openSUSE Build Service is sponsored by