File obexftp.spec of Package obexftp
#
# spec file for package obexftp
#
# 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: obexftp
BuildRequires: bluez-devel openobex-devel pkgconfig python-devel
License: GPLv2+
Group: Productivity/Networking/Other
AutoReqProv: on
Version: 0.23
Release: 4
Summary: ObexFTP Implements the Object Exchange (OBEX) Protocol's File Transfer Feature
Url: http://triq.net/obexftp
Source: %name-%version.tar.bz2
Patch0: gcc43.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
ObexFTP works with all protocols supported by openobex (OpenOBEX).
Currently, these are: - irda (IrDA),
- bluez-utils (BlueTooth)
- setserial (Serial)
Authors:
--------
Christian W. Zuckschwerdt <zany@triq.net>
%package devel
License: GPLv2+
Summary: Development package for obexftp
Group: Productivity/Networking/Other
Requires: %name = %version openobex-devel
%description devel
Files needed for software development using obexftp.
Authors:
--------
Christian W. Zuckschwerdt <zany@triq.net>
%prep
%setup -q
%patch0
%build
cp /usr/share/gettext/config.rpath .
autoreconf -fiv
%configure --disable-rpath --disable-static --with-pic --disable-perl
make
cd swig/perl
perl Makefile.PL
make -f Makefile.perl
%install
make "DESTDIR=$RPM_BUILD_ROOT" install
cd swig/perl
make -f Makefile.perl DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
rm -f %{buildroot}%{_libdir}/lib*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_mandir}/*/*
%files devel
%defattr(-,root,root)
%_libdir/lib*.so
%_includedir/bfb
%_includedir/obexftp
%_includedir/multicobex
%_libdir/pkgconfig/obexftp.pc
%package -n python-obexftp
License: GPLv2+
Summary: ObexFTP Implements the Object Exchange (OBEX) - Python bindings
Group: Productivity/Networking/Other
Requires: %name = %version
%description -n python-obexftp
ObexFTP works out-of-the-box with all protocols supported by OpenOBEX.
Currently IrDA, BlueTooth, and Serial.
This package contains the python bindings.
Authors:
--------
Christian W. Zuckschwerdt <zany@triq.net>
%files -n python-obexftp
%defattr(-,root,root)
%{py_sitedir}/*
%package -n perl-obexftp
License: GPLv2+
Summary: ObexFTP Implements the Object Exchange (OBEX) - Perl bindings
Group: Productivity/Networking/Other
Requires: %name = %version
Requires: perl-base = %{perl_version}
%description -n perl-obexftp
ObexFTP works out-of-the-box with all protocols supported by OpenOBEX.
Currently IrDA, BlueTooth, and Serial.
This package contains the Perl bindings.
Authors:
--------
Christian W. Zuckschwerdt <zany@triq.net>
%files -n perl-obexftp
%defattr(-,root,root)
%if %suse_version < 1140
/var/adm/perl-modules/obexftp
%endif
%{perl_vendorarch}/OBEXFTP.pm
%{perl_vendorarch}/auto/OBEXFTP
%changelog