Репозиторий Sisyphus
Последнее обновление: 12 апреля 2021 | Пакетов: 17839 | Посещений: 20702290
en ru br
Репозитории ALT
S:0.24.2-alt2.5
5.1: 0.23-alt2
4.1: 0.22-alt1.rc9.1
4.0: 0.22-alt1.pre4
3.0: 0.10.4-alt3.rc3
www.altlinux.org/Changes

Группа :: Коммуникации
Пакет: obexftp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# -*- rpm-spec -*-
# $Id: obexftp,v 1.14 2005/08/22 12:46:28 grigory Exp $

%def_enable perl
%def_enable python
%def_enable ruby
%def_enable tcl
%def_disable static
%def_disable swig

%if_enabled perl
%force_enable swig
%endif
%if_enabled python
%force_enable swig
%endif
%if_enabled ruby
%force_enable swig
%endif
%if_enabled tcl
%force_enable swig
%endif

Summary: ObexFTP implements the Object Exchange (OBEX) protocols file transfer.
Name: obexftp
Version: 0.23
Release: alt2

License: GPL
Group: Communications
URL: http://triq.net/gsm.html

Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source: http://triq.net/obex/%name-%version.tar.bz2

Requires: lib%name = %version-%release

BuildRequires: gcc-c++ libopenobex-devel libgsm-devel libbluez-devel libusb-compat-devel

%if_enabled swig
BuildRequires: swig
%endif
%if_enabled perl
BuildRequires: perl-devel
%endif
%if_enabled python
BuildRequires: python-devel
%endif
%if_enabled ruby
BuildRequires: ruby libruby-devel
%endif
%if_enabled tcl
BuildRequires: tcl-devel tcl
%endif

%package -n lib%name
Summary: obexftp libraries
Group: System/Libraries

%package devel
Summary: Development files of obexftp
Group: Development/C
Requires: lib%name = %version-%release

%if_enabled static
%package devel-static
Summary: Static develop path of obexftp
Group: Development/C
Requires: lib%name-devel = %version-%release
%endif

%if_enabled python
%package -n python-module-obexftp
Summary: Python bindings for obexftp
Group: Development/Python
%endif

%if_enabled perl
%package -n perl-obexftp
Summary: Perl bindings for obexftp
Group: Development/Perl
%endif

%if_enabled tcl
%package -n tcl-obexftp
Summary: Tcl bindings for obexftp
Group: Development/Tcl
Requires: tcl
%endif

%if_enabled ruby
%package -n ruby-obexftp
Summary: Ruby bindings for obexftp
Group: Development/Ruby
Requires: ruby
%endif

%description
This package contains some command line tools and the ObexFTP library.
Using OpenOBEX it enables you to transfer data via IrDA, BlueTooth
as well as some custom (Siemens, Ericsson) serial port protocols.
Authors: Christian W. Zuckschwerdt <zany at triq.net>

%description -n lib%name
Libraries for obexftp

%description devel
This package contains some command line tools and the ObexFTP library.
Using OpenOBEX it enables you to transfer data via IrDA, BlueTooth
as well as some custom (Siemens, Ericsson) serial port protocols.

%if_enabled static
%description devel-static
Static development files for obexftp.
%endif

%if_enabled python
%description -n python-module-obexftp
Python bindings for obexftp.
%endif

%if_enabled perl
%description -n perl-obexftp
Perl bindings for obexftp.
%endif

%if_enabled tcl
%description -n tcl-obexftp
Tcl bindings for obexftp.
%endif

%if_enabled ruby
%description -n ruby-obexftp
Ruby bindings for obexftp.
%endif

%prep
%setup

%build
%autoreconf

%configure \
   --enable-bluetooth \
   --enable-builddocs \
   --enable-swig \
%{subst_enable tcl} \
   %{subst_enable perl} \
   %{subst_enable python} \
   %{subst_enable ruby} \
%{subst_enable static}
%if_enabled swig
rm -f swig/*/*_wrap.c
%endif
%make_build RUBY="ruby -rvendor-specific"

%install

%make_install noinstdir=`pwd`/docs DESTDIR="%buildroot" INSTALLDIRS=vendor install

for i in obexmv; do
ln -s obexftp %buildroot%_bindir/$i
done

mv %buildroot%_bindir/discovery %buildroot%_bindir/obexftp-discovery
install -m 0644 -D doc/%name.1 %buildroot%_man1dir/%name.1

%if_enabled tcl
mkdir -p %buildroot%_tcllibdir
mv %buildroot%_libdir/obexftp.so* %buildroot%_tcllibdir/
LD_LIBRARY_PATH=%buildroot%_libdir %tea_makeindex -C %buildroot%_tcldatadir/obexftp
%endif

%if_enabled python
mv %buildroot%python_sitelibdir/obexftp/_*.so* %buildroot%python_sitelibdir
%endif

%files
%doc AUTHORS ChangeLog NEWS README* THANKS TODO
%_bindir/*
%_man1dir/*

%files -n lib%name
%_libdir/lib*.so.*

%files devel
%dir %_includedir/bfb
%dir %_includedir/multicobex
%dir %_includedir/obexftp
%_includedir/*/*
%_libdir/*.so
%_pkgconfigdir/obexftp.pc
%if_enabled tcl
%_tcldatadir/*
%endif

%if_enabled static
%files devel-static
%_libdir/lib*.a
%endif

%if_enabled perl
%files -n perl-obexftp
%perl_vendor_archlib/*
%perl_vendor_autolib/*
%endif

%if_enabled python
%files -n python-module-obexftp
%python_sitelibdir/*
%endif

%if_enabled tcl
%files -n tcl-obexftp
%_tcllibdir/*
%_tcldatadir/*
%endif

%if_enabled ruby
%files -n ruby-obexftp
%ruby_sitearchdir/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin