File openobex.spec of Package openobex
#
# spec file for package openobex
#
# Copyright (c) 2011 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 libtool libusb-devel pkg-config
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/Other
Version: 1.5
Release: 4
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Url: http://openobex.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
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).
%package -n libopenobex1
License: GPLv2+ ; LGPLv2.1+
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Group: Productivity/Networking/Web/Utilities
Provides: openobex = %{version}
Obsoletes: openobex < %{version}
%description -n libopenobex1
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).
%package apps
License: GPLv2+ ; LGPLv2.1+
Summary: Open Source Implementation of the Object Exchange (OBEX) Protocol
Group: Productivity/Networking/Web/Utilities
%description apps
applications using obex libs.
%package devel
License: GPLv2+
Summary: Development package for openobex
Group: Development/Libraries/Other
Requires: %{name} = %{version} glibc-devel
%description devel
Files needed for software development using openobex.
%prep
%setup -q
%patch1
%patch2
%patch3 -p1
%build
autoreconf -f -i -v
%configure --disable-static --with-pic \
--enable-apps
make %{?_smp_mflags}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -n libopenobex1 -p /sbin/ldconfig
%postun -n libopenobex1 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libopenobex1
%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
%{_libdir}/pkgconfig/openobex.pc
%changelog