pilot-link.spec revision 15905
18285N/A#
18285N/A# spec file for package pilot-link
18285N/A#
12519N/A# Copyright 2009 Sun Microsystems, Inc.
12519N/A# This file and all modifications and additions to the pristine
12519N/A# package are under the same license as the package itself.
12519N/A#
12519N/A# Owner: halton
12519N/A# bugdb: http://bugs.pilot-link.org/
18285N/A#
12519N/AName: pilot-link
License: GPL v2 LGPL v2
Group: Applications/Communications
Version: 0.12.3
Release: 1
Distribution: Java Desktop System
Vendor: Sun Microsystems, Inc.
Summary: PalmOS link utilities
Source: http://downloads.pilot-link.org.nyud.net:8090/%{name}-%{version}.tar.bz2
#date:2007-11-23 owner:jyu_mit type:bug bugid:6632092
Patch1: pilot-link-01-man.diff
#date:2008-08-07 owner:jyu_mit type:branding
Patch2: pilot-link-02-manpages.diff
URL: http://www.pilot-link.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Autoreqprov: on
%description
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm]
compatible handheld with Unix, Linux, and any other POSIX-compatible
machine.
%package devel
Summary: pilot-link development files.
Group: Development/Libraries
%description devel
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm]
compatible handheld with Unix, Linux, and any other POSIX-compatible
machine.
This package contains the files required for developing or building
programs that use pilot-link.
%prep
%setup -q -n %{name}-%{version}
%patch1 -p0
%patch2 -p0
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
CFLAGS="$RPM_OPT_FLAGS" \
./autogen.sh --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--libexecdir=%{_libexecdir} \
--libdir=%{_libdir} \
--includedir=%{_includedir}/libpisock \
--enable-libusb \
--enable-conduits
make -j $CPUS
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_datadir}/pilot-link
%{_bindir}/*
%{_libdir}/*.so.*
%{_mandir}/man1/*
%files devel
%defattr(-, root, root)
%{_includedir}/libpisock/*
%{_libdir}/pkgconfig
%{_datadir}/aclocal
%changelog
* Thu Aug 07 2008 - jijun.yu@sun.com
- Add a manpage patch.
* Fri Nov 23 2007 - jijun.yu@sun.com
- Add a patch.
* Tue Nov 13 2007 - jijun.yu@sun.com
- Bump to 0.12.3
* Wed Feb 14 2007 - jijun.yu@sun.com
- Bump to 0.12.2
* Wed Dec 13 2006 - halton.huo@sun.com
- Bump to 0.12.1
* Wed Mar 8 2006 - <laszlo.peter@sun.com>
- Initial version