%define ver 0.12.5 %define srcver %{ver} %define rel 4%{?_dist_release} %define support_perl 0 Name: pilot-link Summary: File transfer utilities between Linux and PalmPilots. Summary(ja): Linux と Palm handheld device を接続する為のユーティリティ Version: %{ver} Release: %{rel} Epoch: 1 # libpisock/md5.c Public Domain # libpisock/blob.c LGPLv2+ # libpisock/contact.c GPLv2 # kittykiller.c GPLv2+ License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain Group: Applications/Communications URL: http://www.pilot-link.org/ Source0: http://downloads.pilot-link.org/pilot-link-%{version}.tar.bz2 Source1: connect-palm-ppp.tar.bz2 Source2: 60-libpisock.rules.vine Source3: 60-pilot.perms Patch0: pilot-link-0.12.1-var.patch Patch1: pilot-link-0.12.2-open.patch Patch2: pilot-link-0.12.3-clio.patch Patch3: pilot-link-0.12.5-mp.patch Patch4: pilot-link-0.12.5-redefinePerlsymbols.patch Patch5: pilot-link-0.12.5-compiler_warnings.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: bison >= 1.35 BuildRequires: libusb-devel >= 0.1 BuildRequires: libpng-devel BuildRequires: readline-devel BuildRequires: bluez-libs-devel BuildRequires: popt-devel %if %{support_perl} BuildRequires: perl %endif Vendor: Project Vine Distribution: Vine Linux %description This suite of tools allows you to upload and download programs and data files between a Linux/UNIX machine and the PalmPilot. It has a few extra utils that will allow for things like syncing the PalmPilot's calendar app with Ical. Note that you might still need to consult the sources for pilot-link if you would like the Python, Tcl, or Perl bindings. Install pilot-link if you want to synchronize your Palm with your Vine Linux system. %description -l ja このツールを使うと、Linux/Unix マシンと Palm handheld device の間で プログラムやファイルを転送することができます。このツールには、Palm handheld device の予定表と Ical との間で同期を可能にするようないくつ かのユーティリティが付属しています。もし Python や Tcl、あるいは Perl bindingsを使用する場合は、pilot-link の source を調べる必要が あることに注意してください。 Palm handheld device を Vine Linux システムで同期させたい場合は pilot-link をインストールします。 %package libs Summary: PalmPilot libraries Summary(ja): Palm handheld ライブラリ Group: System Environment/Libraries %description libs Libraries for applications communicating with PalmPilot %package devel Summary: PalmPilot development header files. Summary(ja): Palm handheld プログラム開発用のヘッダ ファイル Group: Development/Libraries Requires: %{name}-libs = %{epoch}:%{version}-%{release} %description devel This package contains the development headers that are used to build the pilot-link package. If you want to develop PalmPilot synchronizing applications, you'll need to install pilot-link-devel. %description devel -l ja このパッケージには、pilot-link パッケージを構築する為に必要な開発用の ヘッダファイルが含まれます。 Palm handheld deviceと同期するアプリケーションを開発したい場合は、 pilot-link-devel パッケージをインストールする必要があります。 %prep %setup -q -a 1 %patch0 -p1 -b .var %patch1 -p1 -b .open %patch2 -p1 -b .clio %patch3 -p1 -b .mp %patch4 -p1 -b .symbol %patch5 -p1 -b .compiler iconv -f windows-1252 -t UTF8 doc/README.usb > doc/README.usb.aux mv doc/README.usb.aux doc/README.usb iconv -f windows-1252 -t UTF8 ChangeLog > ChangeLog.aux mv ChangeLog.aux ChangeLog iconv -f windows-1252 -t UTF8 NEWS > NEWS.aux mv NEWS.aux NEWS %build %configure \ --disable-static \ --enable-conduits \ --enable-libusb \ --with-libpng \ --with-bluez \ --without-python \ --without-tcl \ --without-java \ %if %{support_perl} --with-perl %else --without-perl %endif sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} make install -C doc/man DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir} %if %{support_perl} if test -f bindings/Perl/Makefile.PL ; then cd bindings/Perl perl -pi -e 's|^\$libdir =.*|\$libdir = "%{buildroot}%{_libdir}";|g' Makefile.PL CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make cd ../.. fi %endif %if %{support_perl} make install -C bindings/Perl rm -f $RPM_BUILD_ROOT%{_libdir}/perl5/vendor_perl/%{perl_version}/*/auto/PDA/Pilot/Pilot.bs \ $RPM_BUILD_ROOT%{_libdir}/perl5/site_perl/*/*/*/PDA/Pilot/.packlist %endif # install modified udev rules. #mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d #install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libpisock.rules # remove files we don't want to include rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la # remove broken prog rm -f $RPM_BUILD_ROOT%{_bindir}/pilot-prc # install visor configs to share/udev install -p -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pilot-link/udev # now that rules are moved out HAL, install to /lib/udev/ install -d $RPM_BUILD_ROOT/lib/udev/rules.d/ install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/60-libpisock.rules %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING ChangeLog README NEWS AUTHORS doc/README.* %{_bindir}/* %{_mandir}/man1/* %files libs %defattr(-,root,root) %doc COPYING.LIB /lib/udev/rules.d/60-libpisock.rules #{_sysconfdir}/udev/rules.d/60-libpisock.rules %{_libdir}/*.so.* %if %{support_perl} %{_libdir}/perl5/vendor_perl/*/*/*/PDA %{_libdir}/perl5/vendor_perl/*/*/PDA %endif %{_datadir}/pilot-link %{_mandir}/man7/* %files devel %defattr(-, root, root) %{_libdir}/*.so #{_libdir}/*.la %{_libdir}/pkgconfig/pilot-link.pc %{_includedir}/* %{_datadir}/aclocal/*.m4 %changelog * Sun Aug 02 2015 Yoji TOYODA 0.12.5-4 - rebuild with readline-6.3 * Tue Dec 16 2014 Ryoichi INAGAKI 0.12.5-3 - added Patch1, 2, 3, 4 and 5 from Fedora - added Source3 from Fedora - built with libpng 1.6.12 - updated devel description - moved main package to Applications/Communications Group * Sat Sep 13 2014 Toshiharu Kudoh 0.12.5-2 - rebuilt with current environment * Thu Sep 30 2010 Ryoichi INAGAKI 0.12.5-1 - new upstream release - split libraries to subpackage - built with rpm-4.8.1 for pkg-config - added URL tag * Wed Aug 26 2009 Ryoichi INAGAKI 0.12.4-1 - new upstream release - removed static libraries from devel package - added --with-bluez to %%configure (added also BR: bluez-libs-devel) * Mon Sep 08 2008 Shu KONNO 0.12.0-1vl5 - applied new versioning policy, spec in utf-8 * Sat Sep 30 2006 Kazutaka HARADA 0.12.0-0vl2 - add modified udev rules (Source2). * Sat Sep 02 2006 Kazutaka HARADA 0.12.0-0vl1 - source update. - change Group to Applications/Other - use %%configure macro instead of ./configure - delete unused configure options for itcl and tk. - use '%%__make install' to use DESTDIR variable. - comment out '%%makeinstall -C doc/man'(not required to install man). - add 60-libpisock.rules for udev in %%files. - add pilot-link.pc in %%files for -devel. - add Requires libusb and BuildRequires libusb-devel >= 0.1. * Fri Jan 6 2006 AKIYAMA Kazuhito 0.11.8-0vl3 - rebuild for VineSeed - add "%%{epoch}:" to Requires in pilot-link-devel * Sun Nov 07 2004 Kazutaka Harada 0.11.8-0vl2 - convert spec from SJIS to EUC. * Wed Nov 03 2004 Kazutaka Harada 0.11.8-0vl1 - source update - add japanese translation(summary & description). - use License tag instead of Copyright. - change BuildRequires XFree86-devel to XOrg-devel. - add BuildRequires readline-devel. - add new Patch9.(avoid make error "undefined reference to `pow'") * Fri May 23 2003 Tomoya TAKA 0.11.7-0vl2 - disuse %%configure macro to avoid unsuitable prefixed filename * Mon Mar 24 2003 KOBAYASHI R. Taizo 0.11.7-0vl1 - source update * Fri Jan 04 2002 MATSUBAYASHI Kohji 0.9.5-0vl2 - unfortunately added Epoch 1 (the previous version was 0.9.5.pre5-0vl2. Sigh...) * Sat Oct 13 2001 - 0.9.5-0vl1 - upgrade to 0.9.5 - add COPYING.LIB to %doc * Mon Mar 26 2001 Akira TAGOH 0.9.5-pre5-0vl1 - New upstream release. - Fixed defattr stuff for devel package. - Use rpmmacros. * Wed Oct 20 1999 Preston Brown - upgrade to pilot-link 0.9.3, rewrite spec. * Tue Apr 06 1999 Preston Brown - strip binaries * Tue Mar 30 1999 Preston Brown - added missing files from devel subpackage * Fri Mar 26 1999 Preston Brown - move /usr/lib/pix to /usr/lib/pilot-link (dumb, BAD name) * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) * Wed Feb 24 1999 Preston Brown - Injected new description and group. * Thu Jan 21 1999 Bill Nottingham - arm fix * Thu Sep 24 1998 Michael Maher - cleaned up spec file, updated package * Tue May 19 1998 Michael Maher - updated rpm * Thu Jan 29 1998 Otto Hammersmith - added changelog - updated to 0.8.9 - removed explicit requires for /usr/bin/perl