author | wangke |
Fri, 18 Sep 2009 03:36:32 +0000 | |
changeset 16584 | c6125f934232 |
parent 16504 | 017fca0b6547 |
child 17865 | b7ff02e93f66 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package pilot-link |
|
3 |
# |
|
15154 | 4 |
# Copyright 2009 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16504 | 8 |
%define owner wangke |
9397 | 9 |
# bugdb: http://bugs.pilot-link.org/ |
10 |
# |
|
16431 | 11 |
|
12 |
%define OSR 3221:0.12 |
|
13 |
||
9397 | 14 |
Name: pilot-link |
14543 | 15 |
License: GPL v2 LGPL v2 |
9397 | 16 |
Group: Applications/Communications |
16125 | 17 |
Version: 0.12.4 |
9397 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
20 |
Vendor: Sun Microsystems, Inc. |
|
21 |
Summary: PalmOS link utilities |
|
22 |
Source: http://downloads.pilot-link.org.nyud.net:8090/%{name}-%{version}.tar.bz2 |
|
15155 | 23 |
#date:2007-11-23 owner:halton type:bug bugid:6632092 |
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
24 |
Patch1: pilot-link-01-man.diff |
15155 | 25 |
#date:2008-08-07 owner:halton type:branding |
13067
57ecb568a88f
* base-specs/pilot-link.spec: Add a manpage patch
jyu_mit
parents:
11315
diff
changeset
|
26 |
Patch2: pilot-link-02-manpages.diff |
9397 | 27 |
URL: http://www.pilot-link.org/ |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|
29 |
Autoreqprov: on |
|
30 |
||
31 |
%description |
|
32 |
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm] |
|
33 |
compatible handheld with Unix, Linux, and any other POSIX-compatible |
|
34 |
machine. |
|
35 |
||
36 |
%package devel |
|
37 |
Summary: pilot-link development files. |
|
38 |
Group: Development/Libraries |
|
39 |
||
40 |
%description devel |
|
41 |
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm] |
|
42 |
compatible handheld with Unix, Linux, and any other POSIX-compatible |
|
43 |
machine. |
|
44 |
This package contains the files required for developing or building |
|
45 |
programs that use pilot-link. |
|
46 |
||
47 |
%prep |
|
48 |
%setup -q -n %{name}-%{version} |
|
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
49 |
%patch1 -p0 |
16584 | 50 |
%patch2 -p1 |
9397 | 51 |
|
52 |
%build |
|
53 |
%ifos linux |
|
54 |
if [ -x /usr/bin/getconf ]; then |
|
55 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
56 |
fi |
|
57 |
%else |
|
58 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
59 |
%endif |
|
60 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
61 |
CPUS=1 |
|
62 |
fi |
|
63 |
||
16125 | 64 |
#libtoolize --force |
15952 | 65 |
aclocal $ACLOCAL_FLAGS -I m4 |
66 |
autoheader |
|
67 |
automake -a -c -f |
|
68 |
autoconf |
|
9397 | 69 |
CFLAGS="$RPM_OPT_FLAGS" \ |
15952 | 70 |
./configure --prefix=%{_prefix} \ |
9397 | 71 |
--sysconfdir=%{_sysconfdir} \ |
72 |
--mandir=%{_mandir} \ |
|
73 |
--libexecdir=%{_libexecdir} \ |
|
74 |
--libdir=%{_libdir} \ |
|
75 |
--includedir=%{_includedir}/libpisock \ |
|
76 |
--enable-libusb \ |
|
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
77 |
--enable-conduits |
9397 | 78 |
|
79 |
make -j $CPUS |
|
80 |
||
81 |
%install |
|
82 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
83 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
84 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
85 |
||
86 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
87 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
88 |
||
89 |
%clean |
|
90 |
rm -rf $RPM_BUILD_ROOT |
|
91 |
||
92 |
%files |
|
93 |
%defattr(-, root, root) |
|
94 |
%{_datadir}/pilot-link |
|
95 |
%{_bindir}/* |
|
96 |
%{_libdir}/*.so.* |
|
97 |
%{_mandir}/man1/* |
|
98 |
||
99 |
%files devel |
|
100 |
%defattr(-, root, root) |
|
101 |
%{_includedir}/libpisock/* |
|
102 |
%{_libdir}/pkgconfig |
|
103 |
%{_datadir}/aclocal |
|
104 |
||
105 |
%changelog |
|
16584 | 106 |
* Fri Sep 18 2009 - [email protected] |
107 |
- Rework patch 02 |
|
15952 | 108 |
* Mon Jun 22 2009 - [email protected] |
109 |
- Use ./configure instead of ./autogen.sh |
|
13067
57ecb568a88f
* base-specs/pilot-link.spec: Add a manpage patch
jyu_mit
parents:
11315
diff
changeset
|
110 |
* Thu Aug 07 2008 - [email protected] |
57ecb568a88f
* base-specs/pilot-link.spec: Add a manpage patch
jyu_mit
parents:
11315
diff
changeset
|
111 |
- Add a manpage patch. |
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
112 |
* Fri Nov 23 2007 - [email protected] |
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
113 |
- Add a patch. |
11174 | 114 |
* Tue Nov 13 2007 - [email protected] |
115 |
- Bump to 0.12.3 |
|
9397 | 116 |
* Wed Feb 14 2007 - [email protected] |
117 |
- Bump to 0.12.2 |
|
118 |
* Wed Dec 13 2006 - [email protected] |
|
119 |
- Bump to 0.12.1 |
|
120 |
* Wed Mar 8 2006 - <[email protected]> |
|
121 |
- Initial version |