File kdebluetooth.spec of Package kdebluetooth

#
# spec file for package kdebluetooth (Version 1.0_beta8)
#
# Copyright (c) 2008 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:           kdebluetooth
BuildRequires:  dbus-1-devel kdebase3-devel kdelibs3-devel kdepim3-devel obexftp-devel openobex-devel
%if %suse_version < 1010
BuildRequires:  kdepim3-sync
%endif
Url:            http://kde-bluetooth.sourceforge.net
License:        GPL v2 or later
Group:          Hardware/Other
Summary:        Bluetooth Support for KDE
Version:        1.0_beta8
Release:        171
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# svn2dist extragear-pim kdebluetooth 
Source0:        %name-%version.tar.bz2
Source1:        kbluetooth.default.sh
Requires:       bluez
Requires:       obexftp openobex
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif

%description
To exchange files and data easily via Bluetooth. * kbluetooth--a
   tray applet to handle incoming inquiries

* kbluemon--gui to discover remote devices

* kinputwizard--gui to set up bluetooth input devices

* kbluelock--locks the screen, when remote device disappears

* obexftp--to send files via bluetooth

* obex server to receive files without pairing

* obex push client, to send files without pairing



Authors:
--------
    Daniel Gollub <dgollub@suse.de>
    Tom Patzig <tpatzig@suse.de>
    Mattia Merzi <merzi@itc.it>
    Fred Schaettgen <kdebluetooth@schaettgen.de>
    Simone Gotti <motaboy@libero.it>

%package -n 	kdebluetooth-devel
License:        GPL v2 or later
Summary:        Header files and libraries for kdebluetooth
Group:          Hardware/Other
Requires:       kdebluetooth = %{version} 

%description -n kdebluetooth-devel
This package contains the header files and libraries for kdebluetooth.
If you like to develop programs using libkbluetooth, you will need to
install this package.



Authors:
--------
    Daniel Gollub <dgollub@suse.de>
    Tom Patzig <tpatzig@suse.de>
    Mattia Merzi <merzi@itc.it>
    Fred Schaettgen <kdebluetooth@schaettgen.de>
    Simone Gotti <motaboy@libero.it>

%lang_package
%prep
%setup -q -n %name-%version
. /etc/opt/kde3/common_options
update_admin # --no-unsermake

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

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
rm -rf $RPM_BUILD_ROOT/opt/kde3/share/icons/locolor
#rm -f  $RPM_BUILD_ROOT/opt/kde3/share/applnk/Application/kbtobexsrv.desktop
%suse_update_desktop_file -r kbluetooth     System Applet
%suse_update_desktop_file kbluelock
%suse_update_desktop_file kbtobexclient
%suse_update_desktop_file kinputwizard
%suse_update_desktop_file kbluemon
%suse_update_desktop_file kcm_btpaired
#%find_lang %name
#done
%find_lang kdebluetooth %name.lang
for file in $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/bluetooth/*.desktop; do
   %suse_update_desktop_file $file
done
#rm -r $RPM_BUILD_ROOT/opt/kde3/include
#rm $RPM_BUILD_ROOT/opt/kde3/%_lib/*.so 
rm $RPM_BUILD_ROOT/opt/kde3/%_lib/*.la
# Start kdebluetooth by suseplugger
rm $RPM_BUILD_ROOT/opt/kde3/share/autostart/kbluetooth.autostart.desktop
install -m 755 -D %{SOURCE1} $RPM_BUILD_ROOT/opt/kde3/env/kbluetooth.default.sh
kde_post_install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun
/sbin/ldconfig
%if %suse_version > 1020

%files lang -f %name.lang

%files
%else

%files -f %name.lang
%endif
%defattr(-,root,root)
%doc ChangeLog README
/opt/kde3/share/icons/*
#%dir /opt/kde3/share/applnk/Settings/Peripherals
/opt/kde3/bin/*
#/opt/kde3/sbin
#/opt/kde3/%_lib/libqobex.*
/opt/kde3/%_lib/kde3/*
#/opt/kde3/%_lib/kdebluetooth
#/opt/kde3/%_lib/libirmcsynckonnector.*
/opt/kde3/%_lib/libkbluetooth.so.*
/opt/kde3/%_lib/libqobex.so.*
/opt/kde3/%_lib/kdebluetooth
/opt/kde3/%_lib/kdebluetooth/servers
/opt/kde3/%_lib/kdebluetooth/servers/kbtobexsrv
/opt/kde3/share/services/kbluetooth_kbtobexsrv.sdp.xml
#%config(noreplace) /opt/kde3/share/config/obexrc
/opt/kde3/share/apps/*
/opt/kde3/share/mimelnk/bluetooth
#/opt/kde3/share/applnk/.hidden/*.desktop
/opt/kde3/share/appl*/*/*.desktop
#/opt/kde3/share/appl*/*/*/*.desktop
/opt/kde3/share/applnk/.hidden/kioobex_start.desktop
/opt/kde3/share/applnk/Settings/Network
/opt/kde3/share/applnk/Settings/Network/Bluetooth			    
/opt/kde3/share/applnk/Settings/Network/Bluetooth/.directory
# Start kdebluetooth by suseplugger
#/opt/kde3/share/autostart/kbluetooth.autostart.desktop
/opt/kde3/share/servicetypes/*.desktop
/opt/kde3/share/services/*.desktop
#/opt/kde3/share/services/*.xml
/opt/kde3/share/services/*.protocol
#/opt/kde3/share/services/kresources/konnector
/opt/kde3/share/desktop-directories/kde-settings-network-bluetooth.directory
/opt/kde3/env

%files -n kdebluetooth-devel
%defattr(-,root,root)
/opt/kde3/include/libkbluetooth
/opt/kde3/include/libkbluetooth/*
/opt/kde3/include/qobex
/opt/kde3/include/qobex/*
/opt/kde3/%_lib/libkbluetooth.so
/opt/kde3/%_lib/libqobex.so

%changelog
* Wed Sep 17 2008 ro@suse.de
- change requires bluez-utils to bluez
* Wed Sep 17 2008 ro@suse.de
- remove bluez-libs from requires
* Mon May 19 2008 tpatzig@suse.de
- fixed kblumon startup crash, when no BT adapter found (bnc#386413)
- removed gcc 4.3 fix, its in svn
* Tue Oct 23 2007 stbinner@suse.de
- fix build with gcc 4.3
* Tue Sep 18 2007 tpatzig@suse.de
- fixed wrong kbluetooth.default.sh for autostart issues
* Mon Sep 17 2007 tpatzig@suse.de
- update to version 1.0_beta8:
  * backport to kbluetoothd kio_obex module (#310145)
  * added wrapper classes for new obex-data-server
  * fixed config file to fix wrong autostart settings
* Wed Sep 12 2007 tpatzig@suse.de
- fixed wrong dbus bool type (#308910,#304321)
- fixed error msg, when no adapter present, now it turns in "offline mode" (#298958)
- also when the adapter gets removed it turns in off mode
* Tue Sep 11 2007 tpatzig@suse.de
- added kde_post_install to spec
* Fri Sep 07 2007 tpatzig@suse.de
- fixed usage of possibly empty char pointer(QCString),
  prevents crashes in several libkbluetooth methods
- fixed wrong categories in desktop files
- added check if dbus connection is NULL, prevents crash on startup
- added check if DefaultAdapter returns NULL, prevents crash on startup
* Wed Sep 05 2007 tpatzig@suse.de
- fixed chrashes when calling qstring::latin1()
* Mon Sep 03 2007 tpatzig@suse.de
- update to version 1.0_beta7
  * backport of obexsrv
  * backport of obexpush client
  * kbluelock can now also unlock your screen again
  * new icons for kbluelock, kbluemon, kinputwizard
  * added Ksystemtray notifications
  * kcm_btpaired also displays trusted devices
  * kbluetooth wont't startup without bt adapter (Fix #298958)
* Fri Aug 10 2007 tpatzig@suse.de
- bugfix to check if bluetooth adapter is found on startup, otherwise
  kbluetooth crashes
- removed kdebluetooth icons for kbluemon, kbluelock, kinputwizard
  because of KUniqueApplication issues
* Mon Aug 06 2007 tpatzig@suse.de
- changed subdir order to build libkobex before kbtobexsrv
- kdebluetooth-devel included
* Fri Aug 03 2007 tpatzig@suse.de
- changed kbluemon to not use periodicDiscovery as default
- changed kbluemon to not discover the sdp records as default
- integrated old kbtobexsrv to push files from remote device to PC
- look and feel updates
- bugfixes in kbluelock and kinputwizard
* Mon Jul 30 2007 tpatzig@suse.de
- update to kdebluetooth version 1.0-beta5
  * fixed crashes in the trayicon
  * some kinputwizard bugfixes
* Mon Jul 16 2007 dgollub@suse.de
- start kbluetooth on session startup if hcid is running
- update to kdebluetooth version 1.0-beta4
  * improved discovery of input devices in kinputwizard
  * fixed issues with starting of kinputzwizard
  * fixed several crashes with kinputwizard
  * fixed tray icon connection state
  * removed "Configure Services" item from kbluetooth
* Thu Jun 21 2007 stbinner@suse.de
- fix invalid .desktop files
* Mon Jun 11 2007 dgollub@suse.de
- updated to kdebluetooth version 1.00-beta3:
  * added input wizard for setup bluetooth input devices
  * added a bluetooth monitor to discover remote devices (kbluetmon)
  * added kbluelock which locks the screen if a certain bluetooth
  devices disappers
  * kbluetoothd got replaced by kbluetooth
  * kbluetooth acts as Passkey Agent and Authorzation Agent
  * kio_obex got replaced by kio_obex2 (USB support)
  * kio_sdp only shows supported services (#157888)
  * dropped kcm_obex
* Mon Jun 04 2007 stbinner@suse.de
- move kde_post_install
- fix build on older distributions
* Sat May 19 2007 coolo@suse.de
- fix duplicated macro call
* Tue May 15 2007 coolo@suse.de
- use %%find_lang
- split translations into special package
- remove development files
- make desktop files translatable
* Thu Nov 16 2006 dgollub@suse.de
- fixed race condition in registration of default passkey agent
- fixed wrong use of && operator (#219733)
* Tue Nov 07 2006 dgollub@suse.de
- request remote device name via dbus to avoid "n/a" as
  remote device name in pairing dialog
* Fri Nov 03 2006 dgollub@suse.de
- added dbus passkey agent
* Tue Oct 24 2006 stbinner@suse.de
- fix file globbing (kitchensync support gone)
* Thu Oct 19 2006 stbinner@suse.de
- work-around rpm madness to fix build
* Sun Sep 03 2006 dmueller@suse.de
- fix build after bluez-libs update
* Fri Sep 01 2006 dmueller@suse.de
- fix build for x86_64
* Thu Aug 24 2006 dmueller@suse.de
- update to r576598 :
  * fix various build issues
  * fixed "malformed URL" issue in kio modules (#171120)
  * kbluepin update for NIS/NFS environments
* Wed Jun 28 2006 coolo@suse.de
- update from SVN to include fix for #186564
* Wed May 31 2006 adrian@suse.de
- do not apply openobex patch for < 10.1
* Tue May 30 2006 adrian@suse.de
- fix build for < 10.1
* Wed May 17 2006 dmueller@suse.de
- fix build against openobex 1.2
* Thu Apr 13 2006 stbinner@suse.de
- update from SVN to include previously missing translations
  (no code changes except one upstream committed patch)
* Mon Mar 13 2006 dgollub@suse.de
- update kcm_btpaired module for new bluez linkkey format (#155013)
- remove kcm_btpaired-fix_paths.diff
* Tue Feb 14 2006 coolo@suse.de
- fix menu entry
- remove unused file
* Thu Feb 09 2006 stbinner@suse.de
- kcm: don't show (preventable) "DCOP error" message box (#72859)
* Sun Feb 05 2006 seife@suse.de
- fix the linkkey filename
* Fri Feb 03 2006 seife@suse.de
- fix paths to the bluetooth init script and the link keys.
* Fri Feb 03 2006 stbinner@suse.de
- fix "bluetooth serial chat does not display umlaute" (#74343)
- fix "no association for bluetooth serial setting" (#106316)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 21 2005 dmueller@suse.de
- fix file list
* Fri Dec 02 2005 stbinner@suse.de
- update to current svn
* Thu Oct 13 2005 stbinner@suse.de
- remove extra qualification for gcc 4.1
* Mon Sep 26 2005 stbinner@suse.de
- fixed a menu entry capitalization to be book title style
* Thu Sep 08 2005 stbinner@suse.de
- fix deletion of job confirmation
* Thu Sep 08 2005 stbinner@suse.de
- fix setting noadapter icon when adapter gets lost (#99688)
* Wed Aug 31 2005 adrian@suse.de
- fix menu entries
* Fri Aug 19 2005 coolo@suse.de
- fix file list for icons
* Tue Aug 16 2005 ro@suse.de
- removed hotplug from nfb
- add directories to filelist
* Sun Aug 14 2005 coolo@suse.de
- update to current svn (tons of fixes)
* Wed Apr 27 2005 adrian@suse.de
- update to current cvs
  * bemused amarok support
  * improved kitchensync plugin
* Mon Jan 31 2005 adrian@suse.de
- update to current cvs
  * handsfree does not exist anymore (kernel support is too experimental)
* Sat Jan 22 2005 ro@suse.de
- fix build with new kdepim
* Wed Dec 08 2004 adrian@suse.de
- update to current HEAD
  * does compile with KDE 3.4
  * new bt paired kcm module
* Wed Nov 17 2004 adrian@suse.de
- fix desktop file translation
* Sat Oct 02 2004 adrian@suse.de
- and fix the spec file :/
* Sat Oct 02 2004 adrian@suse.de
- disable output line every few seconds, when no BT adapter is active
* Sat Oct 02 2004 adrian@suse.de
- fix sdp service browsing
- fix lost connection on bluetooth restart
- hide menu entry for kbthandsfree, the lower bluetooth support
  for this isn't working often enough
* Wed Sep 29 2004 adrian@suse.de
- make kbluetoothd trayicon visible again
- no extra kcm menu for one entry
* Fri Sep 24 2004 adrian@suse.de
- remove unnessecary information popoup (#45991)
* Tue Sep 21 2004 adrian@suse.de
- add Hidden=true to the htoplug desktop file
  (hides it in kio_drives)
* Tue Sep 07 2004 adrian@suse.de
- add Requires: bluez-utils
* Sat Aug 21 2004 adrian@suse.de
- click on icons in kbtobexsrv opens file
- prepare hotplug start of kbluetoothd
- move menu items to better place
- rename menu items to some better understandable names
* Fri Aug 20 2004 adrian@suse.de
- update to current cvs
- enable existing translations
* Mon Jul 19 2004 adrian@suse.de
- update to current cvs
- enable kitchensync konnector and khandsfree
* Tue Jul 13 2004 adrian@suse.de
- update to current cvs
* Wed May 12 2004 behlert@suse.de
- removed bluez-sdp from needed for build, package is obsoleted
  by bluez-libs now
* Mon May 03 2004 adrian@suse.de
- package directories
* Sun May 02 2004 adrian@suse.de
- update to current cvs snapshot
* Thu Apr 15 2004 coolo@suse.de
- build without unsermake
* Mon Apr 05 2004 coolo@suse.de
- make it shutup (#37371)
* Thu Apr 01 2004 adrian@suse.de
- suppress permanent error messages
- do not start by default
- add Categories
* Wed Mar 31 2004 coolo@suse.de
- fix encoding (#37636)
* Mon Feb 16 2004 adrian@suse.de
- update to current snapshot 20040216
- hide kicker tray icon by default
* Wed Jan 28 2004 adrian@suse.de
- update to current snapshot 0.0.cvs20040124
* Tue Jan 27 2004 ro@suse.de
- added openobex-devel to neededforbuild
* Wed Jan 07 2004 adrian@suse.de
- package version 0.0.cvs20040107
- internal only package for evaluating
openSUSE Build Service is sponsored by