File pilot-link.spec of Package pilot-link

#
# spec file for package pilot-link (Version 0.12.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           pilot-link
BuildRequires:  bluez-devel gcc-c++ hal libpng-devel libusb-devel pkg-config popt-devel python-devel readline-devel
Url:            http://www.pilot-link.org/
License:        GPL v2 or later; LGPL v2.1 or later
Group:          Hardware/Palm
Obsoletes:      plink
Provides:       plink
AutoReqProv:    on
Version:        0.12.3
Release:        2
Summary:        Pilot-Link Based Synchronization Development Header Files
Source:         %{name}-%{version}.tar.bz2
Source1:        10-usb-raw-pda.fdi
Patch0:         %{name}-gcc.patch
Patch1:         %{name}-0.12.1-appointment_buf.diff
Patch2:         %{name}-0.12.1-strncat.diff
Patch3:         %{name}-0.12.2-mode.diff
Patch4:         %{name}-0.12.3-man.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the development headers of libpisync.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n libpisock9
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       hal-palm
Summary:        Pilot-Link Library for Palm devices
Group:          Hardware/Palm

%description -n libpisock9
Pilot-Link Library for Palm Devices.

If you want to develop Palm synchronization applications, you will need
to install libpisock-devel.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n libpisock-devel
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       libpisock9 = %{version}
Provides:       pilot-link-devel = %{version}
Obsoletes:      pilot-link-devel <= %{version}
Summary:        PalmPilot Development Header Files
Group:          Hardware/Palm

%description -n libpisock-devel
This package contains the development headers of libpisock.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n libpisync1
License:        GPL v2 or later; LGPL v2.1 or later
Summary:        Pilot-Link based Synchronization Library for Palm devices
Group:          Hardware/Palm

%description -n libpisync1
Pilot-Link Library for Palm Devices.

If you want to develop Palm synchronization applications, you will need
to install libpisock-devel.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n libpisync-devel
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       libpisync1 = %{version}
Summary:        Pilot-Link based Synchronization Library for Palm devices
Group:          Hardware/Palm

%description -n libpisync-devel
Pilot-Link Library for Palm Devices.

If you want to develop Palm synchronization applications, you will need
to install libpisock-devel.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n hal-palm
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       hal
Summary:        HAL FDI file to identify Palm devices
Group:          Hardware/Palm

%description -n hal-palm
HAL FDI file to identify Palm devices and set pda.platform to "pda" for
the USB Raw device. In combination with hal-resmgr the desktop user
will get permission to the USB Raw device and can use the libusb
transport of libpisock.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%package -n python-pisock
License:        GPL v2 or later; LGPL v2.1 or later
Requires:       python
Summary:        Pilot-Link Library for Palm devices - Python bindings
Group:          Development/Libraries/Python

%description -n python-pisock
Pilot-Link Library for Palm Devices.

This package contains the python bindings of libpisock.



Authors:
--------
    Kenneth Albanowski <kjahds@kjahds.com>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4

%build
%{?suse_update_config:%{suse_update_config -f scripts}}
autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
	./configure \
	    --prefix=/usr \
	    --mandir=%{_mandir} \
	    --libdir=%{_libdir} \
	    --libexecdir=%{_libexecdir} \
	    --enable-threads \
	    --enable-conduits \
	    --enable-libusb
make
#
#python subpackage
cd bindings/Python
python setup.py build

%install
make DESTDIR=$RPM_BUILD_ROOT install
#chmod a+x $RPM_BUILD_ROOT/%{_libdir}/libpisock.so*
# drop udev rule somewhere else...
rm $RPM_BUILD_ROOT/usr/share/pilot-link/udev/60-libpisock.rules
rm $RPM_BUILD_ROOT/%{_libdir}/*.a
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
# Install HAL FDI file for known palm devices to set pda.platform = "palm".
# This is needed so hal-resmgr can set permission to the USB raw device. The
# USB Raw device access is needed for applications which use the libusb
# transport of libpisock.
mkdir -p  $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/
cp %{S:1} $RPM_BUILD_ROOT/usr/share/hal/fdi/information/20thirdparty/
#
#python subpackage
cd bindings/Python
mkdir -p "$RPM_BUILD_ROOT"
python setup.py install --prefix=%{_prefix} --optimize=2 --record-rpm=INSTALLED_FILES \
      --root="$RPM_BUILD_ROOT"

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libpisock9 -p /sbin/ldconfig

%post -n libpisync1 -p /sbin/ldconfig

%postun -n libpisock9 -p /sbin/ldconfig

%postun -n libpisync1 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING ChangeLog README doc/README.* doc/TODO doc/Coding*
%{_bindir}/*
%{_mandir}/man*/*
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/pix/
%dir %{_datadir}/%{name}/prc/
%{_datadir}/%{name}/pix/*
%{_datadir}/%{name}/prc/*

%files -n libpisock9
%defattr(-,root,root)
%{_libdir}/libpisock*.so.9*

%files -n libpisock-devel
%defattr(-,root,root)
%{_libdir}/libpisock*.so
%{_libdir}/pkgconfig/*
%{_datadir}/aclocal/pilot-link.m4
%{_includedir}/*
%exclude %{_includedir}/pi-sync.h

%files -n libpisync1
%defattr(-,root,root)
%{_libdir}/libpisync*.so.1*

%files -n libpisync-devel
%defattr(-,root,root)
%{_libdir}/libpisync*.so
%{_includedir}/pi-sync.h

%files -n hal-palm
%defattr(-,root,root)
%{_datadir}/hal/fdi/information/20thirdparty/10-usb-raw-pda.fdi

%files -n python-pisock -f bindings/Python/INSTALLED_FILES
%defattr(-,root,root)
%doc bindings/Python/TODO bindings/Python/README

%changelog
* Mon Sep 15 2008 dmueller@suse.de
- adjust buildrequires
* Wed Sep 10 2008 nadvornik@suse.cz
- updated to 0.12.3:
  * bugfix release
  * libpisync0 renamed to libpisync0
- added python-pisock subpackage
* Tue Dec 04 2007 nadvornik@suse.cz
- added argument mode to 'open' call
* Tue Sep 04 2007 dgollub@suse.de
- Readded HAL FDI files to identify palm devices and set
  pda.platform to "palm". This is needed for hal-resmgr to give
  the destkop user access to the USB Raw device. Applications
  which use the libusb transport of libpisock need this.
* Mon Aug 06 2007 coolo@suse.de
- Adding versions to obsoletes
* Thu Aug 02 2007 sbrabec@suse.cz
- Remove broken IT_PROG_INTLTOOL m4 definition.
* Fri Jul 27 2007 coolo@suse.de
- fix m4 file
* Mon Jul 23 2007 dgollub@suse.de
- splitted pilot-link packages into:
  o pilot-link
  o libpisock9
  o libpisock-devel
  o libpisync0
  o libpisync-devel
- added bluez-libs to BuildRequires for HotSync via Bluetooth
- removed libtool helper files
- removed hal fdi file for platform.pda (upstream)
- updated to version 0.12.2
  o libpisock/dlp.c: Integrated Scott Gruby's big record fix: reading
  records that have the maximum allowed size could lock up some
  devices. We now read maxRecordSize-100 and perform a second read
  if the record is large. Also some casts to make compilers happy,
  and a safeguard when reading username / password to properly
  terminate the strings.
  o libpisock/usb.c: More sanity to catch both Sony models, including
  the NRxx series handhelds
  o libpisock/usb.c: Minor fix for Sony Clie detection
  o src/pilot-650foto.c: Extract treo 650 photos
  o libpisock/usb.c: Fix a bug where we were looking at
  override_device instead of known_device[i]. Removed
  override_device, given that nothing sets it, anywhere.
* Wed May 23 2007 wstephenson@suse.de
- Add libusb-devel to pilot-link-devel's Requires:
* Wed May 16 2007 olh@suse.de
- Buildrequires libusb -> libusb-devel
  Remove duplicate --enable-libusb
  Remove unneded Requires libusb
* Wed Jan 10 2007 prusnak@suse.cz
- fixed uninitialized variable (appointment_buf.diff) [#230786]
- fixed strncat overflow (strncat.diff)
* Mon Nov 13 2006 dgollub@suse.de
- removed resmgr patch [#218662]
* Mon Nov 06 2006 postadal@suse.cz
- fixed gcc issues (gcc.patch) [#213270, #141152]
* Thu Sep 21 2006 dgollub@suse.de
- fixed problem with missing flags of known_devices
  in USB_check_device()
* Tue Sep 05 2006 dgollub@suse.de
- update to version 0.12.1
  o code cleanup in libpisock libpisync src ...
- removed udev rule (hal-resmgr is used instead)
* Fri Sep 01 2006 dgollub@suse.de
- update to version 0.12.0
  o libusb support
  o added extendend support of contact for newer palm devices
  o added support for:
  	- extended contact data format
  	- veo traveler data format
	- VersaMail data format
  o most userland binaries got renamend
- added fdi file to mark palm devices as pda.platform
- added patch for LiveDrive devices (Palm T|X and others..)
* Mon May 29 2006 lmichnovic@suse.cz
- fixed write beyond array range (array_overflow.diff) [#177546]
- appended uninitialized.diff
- added Requires: libstdc++-devel for devel package
* Sun May 07 2006 jpr@suse.de
- Fix pilot-link-0.11.8-serial.diff to not think it lost the packet
  when the poll was successful, result < 0 vs result <= 0)
  (part of #165455)
* Tue Apr 25 2006 dgollub@suse.de
- reenabled patch for pilot-link.m4.in
- fixed systemwide warning about underquoted definition
  of AC_PILOT_LINK_HOOK
* Wed Mar 29 2006 dgollub@suse.de
- fixed buffer overflow in realpath calling for version 0.11.8 [#153944]
* Wed Mar 29 2006 dgollub@suse.de
- downgrade to pilot-link version 0.11.8
  0.12.0-prev4 is not supposed to be packaged [#161722]
- added pkgconfig files: pilot-link.pc pilot-link-pp.pc
* Mon Mar 27 2006 postadal@suse.cz
- fixed uninitialized variable (uninitialized2.patch) [#160933]
  * fixed serial support on 64 bit archs
* Tue Feb 28 2006 postadal@suse.cz
- fixed buffer overflow in realpath calling (realpath.patch) [#153944]
* Mon Feb 20 2006 postadal@suse.cz
- fixed uninitialized variable (uninitialized.diff) [#152042]
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 09 2006 postadal@suse.cz
- added libpng to neededforbuild
- fixed uninitialized variable (uninitialized.diff) [#141152]
* Wed Oct 05 2005 mmj@suse.de
- fix printf call
- don't paper over aliasing bugs by just making the warning, go
  away wrongly.  Especially not, when it's already compiled with
  -fno-strict-aliasing
* Wed Sep 28 2005 wstephenson@suse.de
- backport extern "C" fixes from CVS so C++ use of the library works
* Tue Sep 20 2005 postadal@suse.cz
- fixed uninitialized variables (uninitialized.diff)
* Mon Aug 29 2005 postadal@suse.cz
- fixed resmgr.diff patch
- added patch from upstream to fix serial support (serial.diff)
* Sat Aug 06 2005 ro@suse.de
- fix pkgconfig dir
* Fri Aug 05 2005 lmichnovic@suse.cz
- update to version 0.12.0-pre4
- fixed gcc warnings
* Tue Mar 30 2004 postadal@suse.cz
- fixed underquoted definition of AC_PILOT_LINK_HOOK [#37487]
* Tue Mar 23 2004 postadal@suse.cz
- fixed warnings in compilation
- added requires for devel package
* Fri Mar 19 2004 adrian@suse.de
- add resmgr support
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Tue Jul 29 2003 postadal@suse.cz
- updated to version 0.11.8
  * you no longer have to hit HotSync on the Palm first, before launching your
  desktop conduits. You can hit HotSync first, or launch your desktop
  conduit/tools first, and it will still make an attempt to connect.
  This also works with gnome-pilot and J-Pilot as well.
  * pilot-foto conduit to fetch/convert photos taken with a Palm Zire71
  camera device
* Wed May 14 2003 mmj@suse.de
- Package pilot-link.m4 to -devel
* Fri Jan 17 2003 postadal@suse.cz
- updated to version 0.11.7
  * new manpages
  * deprecated pilot-mail, in favor of pilot-mailsync.
* Fri Oct 25 2002 uli@suse.de
- update -> 0.11.5
* Tue Jun 18 2002 meissner@suse.de
- run auto* tools, fixed configure.in (now uses C++ unconditionally)
* Wed May 15 2002 hhetter@suse.de
- updated to version 0.9.5
- adapted timesync feature
* Tue Apr 23 2002 rommel@suse.de
- consistent use of _libdir
* Mon Jun 18 2001 schwab@suse.de
- Fix friend declarations.
* Wed Apr 11 2001 pblaha@suse.cz
- add timesync feature from http://www.klawitter.de/palm/
* Tue Mar 13 2001 ro@suse.de
- fixed buildrooting
* Mon Nov 27 2000 grimmer@suse.de
- renamed from "plink" to "pilot-link"
- moved perl modules (and required patches) into separate
  package perl-PDA-Pilot
- split into "pilot-link" and "pilot-link-devel"
- moved files from /usr/lib/pix to /usr/lib/pilot-link
- added BuildRoot and Group Tag
* Thu Sep 21 2000 ro@suse.de
- fixed for perl-5.6
- bzipped source
* Sun Apr 09 2000 bk@suse.de
- added suse update config macro
* Thu Mar 02 2000 uli@suse.de
- moved man pages to %%{_mandir}
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu May 27 1999 uli@suse.de
- update 0.9.1 -> 0.9.3
* Thu May 27 1999 uli@suse.de
- added libpicc.a
* Wed Feb 17 1999 stefan@suse.de
- New package
openSUSE Build Service is sponsored by