Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 3146dadca25e99af16825ffa2c2c19e6 > files > 3

kdebluetooth-1.0-0.beta1.2mdk.src.rpm

%define _requires_exceptions devel\(libbluetooth\)
%define name	kdebluetooth
%define version	1.0
%define release %mkrel 0.beta1.2

%define major	0
%define libname %mklibname %name %major
%define lib_name_orig libkdebluethooth

%define __libtoolize /bin/true
%define	_requires_exceptions devel(libGLcore)
%define	_requires_exceptions devel(libGL)

Name: 	 	%{name}
Summary: 	Access and control bluetooth devices in KDE
Version: 	%{version}
Release: 	%{release}

Source:		%{name}-%{version}_beta1.tar.bz2
URL:		http://kde-bluetooth.sourceforge.net/
License:	GPL
Group:		System/Configuration/Hardware
BuildRoot:	%{_tmppath}/%{name}-buildroot

Requires:	bluez-utils bluez-sdp, %libname = %version-%release

BuildRequires:	pkgconfig kdelibs-devel openobex-devel
BuildRequires:	bluez-devel bluez-sdp-devel arts-devel xmms-devel

Patch10:	kdebluetooth-1.0_fix_compile.patch.bz2

%description
The aim of this project is a tight and easy to use integration of Bluetooth
into the KDE desktop. You can manage your local Bluetooth devices and services
with it, browse your Bluetooth neighbourhood with konqueror and send and
receive files with just a few clicks. And that's not all you can do with it...

%package -n %libname-devel
%define _requires_exceptions devel\(libbluetooth\)
Group:		System/Configuration/Hardware
Summary:	Development for KDE Bluetooth
Requires:	%libname = %version-%release
Obsoletes:	kdebluetooth-devel

%description -n %libname-devel
The aim of this project is a tight and easy to use integration of Bluetooth
into the KDE desktop. You can manage your local Bluetooth devices and services
with it, browse your Bluetooth neighbourhood with konqueror and send and
receive files with just a few clicks. And that's not all you can do with it...


%package -n %libname
Group:      System/Configuration/Hardware
Summary:    Development for KDE Bluetooth
Requires:   %name
Provides:	%lib_name_orig = %version-%release
Provides:	kdebluetooth = %version-%release

%description -n %libname
The aim of this project is a tight and easy to use integration of Bluetooth
into the KDE desktop. You can manage your local Bluetooth devices and services
with it, browse your Bluetooth neighbourhood with konqueror and send and
receive files with just a few clicks. And that's not all you can do with it...

%prep
#%setup -q -n %name
%setup -q -n %{name}-%{version}_beta1
%patch10 -p1 -b .fix_compile

%build
export QTLIB=%{_prefix}/lib/qt3/%{_lib}

make -f Makefile.cvs

%configure2_5x 	--enable-final \
				--disable-rpath \
				--disable-debug \
				--enable-experimental \
				--enable-libsuffix=%{_lib}
	
#perl -p -i -e 's/openobex\/obex.h/obex.h/g' `find -name "*.h"`

cd %name
%make

%install
rm -rf $RPM_BUILD_ROOT
cd %name
%makeinstall_std

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
install -m 0644 kbluetoothd/kbluetoothd/icons/hi48-app-kbluetoothd.png $RPM_BUILD_ROOT/%_liconsdir/kbluetoothd.png
install -m 0644 kbluetoothd/kbluetoothd/icons/hi32-app-kbluetoothd.png $RPM_BUILD_ROOT/%_iconsdir/kbluetoothd.png
install -m 0644 kbluetoothd/kbluetoothd/icons/hi16-app-kbluetoothd.png $RPM_BUILD_ROOT/%_miconsdir/kbluetoothd.png
#install -m 0644 handsfree/icons/cr48-app-kbthandsfree.png $RPM_BUILD_ROOT/%_liconsdir/kbthandsfree.png
#install -m 0644 handsfree/icons/cr32-app-kbthandsfree.png $RPM_BUILD_ROOT/%_iconsdir/kbthandsfree.png
#install -m 0644 handsfree/icons/cr16-app-kbthandsfree.png $RPM_BUILD_ROOT/%_miconsdir/kbthandsfree.png

#menus
mkdir -p $RPM_BUILD_ROOT/%_menudir
kdedesktop2mdkmenu.pl %{name} .hidden %buildroot/%_datadir/applnk/.hidden/kioobex_start.desktop %buildroot/%_menudir/kioobex_start 

kdedesktop2mdkmenu.pl %{name} .hidden %buildroot/%_datadir/applications/kde/kbtobexsrv.desktop %buildroot/%_menudir/kbtobexsrv

#package(%{name}): command="kbtobexsrv" kde_command="kbtobexsrv -caption \"%c\" %i %m %u" icon="kdebluetooth.png" needs="x11" title="Bluetooth Obex Server" longtitle="Bluetooth Obex Server" section=".hidden"
#EOF

kdedesktop2mdkmenu.pl %{name} System/Configuration/Hardware %buildroot/%_datadir/applications/kde/kcm_kbluetoothd.desktop %buildroot/%_menudir/kcm_kbluetoothd kde

#kdedesktop2mdkmenu.pl %{name} System/Configuration/Hardware %buildroot/%_datadir/applications/kde/obex.desktop %buildroot/%_menudir/obex kde

#kdedesktop2mdkmenu.pl %{name} Office/Communications/Phone %buildroot/%_datadir/applications/kde/kbthandsfree.desktop %buildroot/%_menudir/kbthandsfree

kdedesktop2mdkmenu.pl %{name} "More Applications/Communications" %buildroot/%_datadir/applications/kde/kbtobexclient.desktop %buildroot/%_menudir/kbtobexclient

kdedesktop2mdkmenu.pl %{name} "More Applications/Communications" %buildroot/%_datadir/applications/kde/kbtserialchat.desktop %buildroot/%_menudir/kbtserialchat

#%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus
/sbin/ldconfig

%postun
%clean_menus
/sbin/ldconfig

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files -n %libname
%defattr(-,root,root)
%{_libdir}/kde3/*
%{_libdir}/libqobex.so.*
%{_libdir}/%name
%_libdir/libirmcsynckonnector.la
%_libdir/libirmcsynckonnector.so


%files
%defattr(-,root,root)
#%doc %{_docdir}/HTML/en/*
%{_bindir}/*
%{_sbindir}/qobexfbssrv



#%dir %{_datadir}/apps/kbthandsfree/
#%{_datadir}/apps/kbthandsfree/*
%dir %{_datadir}/apps/kbluetoothd/
%{_datadir}/apps/kbluetoothd/*
%{_datadir}/apps/%name
%dir %{_datadir}/apps/konqsidebartng/
%dir %{_datadir}/apps/konqsidebartng/virtual_folders/
%dir %{_datadir}/apps/konqsidebartng/virtual_folders/services/
%{_datadir}/apps/konqsidebartng/virtual_folders/services/*

%dir %{_datadir}/apps/kbtobexclient/
%{_datadir}/apps/kbtobexclient/*

%dir %{_datadir}/apps/konqueror/
%dir %{_datadir}/apps/konqueror/servicemenus/
%{_datadir}/apps/konqueror/servicemenus/*
%{_iconsdir}/*/*/*/*

%dir %{_datadir}/mimelnk/bluetooth/
%{_datadir}/mimelnk/bluetooth/*


%dir %{_datadir}/applnk/.hidden
%{_datadir}/applnk/.hidden/kioobex_start.desktop

%{_datadir}/applnk/Settings/Peripherals/obex.desktop
%{_datadir}/applnk/Settings/Network/Bluetooth

%_datadir/applnk/Utilities/dunhandler.desktop
%_datadir/applnk/Utilities/faxhandler.desktop


%{_datadir}/config/obexrc


%{_datadir}/servicetypes/*
%{_datadir}/services/*
%{_datadir}/autostart/*
%dir %{_datadir}/desktop-directories
%{_datadir}/desktop-directories/*

%{_menudir}/*
%{_datadir}/applications/kde/*.desktop

%{_liconsdir}/*.png
%{_iconsdir}/*.png
%{_miconsdir}/*.png

%files -n %libname-devel
%defattr(-,root,root)
%dir %{_includedir}/qobex/
%{_includedir}/qobex/*.h
%{_libdir}/libqobex.la
%{_libdir}/libqobex.so


%changelog
* Tue May 24 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-0.beta1.2mdk
- Drop Patch 0, 1, 2, 3 ( Merged Upstream )
- Fix files permissions
- Fix doc section

* Tue May 24 2005 Laurent MONTEL <lmontel@mandriva.com> 1.0-0.beta1.1
- 1.0beta1

* Wed Mar 09 2005 Buchan Milne <bgmilne@linux-mandrake.com> 0.0.cvs20041202-5mdk
- amarok support for kbemusedsrv (P1 from cvs)
- fix build with recent bluez libs (P2 from CVS)

* Tue Dec 28 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20041202-4mdk
- Fix install script bug found by Arnaud

* Tue Dec 21 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20041202-3mdk
- Fix obsolete

* Tue Dec 21 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20041202-2mdk
- Fix requires

* Thu Dec 02 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20041202-1mdk
- Update code from CVS

* Thu Dec 02 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040914-3mdk
- Fix spec file

* Mon Oct 18 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.0.cvs20040914-2mdk
- fix build

* Tue Sep 14 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040914-1mdk
- cvs 20040914

* Mon Aug 16 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040718-3mdk
- Rebuild with new menu

* Thu Jul 22 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040718-2mdk
- Fix tarball (add admin directory into package)

* Sun Jul 18 2004 Austin Acton <austin@mandrake.org> 0.0.cvs20040718-1mdk
- cvs 20040718
- configure 2.5
- disable-rpath

* Fri Jun 18 2004 Austin Acton <austin@mandrake.org> 0.0.cvs20040618-1mdk
- cvs 20040618

* Mon Jun 14 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040302-5mdk
- Rebuild

* Wed Mar  3 2004 nonotor <adelorbeau@mandrakesoft.com> 0.0.cvs20040302-4dk
- clean spec

* Tue Mar  2 2004 nonotor <adelorbeau@mandrakesoft.com> 0.0.cvs20040302-3mdk
- add requires bluez-sdp

* Tue Mar 02 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.0.cvs20040302-2mdk
- Fix spec file

* Tue Mar  2 2004 nonotor <adelorbeau@mandrakesoft.com> 0.0.cvs20040302-1mdk
- clean (Thanks Laurent)

* Mon Mar  1 2004 nonotor <adelorbeau@mandrakesoft.com> 0.0.cvs20040225-2mdk
- correction devel

* Wed Feb 25 2004 nonotor <adelorbeau@mandrakesoft.com> 0.0.cvs20040225-1mdk
- add mdk menu
- add devel
- cvs20040225

* Wed Jan 21 2004 Austin Acton <austin@mandrake.org> 0.0.cvs20040202-1mdk
- initial package