[9078] | 1 | %define python_sitearch %(python -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') |
---|
| 2 | %define ruby_vendorarch %(ruby -r rbconfig -e 'print RbConfig::CONFIG["vendorarchdir"]') |
---|
[521] | 3 | |
---|
| 4 | Name: obexftp |
---|
| 5 | Summary: Tool to access devices via the OBEX protocol |
---|
[9078] | 6 | Summary(ja): OBEX プロトコルを使用する機器にアクセスするためのツール |
---|
| 7 | Version: 0.24 |
---|
[521] | 8 | Release: 1%{?_dist_release} |
---|
| 9 | License: GPLv2+ |
---|
[9078] | 10 | Group: Applications/Communications |
---|
[521] | 11 | URL: http://openobex.triq.net/ |
---|
[9078] | 12 | |
---|
| 13 | Source: http://dl.sourceforge.net/project/openobex/obexftp/0.24/obexftp-0.24-Source.tar.gz |
---|
[521] | 14 | Patch0: obexftp-norpath.patch |
---|
[9078] | 15 | # From upstream git, fixes fuse apps not being installed |
---|
| 16 | Patch1: %{name}-0.24-fuse.patch |
---|
| 17 | # From OpenSUSE, thanks: fix pkgconfig to require bluez not bluetooth |
---|
| 18 | Patch2: %{name}-pkgconfig_requires.patch |
---|
| 19 | # From OpenSUSE, thanks: fix python install path |
---|
| 20 | Patch3: %{name}-0.24-fix-absurd-install-path.patch |
---|
[521] | 21 | |
---|
[9078] | 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | BuildRequires: asciidoc |
---|
| 24 | BuildRequires: cmake |
---|
[521] | 25 | BuildRequires: bluez-libs-devel |
---|
[9078] | 26 | BuildRequires: fuse-devel |
---|
| 27 | BuildRequires: gettext-devel |
---|
| 28 | BuildRequires: openobex-devel |
---|
[521] | 29 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 30 | BuildRequires: python-devel |
---|
| 31 | BuildRequires: ruby-devel |
---|
[9078] | 32 | BuildRequires: swig |
---|
[521] | 33 | BuildRequires: tcl |
---|
[9078] | 34 | BuildRequires: xmlto |
---|
[521] | 35 | |
---|
| 36 | #---------------------------------------------------------------------------- |
---|
| 37 | %description |
---|
[9078] | 38 | The overall goal of this project is to make mobile devices featuring the OBEX |
---|
| 39 | protocol and adhering to the OBEX FTP standard accessible by an open source |
---|
| 40 | implementation. The common usage for ObexFTP is to access your mobile phones |
---|
| 41 | memory to store and retrieve e.g. your phonebook, logos, ringtones, music, |
---|
[521] | 42 | pictures and alike. |
---|
| 43 | |
---|
| 44 | %description -l ja |
---|
[9078] | 45 | このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。 |
---|
| 46 | |
---|
[521] | 47 | ObexFTPの共通の使い方 |
---|
[9078] | 48 | お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。 |
---|
[521] | 49 | |
---|
| 50 | #---------------------------------------------------------------------------- |
---|
[9078] | 51 | %package -n fuse-%{name} |
---|
| 52 | Summary: FUSE based filesystem using ObexFTP |
---|
| 53 | Group: Applications/Communications |
---|
| 54 | Requires: %{name} = %{version}-%{release} |
---|
| 55 | |
---|
| 56 | %description -n fuse-%{name} |
---|
| 57 | This package provides a FUSE based filesystem using Obex protocol as backend. |
---|
| 58 | |
---|
| 59 | #---------------------------------------------------------------------------- |
---|
[521] | 60 | %package -n python-%{name} |
---|
| 61 | Summary: Python library to access devices via the OBEX protocol |
---|
[9078] | 62 | Summary(ja): OBEX プロトコルを使って機器を扱う Python ライブラリ |
---|
[521] | 63 | Group: Development/Libraries |
---|
| 64 | Requires: %{name} = %{version}-%{release} |
---|
| 65 | |
---|
| 66 | %description -n python-%{name} |
---|
[9078] | 67 | The overall goal of this project is to make mobile devices featuring the OBEX |
---|
| 68 | protocol and adhering to the OBEX FTP standard accessible by an open source |
---|
| 69 | implementation. The common usage for ObexFTP is to access your mobile phones |
---|
| 70 | memory to store and retrieve e.g. your phonebook, logos, ringtones, music, |
---|
[521] | 71 | pictures and alike. |
---|
| 72 | |
---|
| 73 | %description -n python-%{name} -l ja |
---|
[9078] | 74 | このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。 |
---|
[521] | 75 | |
---|
[9078] | 76 | ObexFTP の共通の使い方 |
---|
| 77 | お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。 |
---|
| 78 | (このパッケージは Python 向けライブラリです) |
---|
| 79 | |
---|
[521] | 80 | #---------------------------------------------------------------------------- |
---|
| 81 | %package -n perl-%{name} |
---|
| 82 | Summary: Perl library to access devices via the OBEX protocol |
---|
[9078] | 83 | Summary(ja): OBEX プロトコルを使って機器を扱う Perl ライブラリ |
---|
[521] | 84 | Group: Development/Libraries |
---|
| 85 | Requires: %{name} = %{version}-%{release} |
---|
| 86 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[9078] | 87 | Provides: perl-OBEXFTP = %{version}-%{release} |
---|
[521] | 88 | |
---|
| 89 | %description -n perl-%{name} |
---|
[9078] | 90 | The overall goal of this project is to make mobile devices featuring the OBEX |
---|
| 91 | protocol and adhering to the OBEX FTP standard accessible by an open source |
---|
| 92 | implementation. The common usage for ObexFTP is to access your mobile phones |
---|
| 93 | memory to store and retrieve e.g. your phonebook, logos, ringtones, music, |
---|
[521] | 94 | pictures and alike. |
---|
| 95 | |
---|
| 96 | %description -n perl-%{name} -l ja |
---|
[9078] | 97 | このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。 |
---|
| 98 | |
---|
[521] | 99 | ObexFTPの共通の使い方 |
---|
[9078] | 100 | お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。 |
---|
| 101 | (このパッケージは perl 向けライブラリです) |
---|
[521] | 102 | |
---|
| 103 | #---------------------------------------------------------------------------- |
---|
| 104 | %package -n ruby-%{name} |
---|
| 105 | Summary: Ruby library to access devices via the OBEX protocol |
---|
[9078] | 106 | Summary(ja): OBEX プロトコルを使って機器を扱う Ruby ライブラリ |
---|
[521] | 107 | Group: Development/Libraries |
---|
| 108 | Requires: %{name} = %{version}-%{release} |
---|
| 109 | |
---|
| 110 | %description -n ruby-%{name} |
---|
[9078] | 111 | The overall goal of this project is to make mobile devices featuring the OBEX |
---|
| 112 | protocol and adhering to the OBEX FTP standard accessible by an open source |
---|
| 113 | implementation. The common usage for ObexFTP is to access your mobile phones |
---|
| 114 | memory to store and retrieve e.g. your phonebook, logos, ringtones, music, |
---|
[521] | 115 | pictures and alike. |
---|
| 116 | |
---|
| 117 | %description -n ruby-%{name} -l ja |
---|
[9078] | 118 | このプロジェクトは OBEX プロトコルおよび、標準的で便利な OBEX FTP をフィーチャーしたモバイルデバイスを、オープンソースで実装する事を全体的な目標としています。 |
---|
| 119 | |
---|
[521] | 120 | ObexFTPの共通の使い方 |
---|
[9078] | 121 | お使いの携帯電話のメモリにアクセスし、電話帳、ロゴ、着メロ、音楽、写真等の保存や取得を行います。 |
---|
| 122 | (このパッケージは ruby 向けライブラリです) |
---|
[521] | 123 | |
---|
| 124 | #---------------------------------------------------------------------------- |
---|
| 125 | %package devel |
---|
| 126 | Summary: Header files and libraries for %{name} |
---|
[9078] | 127 | Summary(ja): OBEX-FTP の開発用ヘッダーファイル |
---|
[521] | 128 | Group: Development/Libraries |
---|
| 129 | Requires: %{name} = %{version}-%{release} |
---|
[9078] | 130 | Requires: bluez-libs-devel |
---|
| 131 | Requires: openobex-devel |
---|
[521] | 132 | Requires: pkgconfig |
---|
| 133 | |
---|
| 134 | %description devel |
---|
[9078] | 135 | This package contains libraries and header files for developing applications |
---|
| 136 | that use %{name}. |
---|
[521] | 137 | |
---|
| 138 | %description devel -l ja |
---|
[9078] | 139 | このパッケージには、%{name} を使用するアプリケーションを開発するためのライブラリ及びヘッダファイルが含まれています。 |
---|
[521] | 140 | |
---|
| 141 | #---------------------------------------------------------------------------- |
---|
| 142 | %prep |
---|
[9078] | 143 | %setup -q -n %{name}-%{version}-Source |
---|
[521] | 144 | %patch0 -p1 -b .norpath |
---|
[9078] | 145 | %patch1 -p1 -b .fuse |
---|
| 146 | %patch2 -p1 -b .pkgconfig |
---|
| 147 | %patch3 -p1 -b .pythonpath |
---|
[521] | 148 | |
---|
| 149 | %build |
---|
[9078] | 150 | mkdir -p %{_target_platform} |
---|
| 151 | pushd %{_target_platform} |
---|
| 152 | %cmake -DCMAKE_SKIP_RPATH=YES .. |
---|
[521] | 153 | |
---|
[9078] | 154 | # fix xmlto option to build man pages |
---|
| 155 | sed -i 's|\/usr\/bin\/xmlto |\/usr\/bin\/xmlto --skip-validation |g' doc/CMakeFiles/doc.dir/build.make |
---|
| 156 | |
---|
| 157 | popd |
---|
| 158 | |
---|
| 159 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 160 | make %{?_smp_mflags} doc -C %{_target_platform} |
---|
| 161 | |
---|
[521] | 162 | %install |
---|
| 163 | rm -rf $RPM_BUILD_ROOT |
---|
[9078] | 164 | |
---|
| 165 | make install -C %{_target_platform} \ |
---|
| 166 | DESTDIR=$RPM_BUILD_ROOT \ |
---|
| 167 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarch} |
---|
[521] | 168 | chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so |
---|
| 169 | |
---|
[9078] | 170 | # rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 171 | rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
---|
[521] | 172 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/*/OBEXFTP/{.packlist,OBEXFTP.bs} |
---|
| 173 | |
---|
| 174 | |
---|
| 175 | %clean |
---|
| 176 | rm -rf $RPM_BUILD_ROOT |
---|
| 177 | |
---|
| 178 | %post -p /sbin/ldconfig |
---|
| 179 | %postun -p /sbin/ldconfig |
---|
| 180 | |
---|
| 181 | %files |
---|
| 182 | %defattr(-, root, root, -) |
---|
[9078] | 183 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
---|
[521] | 184 | %{_bindir}/obexftp |
---|
| 185 | %{_bindir}/obexftpd |
---|
| 186 | %{_libdir}/*.so.* |
---|
[9078] | 187 | %{_mandir}/man1/obexftp.1* |
---|
| 188 | %{_mandir}/man1/obexftpd.1* |
---|
[521] | 189 | |
---|
| 190 | %files devel |
---|
| 191 | %defattr(-, root, root, -) |
---|
| 192 | %{_includedir}/bfb/ |
---|
| 193 | %{_includedir}/multicobex/ |
---|
| 194 | %{_includedir}/obexftp/ |
---|
| 195 | %{_libdir}/*.so |
---|
| 196 | %{_libdir}/pkgconfig/obexftp.pc |
---|
| 197 | |
---|
[9078] | 198 | %files -n fuse-%{name} |
---|
| 199 | %{_bindir}/obexautofs |
---|
| 200 | %{_bindir}/obexfs |
---|
| 201 | |
---|
[521] | 202 | %files -n python-%{name} |
---|
| 203 | %defattr(-, root, root, -) |
---|
[9078] | 204 | %{python_sitearch}/_obexftp.so* |
---|
| 205 | %{python_sitearch}/obexftp.py* |
---|
[521] | 206 | |
---|
| 207 | %files -n perl-%{name} |
---|
| 208 | %defattr(-, root, root, -) |
---|
| 209 | %{perl_vendorarch}/OBEXFTP.pm |
---|
| 210 | %dir %{perl_vendorarch}/*/OBEXFTP |
---|
| 211 | %{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so |
---|
| 212 | |
---|
| 213 | %files -n ruby-%{name} |
---|
| 214 | %defattr(-, root, root, -) |
---|
[9078] | 215 | %{ruby_vendorarch}/obexftp.so |
---|
[521] | 216 | |
---|
| 217 | |
---|
| 218 | #---------------------------------------------------------------------------- |
---|
| 219 | # Maintainers: babasaki@mindgear.org |
---|
| 220 | # |
---|
| 221 | #---------------------------------------------------------------------------- |
---|
| 222 | %changelog |
---|
[9078] | 223 | * Tue Nov 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.24-1 |
---|
| 224 | - updaed to 0.24 |
---|
| 225 | - added fuse-obexftp subpackage |
---|
| 226 | - built with openobex 1.7,1 and perl 5.16.3 |
---|
| 227 | |
---|
| 228 | * Sat Jul 27 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.23-2 |
---|
| 229 | - rebuild with perl-5.12.3 |
---|
| 230 | |
---|
[521] | 231 | * Sat Dec 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.23-1 |
---|
| 232 | - new upstream release |
---|
| 233 | - removed Requires: ruby(abi) (= 1.8) <BTS:799> |
---|
| 234 | |
---|
| 235 | * Thu Apr 30 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.22-4 |
---|
| 236 | - rebuild (ruby-obexftp subpackage not uploaded on i386/x86_64 yet) |
---|
| 237 | |
---|
| 238 | * Fri Oct 24 2008 Seiichirou Babasaki 0.22-3 |
---|
| 239 | - change %{perl_sitearch} -> %{perl_vendorarch} |
---|
| 240 | - added "# Maintainers: " comments. |
---|
| 241 | - changed UTF-8 encode at obexftp.vs.spec |
---|
| 242 | - Updated specfile |
---|
| 243 | |
---|
| 244 | * Wed Oct 2 2008 Seiichirou Babasaki 0.22-2 |
---|
| 245 | - change %{perl_vendorarch} -> %{perl_sitearch} |
---|
| 246 | - Updated specfile |
---|
| 247 | |
---|
| 248 | * Wed Jan 16 2008 Seiichirou Babasaki 0.20-0.5_2-1 |
---|
| 249 | - Import obexftp - Packager: Babasaki |
---|
| 250 | - Updated specfile |
---|
| 251 | |
---|
| 252 | #---------------------------------------------------------------------------- |
---|
| 253 | * Thu Sep 06 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.22-0.5.rc7 |
---|
| 254 | - updated to 0.22-rc7 |
---|
| 255 | - added pkgconfig file |
---|
| 256 | - make perl BR more specific |
---|
| 257 | |
---|
| 258 | * Mon Aug 27 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.22-0.4.rc6 |
---|
| 259 | - rebuilt for BuildID |
---|
| 260 | - updated license tag |
---|
| 261 | |
---|
| 262 | * Mon Aug 06 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.22-0.3.rc6 |
---|
| 263 | - updated to 0.22-rc6 |
---|
| 264 | - added ruby bindings (patch by Andy Shevchenko) |
---|
| 265 | - dropped upstreamed patch |
---|
| 266 | - added missing BRs for F7+ |
---|
| 267 | |
---|
| 268 | * Mon Mar 26 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.22-0.2.pre4 |
---|
| 269 | - fix segfault in obexftpd (patch by Jan Kratochvil), closes (#230991) |
---|
| 270 | |
---|
| 271 | * Fri Mar 23 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.22-0.1.pre4 |
---|
| 272 | - updated to 0.22-pre4 |
---|
| 273 | - updated patches |
---|
| 274 | |
---|
| 275 | * Fri Jan 26 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.20-3 |
---|
| 276 | - add missing disttag |
---|
| 277 | |
---|
| 278 | * Thu Jan 25 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.20-2 |
---|
| 279 | - added missing defattr |
---|
| 280 | - require openobex-devel > 1.2 |
---|
| 281 | - added missing MODULE_COMPAT Requires: to perl subpackage |
---|
| 282 | - renamed subpackages to perl/python-obexftp |
---|
| 283 | - fixed rpaths |
---|
| 284 | |
---|
| 285 | * Mon Jan 01 2007 Dominik Mierzejewski <rpm@greysector.net> - 0.20-1 |
---|
| 286 | - updated to 0.20 |
---|
| 287 | |
---|
| 288 | * Sun Jan 29 2006 Dag Wieers <dag@wieers.com> - 0.18-1 |
---|
| 289 | - Initial package. (using DAR) |
---|