|
@@ -1,166 +1,175 @@
|
|
-%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)')
|
|
-%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
|
|
+%define ruby_vendorarch %(ruby -r rbconfig -e 'print RbConfig::CONFIG["vendorarchdir"]')
|
|
-%define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
|
|
|
|
|
|
|
|
Name: obexftp
|
|
Name: obexftp
|
|
Summary: Tool to access devices via the OBEX protocol
|
|
Summary: Tool to access devices via the OBEX protocol
|
|
-Summary(ja): OBEX プロトコルを使用する機器のためのツールです
|
|
+Summary(ja): OBEX プロトコルを使用する機器にアクセスするためのツール
|
|
-Group: Applications/System
|
|
+Version: 0.24
|
|
-Version: 0.23
|
|
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
|
|
+Group: Applications/Communications
|
|
URL: http://openobex.triq.net/
|
|
URL: http://openobex.triq.net/
|
|
-Source: http://triq.net/obexftp/%{name}-%{version}.tar.bz2
|
|
|
|
-Patch0: obexftp-norpath.patch
|
|
|
|
-Patch1: obexftp-perl.patch
|
|
|
|
-
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
+Source: http://dl.sourceforge.net/project/openobex/obexftp/0.24/obexftp-0.24-Source.tar.gz
|
|
|
|
+Patch0: obexftp-norpath.patch
|
|
|
|
+# From upstream git, fixes fuse apps not being installed
|
|
|
|
+Patch1: %{name}-0.24-fuse.patch
|
|
|
|
+# From OpenSUSE, thanks: fix pkgconfig to require bluez not bluetooth
|
|
|
|
+Patch2: %{name}-pkgconfig_requires.patch
|
|
|
|
+# From OpenSUSE, thanks: fix python install path
|
|
|
|
+Patch3: %{name}-0.24-fix-absurd-install-path.patch
|
|
|
|
+
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: asciidoc
|
|
|
|
+BuildRequires: cmake
|
|
BuildRequires: bluez-libs-devel
|
|
BuildRequires: bluez-libs-devel
|
|
-BuildRequires: gettext
|
|
+BuildRequires: fuse-devel
|
|
-BuildRequires: libtool
|
|
+BuildRequires: gettext-devel
|
|
-BuildRequires: openobex-devel >= 1.2
|
|
+BuildRequires: openobex-devel
|
|
-## BuildRequires: perl-ExtUtils-CBuilder
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
-BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
|
BuildRequires: ruby-devel
|
|
|
|
+BuildRequires: swig
|
|
BuildRequires: tcl
|
|
BuildRequires: tcl
|
|
-
|
|
+BuildRequires: xmlto
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%description
|
|
%description
|
|
-The overall goal of this project is to make mobile devices featuring
|
|
+The overall goal of this project is to make mobile devices featuring the OBEX
|
|
- the OBEX protocol and adhering to the OBEX FTP standard accessible
|
|
+protocol and adhering to the OBEX FTP standard accessible by an open source
|
|
- by an open source implementation.
|
|
+implementation. The common usage for ObexFTP is to access your mobile phones
|
|
-The common usage for ObexFTP is to access your mobile phones memory to
|
|
+memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
- store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
|
|
pictures and alike.
|
|
pictures and alike.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-このプロジェクトは OBEXプロトコルおよび、標準的で便利なOBEX-FTPを
|
|
+このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。
|
|
-フィーチャーしたモバイルデバイスを、オープンソースで実装する事を
|
|
+
|
|
-全体的な目標としています。
|
|
|
|
ObexFTPの共通の使い方
|
|
ObexFTPの共通の使い方
|
|
- お使いの携帯電話にアクセスし、メモリへ保存したり取り外したりする、
|
|
+お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。
|
|
- 例えば、お客様の電話帳、ロゴ、着メロ、音楽、写真等も同様に扱えます。
|
|
+
|
|
|
|
+#----------------------------------------------------------------------------
|
|
|
|
+%package -n fuse-%{name}
|
|
|
|
+Summary: FUSE based filesystem using ObexFTP
|
|
|
|
+Group: Applications/Communications
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n fuse-%{name}
|
|
|
|
+This package provides a FUSE based filesystem using Obex protocol as backend.
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%package -n python-%{name}
|
|
%package -n python-%{name}
|
|
Summary: Python library to access devices via the OBEX protocol
|
|
Summary: Python library to access devices via the OBEX protocol
|
|
-Summary(ja): OBEX プロトコルを使って機器を扱うPythonライブラリです
|
|
+Summary(ja): OBEX プロトコルを使って機器を扱う Python ライブラリ
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n python-%{name}
|
|
%description -n python-%{name}
|
|
-The overall goal of this project is to make mobile devices featuring
|
|
+The overall goal of this project is to make mobile devices featuring the OBEX
|
|
- the OBEX protocol and adhering to the OBEX FTP standard accessible
|
|
+protocol and adhering to the OBEX FTP standard accessible by an open source
|
|
- by an open source implementation.
|
|
+implementation. The common usage for ObexFTP is to access your mobile phones
|
|
-The common usage for ObexFTP is to access your mobile phones memory to
|
|
+memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
- store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
|
|
pictures and alike.
|
|
pictures and alike.
|
|
|
|
|
|
%description -n python-%{name} -l ja
|
|
%description -n python-%{name} -l ja
|
|
-このプロジェクトは OBEXプロトコルおよび、標準的で便利なOBEX-FTPを
|
|
+このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。
|
|
-フィーチャーしたモバイルデバイスを、オープンソースで実装する事を
|
|
+
|
|
-全体的な目標としています。
|
|
+ObexFTP の共通の使い方
|
|
-ObexFTPの共通の使い方
|
|
+お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。
|
|
- お使いの携帯電話にアクセスし、メモリへ保存したり取り外したりする、
|
|
+(このパッケージは Python 向けライブラリです)
|
|
- 例えば、お客様の電話帳、ロゴ、着メロ、音楽、写真等も同様に扱えます。
|
|
|
|
-(このパッケージはpython向けライブラリです)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%package -n perl-%{name}
|
|
%package -n perl-%{name}
|
|
Summary: Perl library to access devices via the OBEX protocol
|
|
Summary: Perl library to access devices via the OBEX protocol
|
|
-Summary(ja): OBEX プロトコルを使って機器を扱うPerlライブラリです
|
|
+Summary(ja): OBEX プロトコルを使って機器を扱う Perl ライブラリ
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
+Provides: perl-OBEXFTP = %{version}-%{release}
|
|
|
|
|
|
%description -n perl-%{name}
|
|
%description -n perl-%{name}
|
|
-The overall goal of this project is to make mobile devices featuring
|
|
+The overall goal of this project is to make mobile devices featuring the OBEX
|
|
- the OBEX protocol and adhering to the OBEX FTP standard accessible
|
|
+protocol and adhering to the OBEX FTP standard accessible by an open source
|
|
- by an open source implementation.
|
|
+implementation. The common usage for ObexFTP is to access your mobile phones
|
|
-The common usage for ObexFTP is to access your mobile phones memory to
|
|
+memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
- store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
|
|
pictures and alike.
|
|
pictures and alike.
|
|
|
|
|
|
%description -n perl-%{name} -l ja
|
|
%description -n perl-%{name} -l ja
|
|
-このプロジェクトは OBEXプロトコルおよび、標準的で便利なOBEX-FTPを
|
|
+このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。
|
|
-フィーチャーしたモバイルデバイスを、オープンソースで実装する事を
|
|
+
|
|
-全体的な目標としています。
|
|
|
|
ObexFTPの共通の使い方
|
|
ObexFTPの共通の使い方
|
|
- お使いの携帯電話にアクセスし、メモリへ保存したり取り外したりする、
|
|
+お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。
|
|
- 例えば、お客様の電話帳、ロゴ、着メロ、音楽、写真等も同様に扱えます。
|
|
+(このパッケージは perl 向けライブラリです)
|
|
-(このパッケージはperl向けライブラリです)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%package -n ruby-%{name}
|
|
%package -n ruby-%{name}
|
|
Summary: Ruby library to access devices via the OBEX protocol
|
|
Summary: Ruby library to access devices via the OBEX protocol
|
|
-Summary(ja): OBEX プロトコルを使って機器を扱うRubyライブラリです
|
|
+Summary(ja): OBEX プロトコルを使って機器を扱う Ruby ライブラリ
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-BuildRequires: ruby
|
|
|
|
-BuildRequires: ruby-devel
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n ruby-%{name}
|
|
%description -n ruby-%{name}
|
|
-The overall goal of this project is to make mobile devices featuring
|
|
+The overall goal of this project is to make mobile devices featuring the OBEX
|
|
- the OBEX protocol and adhering to the OBEX FTP standard accessible
|
|
+protocol and adhering to the OBEX FTP standard accessible by an open source
|
|
- by an open source implementation.
|
|
+implementation. The common usage for ObexFTP is to access your mobile phones
|
|
-The common usage for ObexFTP is to access your mobile phones memory to
|
|
+memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
- store and retrieve e.g. your phonebook, logos, ringtones, music,
|
|
|
|
pictures and alike.
|
|
pictures and alike.
|
|
|
|
|
|
%description -n ruby-%{name} -l ja
|
|
%description -n ruby-%{name} -l ja
|
|
-このプロジェクトは OBEXプロトコルおよび、標準的で便利なOBEX-FTPを
|
|
+このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。
|
|
-フィーチャーしたモバイルデバイスを、オープンソースで実装する事を
|
|
+
|
|
-全体的な目標としています。
|
|
|
|
ObexFTPの共通の使い方
|
|
ObexFTPの共通の使い方
|
|
- お使いの携帯電話にアクセスし、メモリへ保存したり取り外したりする、
|
|
+お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。
|
|
- 例えば、お客様の電話帳、ロゴ、着メロ、音楽、写真等も同様に扱えます。
|
|
+(このパッケージは ruby 向けライブラリです)
|
|
-(このパッケージはruby向けライブラリです)
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%package devel
|
|
%package devel
|
|
Summary: Header files and libraries for %{name}
|
|
Summary: Header files and libraries for %{name}
|
|
-Summary(ja): OBEX-FTP の開発用ヘッダーファイル等のパッケージです
|
|
+Summary(ja): OBEX-FTP の開発用ヘッダーファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
-Requires: openobex-devel >= 1.2
|
|
+Requires: bluez-libs-devel
|
|
|
|
+Requires: openobex-devel
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
-This package contains the header files, static libraries and development
|
|
+This package contains libraries and header files for developing applications
|
|
-documentation for %{name}. If you like to develop programs using %{name},
|
|
+that use %{name}.
|
|
-you will need to install %{name}-devel.
|
|
|
|
|
|
|
|
%description devel -l ja
|
|
%description devel -l ja
|
|
-このパッケージには OBEX-FTPのヘッダファイル、静的ライブラリおよび開発者用の
|
|
+このパッケージには、%{name} を使用するアプリケーションを開発するためのライブラリ及びヘッダファイルが含まれています。
|
|
-ドキュメントが含まれています。
|
|
|
|
-あなたがOBEX-FTPを使用してプログラムを開発する場合は、この obexftp-develを
|
|
|
|
-インストールする必要があります。
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%prep
|
|
%prep
|
|
-%setup -q
|
|
+%setup -q -n %{name}-%{version}-Source
|
|
%patch0 -p1 -b .norpath
|
|
%patch0 -p1 -b .norpath
|
|
-%patch1 -p1 -b .p
|
|
+%patch1 -p1 -b .fuse
|
|
|
|
+%patch2 -p1 -b .pkgconfig
|
|
|
|
+%patch3 -p1 -b .pythonpath
|
|
|
|
|
|
%build
|
|
%build
|
|
-autoreconf -f -i
|
|
+mkdir -p %{_target_platform}
|
|
-%configure --disable-static --disable-dependency-tracking --disable-rpath
|
|
+pushd %{_target_platform}
|
|
-%{__make} %{?_smp_mflags}
|
|
+%cmake -DCMAKE_SKIP_RPATH=YES ..
|
|
|
|
+
|
|
|
|
+# fix xmlto option to build man pages
|
|
|
|
+sed -i 's|\/usr\/bin\/xmlto |\/usr\/bin\/xmlto --skip-validation |g' doc/CMakeFiles/doc.dir/build.make
|
|
|
|
+
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
+make %{?_smp_mflags} doc -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-make DESTDIR=$RPM_BUILD_ROOT RUBYARCHDIR=$RPM_BUILD_ROOT%{rarchdir} install
|
|
+
|
|
|
|
+make install -C %{_target_platform} \
|
|
|
|
+ DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
+ RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarch}
|
|
chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so
|
|
chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so
|
|
-# chmod 755 %{buildroot}%{perl_sitearch}/*/OBEXFTP/OBEXFTP.so
|
|
|
|
|
|
|
|
-rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
+# rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
-rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
|
|
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
|
|
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/{.packlist,OBEXFTP.bs}
|
|
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/{.packlist,OBEXFTP.bs}
|
|
-# %{__rm} -f %{buildroot}%{perl_sitearch}/*/OBEXFTP/{.packlist,OBEXFTP.bs}
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -171,12 +180,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
-%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
|
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
|
-%{_mandir}/man1/obexftp.1*
|
|
|
|
-%{_mandir}/man1/obexftpd.1*
|
|
|
|
%{_bindir}/obexftp
|
|
%{_bindir}/obexftp
|
|
%{_bindir}/obexftpd
|
|
%{_bindir}/obexftpd
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
|
|
+%{_mandir}/man1/obexftp.1*
|
|
|
|
+%{_mandir}/man1/obexftpd.1*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
@@ -186,28 +195,24 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/obexftp.pc
|
|
%{_libdir}/pkgconfig/obexftp.pc
|
|
|
|
|
|
|
|
+%files -n fuse-%{name}
|
|
|
|
+%{_bindir}/obexautofs
|
|
|
|
+%{_bindir}/obexfs
|
|
|
|
+
|
|
%files -n python-%{name}
|
|
%files -n python-%{name}
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
-# %dir %{python_vendorarch}/obexftp
|
|
+%{python_sitearch}/_obexftp.so*
|
|
-# %{python_vendorarch}/obexftp/_obexftp.so*
|
|
+%{python_sitearch}/obexftp.py*
|
|
-# %{python_vendorarch}/obexftp/__init__.py*
|
|
|
|
-%dir %{python_sitearch}/obexftp
|
|
|
|
-%{python_sitearch}/obexftp/_obexftp.so*
|
|
|
|
-%{python_sitearch}/obexftp/__init__.py*
|
|
|
|
|
|
|
|
%files -n perl-%{name}
|
|
%files -n perl-%{name}
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
%{perl_vendorarch}/OBEXFTP.pm
|
|
%{perl_vendorarch}/OBEXFTP.pm
|
|
%dir %{perl_vendorarch}/*/OBEXFTP
|
|
%dir %{perl_vendorarch}/*/OBEXFTP
|
|
%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so
|
|
%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so
|
|
-# %{perl_sitearch}/OBEXFTP.pm
|
|
|
|
-# %dir %{perl_sitearch}/*/OBEXFTP
|
|
|
|
-# %{perl_sitearch}/*/OBEXFTP/OBEXFTP.so
|
|
|
|
|
|
|
|
%files -n ruby-%{name}
|
|
%files -n ruby-%{name}
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
-%{rarchdir}/obexftp.so
|
|
+%{ruby_vendorarch}/obexftp.so
|
|
-#{ruby_sitearch}/obexftp.so
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
@@ -215,6 +220,14 @@ rm -rf $RPM_BUILD_ROOT
|
|
#
|
|
#
|
|
#----------------------------------------------------------------------------
|
|
#----------------------------------------------------------------------------
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Nov 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.24-1
|
|
|
|
+- updaed to 0.24
|
|
|
|
+- added fuse-obexftp subpackage
|
|
|
|
+- built with openobex 1.7,1 and perl 5.16.3
|
|
|
|
+
|
|
|
|
+* Sat Jul 27 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.23-2
|
|
|
|
+- rebuild with perl-5.12.3
|
|
|
|
+
|
|
* Sat Dec 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.23-1
|
|
* Sat Dec 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.23-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- removed Requires: ruby(abi) (= 1.8) <BTS:799>
|
|
- removed Requires: ruby(abi) (= 1.8) <BTS:799>
|