File openobex.spec of Package openobex
#
# spec file for package openobex (Version 1.3)
#
# Copyright (c) 2009 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: openobex
BuildRequires: bluez-devel glib2-devel libusb-devel pkg-config
License: GPL v2 or later ; LGPL v2.1 or later
Group: Development/Libraries/Other
Version: 1.3
Release: 160
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Url: http://openobex.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
Patch: openobex-svn.patch
Patch1: openobex-libusb-check.patch
Patch2: openobex-1.3-pkgconfig.patch
Patch3: 0001-fix-fd-leak.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OBEX is a session protocol and can best be described as a binary HTTP
protocol. OBEX is optimized for ad-hoc wireless links and can be used
to exchange all kind of objects, like files, pictures, calendar entries
(vCal), and business cards (vCard).
Authors:
--------
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Andy Choi <kc49@cornell.edu>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
%package apps
License: GPL v2 or later ; LGPL v2.1 or later
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Group: Productivity/Networking/Web/Utilities
%description apps
applications using obex libs.
Authors:
--------
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Andy Choi <kc49@cornell.edu>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
%package devel
License: GPL v2 or later
Summary: Development package for openobex
Group: Development/Libraries/Other
Requires: %{name} = %{version} glibc-devel
%description devel
Files needed for software development using openobex.
Authors:
--------
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Andy Choi <kc49@cornell.edu>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
%package glib
License: GPL v2 or later
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Group: Development/Libraries/Other
%description glib
GLib bindings for obex libs.
Authors:
--------
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Andy Choi <kc49@cornell.edu>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
%package glib-devel
License: GPL v2 or later
Summary: Development package for openobex
Group: Development/Libraries/Other
Requires: %{name}-glib = %{version} glib2-devel %{name}-devel = %{version}
%description glib-devel
Files needed for software development using openobex.
Authors:
--------
Dag Brattli <dagb@cs.uit.no>
Pontus Fuchs <pontus.fuchs@tactel.se>
Fons Botman <budely@tref.nl>
Andy Choi <kc49@cornell.edu>
Jean Tourrilhes <jt@hpl.hp.com>
Marcel Holtmann <marcel@holtmann.org>
Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
%prep
%setup -q
%patch -p1
%patch1
%patch2
%patch3 -p1
%build
autoreconf -f -i -v
%configure --disable-static --with-pic \
--enable-apps\
--enable-glib
make %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS COPYING COPYING.LIB ChangeLog README
%{_libdir}/libopenobex.so.*
%files apps
%defattr(-,root,root)
%{_bindir}/ircp
%{_bindir}/irobex_palm3
%{_bindir}/irxfer
%{_bindir}/obex_tcp
%{_bindir}/obex_test
%files devel
%defattr(-,root,root)
%dir %{_includedir}/openobex
%{_includedir}/openobex/obex.h
%{_includedir}/openobex/obex_const.h
%{_libdir}/libopenobex.so
%{_datadir}/aclocal/openobex.m4
%{_libdir}/pkgconfig/openobex.pc
%files glib
%defattr(-,root,root)
%{_libdir}/libopenobex-glib.so.*
%files glib-devel
%defattr(-,root,root)
%{_includedir}/openobex/obex-client.h
%{_libdir}/libopenobex-glib.so
%{_libdir}/pkgconfig/openobex-glib.pc
%changelog