%define _requires_exceptions perl\(PDA::Pilot\) %define lib_major 9 %define libname %mklibname pisock %{lib_major} %define develname %mklibname pisock -d %define libsync %mklibname pisync %{sync_major} %define sync_major 1 Summary: File transfer utilities between Linux and PalmPilots Name: pilot-link Version: 0.12.5 Release: %mkrel 15 Source0: http://www.pilot-link.org/source/pilot-link-%{version}.tar.bz2 Source1: connect-palm-ppp.tar.bz2 Source2: 19-palm-acl-management.fdi Source3: pilot-device-file.policy Source4: 50pilot.sh Source5: 50pilot.csh # (fc) 0.12.3-3mdv fix undefined value (Fedora) Patch3: pilot-link-0.12.1-var.patch # (fc) 0.12.3-3mdv fix open calls (Fedora) Patch4: pilot-link-0.12.5-open.patch # (fc) 0.12.3-4mdv fix SJ-22 support (Michael Ekstrand) Patch5: pilot-link-0.12.3-sj22.patch #gw this code doesn't work with our setting of Werror Patch6: pilot-link-0.12.3-no-werror-messup.patch Patch7: pilot-link-0.12.3-fix-format-strings.patch # fix build with perl 5.14 Patch8: pilot-link-0.12.5-build_with_perl514.patch Patch9: pilot-link-0.12.3-libpng14.patch Patch10: pilot-link-0.12.5-automake-1.13.patch URL: http://www.pilot-link.org/ License: GPLv2+ and LGPLv2+ Group: Communications/Mobile BuildRequires: bison BuildRequires: perl-devel BuildRequires: readline-devel BuildRequires: automake BuildRequires: chrpath BuildRequires: libusb-devel BuildRequires: popt-devel BuildRequires: libpng-devel BuildRequires: bluez-devel Obsoletes: %{name}-tcl Provides: %{name}-tcl %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 Linux system. %package -n %{libname} Summary: Libraries needed to use pilot-link Group: System/Libraries Requires: %{name}-common >= %{version}-%{release} %description -n %{libname} Libraries needed to use pilot-link %package common Summary: Files used by pilot-link packages Group: Communications/Mobile Conflicts: pilot-link < 0.12.4-3 %description common Files used by pilot-link packages. %package -n %{libsync} Summary: Libraries needed to use pilot-link Group: System/Libraries %description -n %{libsync} Libraries needed to use pilot-link %package -n %{develname} Summary: PalmPilot development header files Group: Development/C Requires: %{name} = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: %{libsync} = %{version}-%{release} Obsoletes: %{name}-devel Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: libpisock-devel = %{version}-%{release} Conflicts: %{_lib}pisock8-devel Obsoletes: %{_lib}pisock9-devel %description -n %{develname} This package contains the development headers that are used to build the pilot-link package. It also includes the static libraries necessary to build static pilot apps. If you want to develop PalmPilot synchronizing applications, you'll need to install this package. %package -n perl-PDA-Pilot Summary: Perl module for Palm Group: Communications/Mobile Requires: %{name} = %{version}-%{release} %description -n perl-PDA-Pilot This package provides perl modules for supporting Palm. %prep %setup -q -a 1 %patch3 -p1 -b .var %patch4 -p1 -b .open %patch5 -p1 -b .sj22 %patch6 -p1 %patch7 -p1 %patch8 -p1 -b .perl514 %patch9 -p0 %patch10 -p1 -b .automake-1_13 %build autoreconf -fi %configure2_5x --with-perl --enable-conduits --enable-libusb --enable-threads --disable-static # parallel compilation is broken make %install %{makeinstall_std} # fix manpage install %makeinstall_std -C doc/man find %{buildroot} -name '*.la' | xargs rm mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/ cat << EOF > %{buildroot}%{_sysconfdir}/modprobe.d/visor.conf blacklist visor EOF # remove unneeded files rm -f %{buildroot}%{_libdir}/perl5/*/*/*/PDA/dump.pl # remove broken prog rm -f %{buildroot}%{_bindir}/pilot-prc # Install hal rules file. mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/ install -p -m644 %{SOURCE2} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/19-palm-acl-management.fdi # Install PolicyKit mkdir -p %{buildroot}%{_datadir}/PolicyKit/policy install -p -m644 %{SOURCE3} %{buildroot}%{_datadir}/PolicyKit/policy/pilot-device-file.policy # Install udev rules mkdir -p %{buildroot}%{_udevrulesdir} sed -e 's/MODE="0664"$/MODE="0664", ENV{ACL_MANAGE}="1"/g' doc/60-libpisock.rules > %{buildroot}%{_udevrulesdir}/60-libpisock.rules # install profile.d files mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/ install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/ %pre common if [ -e /etc/modprobe.d/visor ]; then mv /etc/modprobe.d/visor{,.conf} fi %files %doc COPYING ChangeLog README NEWS %doc connect-palm-ppp/ %doc doc/README.usb doc/TODO doc/README.libusb %{_bindir}/pilot-* %exclude %{_bindir}/pilot-undelete %{_mandir}/man1/pilot-* %{_mandir}/man7/* %{_datadir}/pilot-link %files common %config(noreplace) %{_sysconfdir}/profile.d/50pilot.* %config(noreplace) %{_sysconfdir}/modprobe.d/visor.conf %{_udevrulesdir}/*.rules %{_datadir}/hal/fdi/policy/10osvendor/19-palm-acl-management.fdi %{_datadir}/PolicyKit/policy/pilot-device-file.policy %files -n %{libname} %{_libdir}/libpisock.so.%{lib_major}* %files -n %{libsync} %{_libdir}/libpisync.so.%{sync_major}* %files -n %{develname} %{_libdir}/*.so %{_includedir}/* %{_datadir}/aclocal/pilot-link.m4 %{_libdir}/pkgconfig/* %files -n perl-PDA-Pilot %{_bindir}/pilot-undelete %{_mandir}/man1/ietf2datebook* %{_mandir}/man3/PDA::Pilot.* %{perl_vendorarch}/PDA/* %{perl_vendorarch}/auto/PDA/* %changelog * Wed Jan 16 2013 fwang <fwang> 0.12.5-15.mga3 + Revision: 388475 - correct udev rules dir + umeabot <umeabot> - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 09 2013 cjw <cjw> 0.12.5-13.mga3 + Revision: 343444 - patch10: fix build with automake 1.13 * Wed Oct 03 2012 malo <malo> 0.12.5-12.mga3 + Revision: 302524 - update RPM group * Thu May 31 2012 jquelin <jquelin> 0.12.5-11.mga3 + Revision: 252217 - perl 5.16 rebuild * Thu Sep 22 2011 tmb <tmb> 0.12.5-10.mga2 + Revision: 146867 - modprobe config files needs to end with .conf (mga #2784) * Sun Sep 18 2011 fwang <fwang> 0.12.5-9.mga2 + Revision: 145005 - bump rel - drop .la files * Sun Sep 18 2011 fwang <fwang> 0.12.5-8.mga2 + Revision: 145003 - fix build with latest libpng * Mon Jun 13 2011 sander85 <sander85> 0.12.5-7.mga2 + Revision: 105859 - fix build with perl 5.14 - Rebuild for perl 5.14 * Fri Jan 21 2011 ahmad <ahmad> 0.12.5-6.mga1 + Revision: 29403 - drop old/unneeded scriptlets - use generic conflicts - imported package pilot-link