Files
obexftp/obexftp.spec
Michael Vetter 552aec0166 - export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes
minimum version warnings
- Use %patch -P N instead of deprecated %patchN.
- update to 0.24.2:
  * obexfs: Parse XML data with Expat library
  * obexfs: Properly encode XML special characters
  * obexfs: New option -r to specify root path
  * obexfs: New option -S to simulate free space
  * Fix probing
  * Add support for Gigaset devices
  * CMake improvements
  * Fix build system bugs
  * Replace CRC implementation in libbfb
- remove obexftp-pkgconfig_requires.patch : upstream
- Build python bindings for python3 instead of for python2
- Add obexftp-0.24-move_to_python3.patch:
  Use PyUnicode_FromStringAndSize instead of
  PyString_FromStringAndSize in swig/charmap.i (needed for python3)
- obexftp-pkgconfig_requires.patch:
  in pkgconfig file, require bluez instead of bluetooth 
- update to 0.24
  * new upstream maintainer
  * integrates obexfs 0.12 (build disabled for now)
  * includes Ruby binding
  * builds with OpenOBEX 1.7
  * build system is now based on CMake
- patch obexftp-0.24-fix-absurd-install-path - install Python binding
  into the correct location
- dropped gcc43.diff - no longer necessary
- Remove redundant tags/sections from specfile
- Parallel build with %_smp_mflags
- add libtool as buildrequire to avoid implicit dependency
- fix build on 11.4
- update to 0.23
  * allow win32 to use hci src names
  * adding a simpler connect wrapper
  * show OBEX_HandleInput errors
  * catch errors and let the user know
  * print timeout stats if available
  * sdp unregister more verbose
  * upgrading btkit
  * fix for win32 without bt
  * replacing deprecated automake vars
  * sizeof() fixes
  * removing bdaddr_t reference from obexftpd.c
  * adding bootstrap helper
  * concurrency bug in extconf.rb generated Makefile (fix by Alin Năstac)
  * switching from POD to asciidoc
  * clearing gnu-style implicit rules
- remove static libraries and "la" files 
- fix requires for devel package 
- adjust buildrequires
- update to 0.22:
  * for changelog, see included ChangeLog
- split off perl- and python- bindings to remove
  python depenceny from main package
- remove unneeded libusb from -devel Requires
- Fixed LDFLAGS to include needed libraries explicitly.
- Make use of LIBADD instead of LDADD.
- Make sure config.rpath is present.
- update to version 0.21
  * Fixes to obexftpd
  * Added ruby binding
  * Added preliminary discovery function
- update to version 0.20
  * Change __S_IFDIR to S_IFDIR with fallback sug.
  * Added old CLI switches and documentation sug.
  * Fixed the -g CLI switch
  * Added obexfsd
  * Fixed iconv
  * device/channel code cleanup
- update to version 0.19
  * Updated for OpenOBEX 1.1 (pkg-config)
  * Added --output switch
  * Simplified the swig/perl/Makefile.am.
  * Fixed a pointer typo and a free() typo.
  * Added perl, python and tcl binding with swig.
  * Rewrote folder-listing parser to enhance compatibility
  * Connection headers
  * Nokia hack (suppressing FBS)
  * Capabilty retrieving
  * USB support
  * Added implicit setpath support in every function.
  * Added simple caching
  * Removed recursive put. Apps should implement it themselves.
  * New configure flag to enable building docs
  * Documentation updated
- dropped obexftp-irda.patch
- dropped obexftp-noxml.patch
- converted neededforbuild to BuildRequires
- update to version 0.10.7
- make irda work again [Bug #43363] 
- update to version 0.10.4rc3
- split into main package and -devel
- spec file clean up
- include more documentation
- mark man pages as documentation 
- added openobex-devel to neededforbuild 
- Initial version 0.10.3.

OBS-URL: https://build.opensuse.org/package/show/filesystems/obexftp?expand=0&rev=18
2025-05-12 08:41:13 +00:00

148 lines
4.3 KiB
RPMSpec

#
# spec file for package obexftp
#
# Copyright (c) 2025 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
# Remove cmake4 error due to not setting
# min cmake version - sflees.de
export CMAKE_POLICY_VERSION_MINIMUM=3.5
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