File obexftp.spec of Package obexftp
#
# spec file for package obexftp
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: obexftp
Version: 0.24.2
Release: 0
Summary: ObexFTP Implements the Object Exchange (OBEX) Protocol's File Transfer Feature
License: GPL-2.0-or-later
Group: Productivity/Networking/Other
URL: https://triq.net/obexftp
Source: https://sourceforge.net/projects/openobex/files/obexftp/%{version}/obexftp-%{version}-Source.tar.gz
Patch0: obexftp-0.24-fix-absurd-install-path.patch
Patch1: obexftp-0.24-move_to_python3.patch
BuildRequires: asciidoc
BuildRequires: bluez-devel
BuildRequires: cmake
# support for building obexfs from this source is disabled for now. reenable ASAP
#BuildRequires: fuse-devel
BuildRequires: libtool
BuildRequires: openobex-devel
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: ruby-devel
BuildRequires: swig
BuildRequires: xmlto
%description
ObexFTP works with all protocols supported by openobex (OpenOBEX).
Currently, these are:
- irda (IrDA),
- bluez-utils (BlueTooth)
- setserial (Serial)
%package devel
Summary: Development package for obexftp
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: openobex-devel
%description devel
Files needed for software development using obexftp.
%prep
%setup -q -n %{name}-%{version}-Source
%patch -P 0 -p1
%patch -P 1
chmod -x AUTHORS Doxyfile ChangeLog NEWS README THANKS TODO examples/README_obexftpbackup
%build
mkdir build
cd build
# FIXME: you should use the %%cmake macros
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} ..
%make_build all doc # because "all" apparently does not mean "all"
%install
cd build
make "DESTDIR=$RPM_BUILD_ROOT" install
%perl_process_packlist
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_mandir}/*/*
%files devel
%{_libdir}/lib*.so
%{_includedir}/bfb
%{_includedir}/obexftp
%{_includedir}/multicobex
%{_libdir}/pkgconfig/obexftp.pc
%package -n python3-obexftp
Summary: ObexFTP Implements the Object Exchange (OBEX) - Python3 bindings
Group: Productivity/Networking/Other
Requires: %{name} = %{version}
%description -n python3-obexftp
ObexFTP works out-of-the-box with all protocols supported by OpenOBEX.
Currently IrDA, BlueTooth, and Serial.
This package contains the python3 bindings.
%files -n python3-obexftp
%{python3_sitearch}/*
%package -n perl-obexftp
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.
%files -n perl-obexftp
%if 0%{?suse_version} < 1140
%{_localstatedir}/adm/perl-modules/obexftp
%endif
%{perl_vendorarch}/OBEXFTP.pm
%{perl_vendorarch}/auto/OBEXFTP
%package -n ruby-obexftp
Summary: ObexFTP Implements the Object Exchange (OBEX) - Ruby bindings
Group: Productivity/Networking/Other
Requires: %{name} = %{version}
Requires: ruby(abi) = %{rb_ver}
%description -n ruby-obexftp
ObexFTP works out-of-the-box with all protocols supported by OpenOBEX.
Currently IrDA, BlueTooth, and Serial.
This package contains the Ruby bindings.
%files -n ruby-obexftp
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/obexftp.so
%changelog