File libbtctl.spec of Package libbtctl
#
# spec file for package libbtctl (Version 0.10.0)
#
# 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/
#
Name: libbtctl
%define DISTRIBUTABLE 1
%define USE_MONO 0
BuildRequires: bluez-devel fdupes gtk-doc gtk2-devel intltool openobex-devel perl-XML-Parser python-devel python-gtk-devel sgml-skel update-desktop-files
%if %USE_MONO == 1
BuildRequires: gtk-sharp gtk-sharp-gapi mono-basic mono-data-sqlite mono-devel
%endif
%if %DISTRIBUTABLE == 0
BuildRequires: mpeg4ip-devel
%endif
License: GPL v2 or later
Group: System/GUI/GNOME
AutoReqProv: on
Version: 0.10.0
Release: 60
Summary: GObject Bluetooth Controller Library
Url: http://usefulinc.com/software/gnome-bluetooth/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.8/%{name}-%{version}.tar.bz2
Patch: libbtctl-bluez4.patch
Requires: %{name}-lang = %{version}
%description
This library is intended to provide convenient GObject-style access
tocommon platform Bluetooth functions. The idea of this library is to
stand alone and not require GNOME. It provides .NET bindings (in a
separate package) and Python bindings.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%package -n libbtctl4
License: LGPL v2.1 only
Summary: GObject Bluetooth Controller Library
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description -n libbtctl4
This library is intended to provide convenient GObject-style access
tocommon platform Bluetooth functions. The idea of this library is to
stand alone and not require GNOME. It provides .NET bindings (in a
separate package) and Python bindings.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%package -n python-libbtctl
License: LGPL v2.1 only
Summary: GObject Bluetooth Controller Library
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%py_requires
%description -n python-libbtctl
This library is intended to provide convenient GObject-style access
tocommon platform Bluetooth functions. The idea of this library is to
stand alone and not require GNOME. It provides .NET bindings (in a
separate package) and Python bindings.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%if %USE_MONO == 1
%package sharp
License: GPL v2 or later
Summary: .NET Bindings for GObject Bluetooth Controller Library
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description sharp
This package contains .NET bindings for libbtctl - GObject Bluetooth
Controller Library.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%endif
%package devel
License: GPL v2 or later
Summary: Development Package for GObject Bluetooth Controller Library
Group: Development/Libraries/GNOME
Requires: libbtctl4 = %{version} glib2-devel bluez-devel openobex-devel
%description devel
This package contains all header files to develop with the GObject
Bluetooth Controller Library.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%package doc
License: GPL v2 or later
Summary: Additional Package Documentation
Group: System/GUI/GNOME
Requires: %{name} = %{version}
%description doc
This library is intended to provide convenient GObject-style access to
common platform Bluetooth functions.
The idea of this library is to stand alone and not require GNOME.
It provides .NET bindings (in a separate package) and Python bindings.
Authors:
--------
Edd Dumbill <edd@usefulinc.com>
%lang_package
%prep
%setup -q -n libbtctl-%{version}
%patch
%build
# needed for libbtctl-0.8.0:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: GTKDOC_CFLAGS, GST_OBJ_CFLAGS:
# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
%configure\
--disable-static
#%__make pydir=%{py_sitedir} %{?jobs:-j%jobs}
%__make pydir=%{py_sitedir}
%install
%makeinstall pydir=%{py_sitedir}
%find_lang %{name}
rm $RPM_BUILD_ROOT%{py_sitedir}/*.*a
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libbtctl4 -p /sbin/ldconfig
%postun -n libbtctl4 -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README
%files -n libbtctl4
%defattr(-, root, root)
%{_libdir}/*.so.4*
%files -n python-libbtctl
%defattr(-, root, root)
%{py_sitedir}/btctl.so
%files lang -f %{name}.lang
%files devel
%defattr(-, root, root)
%{_includedir}/libbtctl
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/libbtctl.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/libbtctl
%if %USE_MONO == 1
%files sharp
%defattr(-, root, root)
%{_datadir}/gapi/*.xml
%{_libdir}/pkgconfig/libbtctl-sharp.pc
%{_prefix}/lib/mono/gac/*
%{_prefix}/lib/mono/libbtctl
%endif
%changelog
* Wed Sep 17 2008 ro@suse.de
- change hci_remote_name to hci_read_remote_name
* Tue Sep 16 2008 ro@suse.de
- fix requires for devel package
* Mon Sep 15 2008 dmueller@suse.de
- adjust buildrequires
* Tue Apr 01 2008 rodrigo@suse.de
- Update to version 0.10.0:
* Up the OpenObex requirements
* Fix the name of the DLL in the libbtctl-sharp pkg-config file
* Fix a few build warnings
* Fri Oct 26 2007 ro@suse.de
- disable parallel make for the moment, breaks at least on x86_64
* Thu Oct 25 2007 jpr@suse.de
- Update to libbtctl 0.9
* Fix devices not being discovered in the choosers with newer bluez libraries
* Fix sending files to some devices which expect a clean disconnection
* Avoid warnings when a new file is sent to gnome-obex-server
* Fix crashes in the Mono bindings, and install them in the right place
for newer Mono versions
* Build fixes
* Update the Python bindings to the new API
* Update the API documentation
* Misc. fixes
-Split off libbtctl4 and python-libbtctl packages
* Tue Aug 07 2007 maw@suse.de
- Use %%fdupes
- Split off a -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Tue Feb 13 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552#c17).
* Mon Feb 12 2007 aj@suse.de
- Disable build of sharp package (#244537).
* Thu Feb 08 2007 ro@suse.de
- added defattr to the remaining subpackages
* Thu Jan 18 2007 sbrabec@suse.cz
- Do not require gtk-sharp-gapi for runtime (#229984).
* Tue Dec 19 2006 sbrabec@suse.cz
- Spec file cleanup.
* Mon Dec 18 2006 maw@suse.de
- Move to /usr.
* Wed Sep 20 2006 jhargadon@suse.de
- update to version 0.8.0
- Allow the Python bindings to access the data received via Obex
- Fix compilation with newer versions of OpenObex
- Add more error reporting for btctl_controller_discover_devices() and
btctl_controller_scan_for_service()
- Fix receiving via Obex not working with broken client software
* Fri Aug 18 2006 aj@suse.de
- Reduce BuildRequires.
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Wed Aug 16 2006 ro@suse.de
- added python-gobject2-devel to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 19 2005 ro@suse.de
- added missing symlink to filelist in sharp package
* Tue Nov 29 2005 sbrabec@suse.cz
- Updated to version 0.6.0.
* Tue Nov 08 2005 sbrabec@suse.cz
- Ignore strict aliasing problems of Py_True and Py_False in PLUS.
* Wed Nov 02 2005 sbrabec@suse.cz
- Updated to version 0.5.0.
- Split sharp subpackage.
* Wed Jun 01 2005 sbrabec@suse.cz
- Fixed devel requirements.
* Wed Nov 24 2004 ro@suse.de
- use macro for python version number
* Mon Nov 22 2004 ro@suse.de
- use autoreconf
* Sun Sep 05 2004 ro@suse.de
- compile python-stuff with no-strict-aliasing
* Thu Sep 02 2004 hhetter@suse.de
- build with python support and package btctl python module
(part of Bug #44638 )
* Fri Jul 30 2004 ro@suse.de
- update to 0.4.1 to make it build with current bluez
* Wed May 12 2004 behlert@suse.de
- removed bluez-sdp from neededforbuild, obsoleted by bluez-libs
version 2.7
- adapted *.m4-files to work with new bluez-libs
* Wed Jan 28 2004 hhetter@suse.de
- initial SUSE package