File obex-data-server.spec of Package obex-data-server

#
# spec file for package obex-data-server (Version 0.4.1)
#
# 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:           obex-data-server
BuildRequires:  dbus-1-glib-devel openobex-devel
Url:            http://www.bluez.org
Version:        0.4.1
Release:        1
Summary:        Obex DBus API
License:        GPL v2 or later
Group:          Hardware/Mobile
AutoReqProv:    on
# PATCH-FIX-UPSTREAM obex-data-server-unbreak-file-uris.patch bnc391820 rodrigo@novell.com
Patch:          obex-data-server-unbreak-file-uris.patch
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define prefix   /usr

%description
Obex-Data-Server provides a obex dbus api. Used for bluetooth
applications to transfer and receive data.



Authors:
--------
    Tadas Dailyda <tadas@dailyda.com>

%prep
%setup -q
%patch -p1

%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --with-dbus-dir=/usr/share/dbus-1
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_bindir}/obex-data-server
%dir %{_sysconfdir}/obex-data-server
%config %{_sysconfdir}/obex-data-server/*.xml
%{_mandir}/*/*
/usr/share/dbus-1/services/obex-data-server.service
%doc AUTHORS COPYING INSTALL ChangeLog dbus-api.txt NEWS

%changelog
* Sun Oct 26 2008 jpr@novell.com
- Update to 0.4.1, most importantly for bluez 4.x support
  * Fix a race condition when client app misses
  ServerSession.TransferStarted signal
  * Do not use g_assert for checking if DBus context is set in
  Session and ServerSession methods
  * Fix TransferStarted signal emission in ServerSession
  * Implement partial BIP profile support (ImagePush and
  RemoteDisplay features supported)
  * Add support for Bluez 4.x (still compatible with Bluez 3.x)
  * Add support for USB transport (only for Sessions ATM)
  * Add a way to cancel Session connection
  * FTP servers now expose a capability object
  * When creating new files, set permissions according to umask
  * Add a way to specify source Bluetooth adapter for Sessions
  * Let applications know about all sessions/servers running
  * Fix filename conversion to UTF-16 (bug introduced in 0.3.2)
  * Add manual page
  * Properly close sockets for Session and ServerSession objects
- Drop obex-server-bluez-libs-CVE-2008-2374.diff, its upstream
* Tue Sep 16 2008 ro@suse.de
- adapt CVE diff to bluez-4: function name back to original
  len paramer now also in sdp_extract_pdu
* Thu Jul 03 2008 tpatzig@suse.de
- update to v0.3.2
  * Reduce compiler warnings
  * Fix ServerSession Accept/Reject
  * Use different FTP UUID for some Nokia devices
  * Don't try to remove service record when it is not registered
  * Check OBEX Target header for FTP sessions
  * Disable FTP specific commands when OPP is used
  * Use UTF-8 filenames in folder listing objects
  * Improve OBEX error reporting
  * Fix crashers on exit
  * Portability fixes
  * Check connection ID for FTP session
  * Send empty Name header when using ChangeCurrentFolderToRoot
  * Don't try to access memory regions that were already freed
  Also fixes a long-standing segfault issue
* Wed Jul 02 2008 seife@suse.de
- added patch to adopt to API change in bluez libs caused by
  CVE-2008-2374 (bnc #404963)
* Tue May 27 2008 rodrigo@suse.de
- Added obex-data-server-unbreak-file-uris.patch to remove the
  file:// prefix from URIs, since those are not supported (bnc#391820)
* Thu Mar 06 2008 tpatzig@suse.de
- moved .service file to the right place (/usr/share/dbus-1/services)
- removed redundant dbus-1-devel buildrequires
* Thu Mar 06 2008 jpr@suse.de
- Fix dbus service file installation path
* Mon Mar 03 2008 tpatzig@suse.de
- update to v0.3
  * API change: Manager.CreateBluetoothServer(string source_address, string pattern, boolean require_pairing)
  * API change: Server.Start(string path, boolean allow_write, boolean auto_accept)
  * update ods-server-test.py according to new API
  * Remove some memory leaks
* Tue Feb 12 2008 tpatzig@suse.de
- update to v0.2
  * Distribute python tests (ods-session-test.py and ods-server-test.py).
  * Make object paths lowercase.
  * API change: Server.Start(string path, boolean allow_write, boolean require_pairing, boolean auto_accept).
  * New methods: Server.Accept(), Server.Reject().
  * Fix server SDP record lifetime (now exists between Start() and Stop()).
  * Make D-Bus system config file optional (enable with --enable-system-config configure option).
  * Exclude dot files from folder listings.
* Thu Feb 07 2008 tpatzig@suse.de
- initial package build
openSUSE Build Service is sponsored by