obexftp/obexftp.spec

Name: obexftp
Summary: Tool to access devices via the OBEX protocol
Version: 0.22
Release: 1
License: GPL
Group: Applications/Communications
URL: http://openobex.triq.net/
Description: The overall goal of this project is to make mobile devices featuring the OBEX protocol and adhering to the OBEX FTP standard accessible by an open source implementation. The common usage for ObexFTP is to access your mobile phones memory to store and retrieve e.g. your phonebook, logos, ringtones, music, pictures and alike

CentOS 7 x86_64

The build could not start because the following file is missing: obexftp-0.22.tar.bz2

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: obexftp-0.22.tar.bz2

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')

%{?rh7:%define _without_python2 1}
%{?el2:%define _without_python2 1}

Summary: Tool to access devices via the OBEX protocol
Name: obexftp
Version: 0.22
Release: 1%{?dist}
License: GPL
Group: Applications/Communications
URL: http://openobex.triq.net/

Source: http://dl.sf.net/openobex/obexftp-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: openobex-devel, bluez-libs-devel

%description
The overall goal of this project is to make mobile devices featuring the OBEX
protocol and adhering to the OBEX FTP standard accessible by an open source
implementation. The common usage for ObexFTP is to access your mobile phones
memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
pictures and alike

%package -n libobexftp
Summary: Library to access devices via the OBEX protocol
Group: System Environment/Libraries

%description -n libobexftp
The overall goal of this project is to make mobile devices featuring the OBEX
protocol and adhering to the OBEX FTP standard accessible by an open source
implementation. The common usage for ObexFTP is to access your mobile phones
memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
pictures and alike

%package -n libobexftp-devel
Summary: Header files, libraries and development documentation for libobexftp.
Group: Development/Libraries
Requires: libobexftp = %{version}-%{release}

%description -n libobexftp-devel
This package contains the header files, static libraries and development
documentation for libobexftp. If you like to develop programs using libobexftp,
you will need to install libobexftp-devel.

%package -n python-obexftp
Summary: Library to access devices via the OBEX protocol
Group: Development/Libraries
Requires: libobexftp = %{version}-%{release}

%description -n python-obexftp
The overall goal of this project is to make mobile devices featuring the OBEX
protocol and adhering to the OBEX FTP standard accessible by an open source
implementation. The common usage for ObexFTP is to access your mobile phones
memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
pictures and alike

%prep
%setup

%build
### FIXME: Disabled perl because cannot make Makefile place it in DESTDIR
%configure \
    --disable-perl \
%{?_without_python2:--disable-python} \
    --disable-ruby \
    --disable-static \
    --disable-tcl
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%clean
%{__rm} -rf %{buildroot}

%post -n libobexftp -p /sbin/ldconfig
%postun -n libobexftp -p /sbin/ldconfig

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog NEWS README* THANKS TODO
%doc %{_mandir}/man1/obexftp.1*
%doc %{_mandir}/man1/obexftpd.1*
%{_bindir}/obexftp
%{_bindir}/obexftpd

%files -n libobexftp
%defattr(-, root, root, 0755)
%{_libdir}/libbfb.so.*
%{_libdir}/libmulticobex.so.*
%{_libdir}/libobexftp.so.*

%files -n libobexftp-devel
%defattr(-, root, root, 0755)
%{_includedir}/bfb/
%{_includedir}/multicobex/
%{_includedir}/obexftp/
%{_libdir}/libbfb.so
%{_libdir}/libmulticobex.so
%{_libdir}/libobexftp.so
%{_libdir}/pkgconfig/obexftp.pc
%exclude %{_libdir}/*.la

%if %{!?_without_python2:1}0
%files -n python-obexftp
%defattr(-, root, root, 0755)
%{python_sitearch}/obexftp/
%ghost %{python_sitearch}/obexftp/*.pyo
%endif

%changelog
* Mon Jun 16 2008 Dag Wieers <dag@wieers.com> - 0.22-1
- Updated to release 0.22.

* Tue Nov 13 2007 Dag Wieers <dag@wieers.com> - 0.20-1
- Updated to release 0.20.

* Mon Oct 09 2006 Dag Wieers <dag@wieers.com> - 0.19-3
- Fixed group name.

* Sat Aug 19 2006 Dag Wieers <dag@wieers.com> - 0.19-1
- Updated to release 0.19.

* Sun Jan 29 2006 Dag Wieers <dag@wieers.com> - 0.18-1
- Initial package. (using DAR)