pilot-link.spec revision 20307
15341N/A#
15341N/A# spec file for package pilot-link
15341N/A#
15341N/A# Copyright 2009 Sun Microsystems, Inc.
15341N/A# This file and all modifications and additions to the pristine
15341N/A# package are under the same license as the package itself.
15341N/A#
17185N/A%define owner wangke
15341N/A# bugdb: http://bugs.pilot-link.org/
15341N/A#
17181N/A
15341N/A%define OSR 3221:0.12
15341N/A
15341N/AName: pilot-link
15341N/ALicense: GPL v2 LGPL v2
17575N/AGroup: Applications/Communications
15341N/AVersion: 0.12.5
15341N/ARelease: 1
15341N/ADistribution: Java Desktop System
15341N/AVendor: Other
15341N/ASummary: PalmOS link utilities
15955N/ASource: http://downloads.pilot-link.org/%{name}-%{version}.tar.bz2
16995N/A#date:2007-11-23 owner:wangke type:bug bugid:6632092
16995N/APatch1: pilot-link-01-man.diff
15531N/A#date:2008-08-07 owner:wangke type:branding
16995N/APatch2: pilot-link-02-manpages.diff
15341N/A#date:2010-08-02 owner:kewang type:bug
15341N/APatch3: pilot-link-03-libpng.diff
15341N/AURL: http://www.pilot-link.org/
15341N/ABuildRoot: %{_tmppath}/%{name}-%{version}-root
17495N/AAutoreqprov: on
15406N/A
15341N/A%description
15341N/Apilot-link is a suite of tools used to connect your Palm or PalmOS[tm]
15341N/Acompatible handheld with Unix, Linux, and any other POSIX-compatible
15341N/Amachine.
15341N/A
15341N/A%package devel
15341N/ASummary: pilot-link development files.
15341N/AGroup: Development/Libraries
15341N/A
15341N/A%description devel
15341N/Apilot-link is a suite of tools used to connect your Palm or PalmOS[tm]
15341N/Acompatible handheld with Unix, Linux, and any other POSIX-compatible
15341N/Amachine.
15341N/AThis package contains the files required for developing or building
15341N/Aprograms that use pilot-link.
15341N/A
15341N/A%prep
15341N/A%setup -q -n %{name}-%{version}
15341N/A%patch1 -p0
15341N/A%patch2 -p1
15341N/A%patch3 -p1
15341N/A
15341N/A%build
15341N/A%ifos linux
15341N/Aif [ -x /usr/bin/getconf ]; then
15341N/A CPUS=`getconf _NPROCESSORS_ONLN`
15341N/Afi
15341N/A%else
15341N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15341N/A%endif
15428N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15428N/A CPUS=1
15341N/Afi
15341N/A
15341N/A#libtoolize --force
15341N/Aaclocal $ACLOCAL_FLAGS -I m4
15341N/Aautoheader
15341N/Aautomake -a -c -f
15341N/Aautoconf
15341N/ACFLAGS="$RPM_OPT_FLAGS" \
15341N/A./configure --prefix=%{_prefix} \
15341N/A --sysconfdir=%{_sysconfdir} \
15341N/A --mandir=%{_mandir} \
15341N/A --libexecdir=%{_libexecdir} \
15341N/A --libdir=%{_libdir} \
16120N/A --includedir=%{_includedir}/libpisock \
15406N/A --enable-libusb \
15500N/A --enable-conduits
16995N/A
16995N/Amake -j $CPUS
15500N/A
15341N/A%install
15500N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
15341N/Amake install DESTDIR=$RPM_BUILD_ROOT
15341N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
15341N/A
15341N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
15341N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
15341N/A
15341N/A%clean
15341N/Arm -rf $RPM_BUILD_ROOT
15341N/A
15341N/A%files
15341N/A%defattr(-, root, root)
15341N/A%{_datadir}/pilot-link
15341N/A%{_bindir}/*
15341N/A%{_libdir}/*.so.*
15341N/A%{_mandir}/man1/*
15341N/A
15341N/A%files devel
15341N/A%defattr(-, root, root)
15341N/A%{_includedir}/libpisock/*
15341N/A%{_libdir}/pkgconfig
15341N/A%{_datadir}/aclocal
15341N/A
15341N/A%changelog
15341N/A* Wed Oct 27 2010 - brian.cameron@oracle.com
15341N/A- Bump to 0.12.5.
15341N/A* Fri Sep 18 2009 - ke.wang@sun.com
15406N/A- Rework patch 02
15406N/A* Mon Jun 22 2009 - halton.huo@sun.com
15406N/A- Use ./configure instead of ./autogen.sh
15406N/A* Thu Aug 07 2008 - jijun.yu@sun.com
15406N/A- Add a manpage patch.
15406N/A* Fri Nov 23 2007 - jijun.yu@sun.com
15406N/A- Add a patch.
15406N/A* Tue Nov 13 2007 - jijun.yu@sun.com
15406N/A- Bump to 0.12.3
15406N/A* Wed Feb 14 2007 - jijun.yu@sun.com
15406N/A- Bump to 0.12.2
15406N/A* Wed Dec 13 2006 - halton.huo@sun.com
15341N/A- Bump to 0.12.1
15341N/A* Wed Mar 8 2006 - <laszlo.peter@sun.com>
15341N/A- Initial version
15341N/A