author | yippi |
Thu, 31 May 2012 20:16:52 +0000 | |
changeset 22481 | 1ff6784d9b6f |
parent 21815 | e407ac1ee44b |
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 |
20266 | 17 |
Version: 0.12.5 |
9397 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
17865 | 20 |
Vendor: Other |
9397 | 21 |
Summary: PalmOS link utilities |
20266 | 22 |
Source: http://downloads.pilot-link.org/%{name}-%{version}.tar.bz2 |
21815
e407ac1ee44b
Update spec-file and patch owners to reference actual owners instead of Halton Huo and Jerry Tan.
yippi
parents:
20266
diff
changeset
|
23 |
#date:2007-11-23 owner:wangke 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 |
21815
e407ac1ee44b
Update spec-file and patch owners to reference actual owners instead of Halton Huo and Jerry Tan.
yippi
parents:
20266
diff
changeset
|
25 |
#date:2008-08-07 owner:wangke 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 |
19980 | 27 |
#date:2010-08-02 owner:kewang type:bug |
28 |
Patch3: pilot-link-03-libpng.diff |
|
9397 | 29 |
URL: http://www.pilot-link.org/ |
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|
31 |
Autoreqprov: on |
|
32 |
||
33 |
%description |
|
34 |
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm] |
|
35 |
compatible handheld with Unix, Linux, and any other POSIX-compatible |
|
36 |
machine. |
|
37 |
||
38 |
%package devel |
|
39 |
Summary: pilot-link development files. |
|
40 |
Group: Development/Libraries |
|
41 |
||
42 |
%description devel |
|
43 |
pilot-link is a suite of tools used to connect your Palm or PalmOS[tm] |
|
44 |
compatible handheld with Unix, Linux, and any other POSIX-compatible |
|
45 |
machine. |
|
46 |
This package contains the files required for developing or building |
|
47 |
programs that use pilot-link. |
|
48 |
||
49 |
%prep |
|
50 |
%setup -q -n %{name}-%{version} |
|
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
51 |
%patch1 -p0 |
16584 | 52 |
%patch2 -p1 |
19980 | 53 |
%patch3 -p1 |
9397 | 54 |
|
55 |
%build |
|
56 |
%ifos linux |
|
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
62 |
%endif |
|
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
16125 | 67 |
#libtoolize --force |
15952 | 68 |
aclocal $ACLOCAL_FLAGS -I m4 |
69 |
autoheader |
|
70 |
automake -a -c -f |
|
71 |
autoconf |
|
9397 | 72 |
CFLAGS="$RPM_OPT_FLAGS" \ |
15952 | 73 |
./configure --prefix=%{_prefix} \ |
9397 | 74 |
--sysconfdir=%{_sysconfdir} \ |
75 |
--mandir=%{_mandir} \ |
|
76 |
--libexecdir=%{_libexecdir} \ |
|
77 |
--libdir=%{_libdir} \ |
|
78 |
--includedir=%{_includedir}/libpisock \ |
|
79 |
--enable-libusb \ |
|
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
80 |
--enable-conduits |
9397 | 81 |
|
82 |
make -j $CPUS |
|
83 |
||
84 |
%install |
|
85 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
86 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
87 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
88 |
||
89 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
|
90 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';' |
|
91 |
||
92 |
%clean |
|
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
95 |
%files |
|
96 |
%defattr(-, root, root) |
|
97 |
%{_datadir}/pilot-link |
|
98 |
%{_bindir}/* |
|
99 |
%{_libdir}/*.so.* |
|
100 |
%{_mandir}/man1/* |
|
101 |
||
102 |
%files devel |
|
103 |
%defattr(-, root, root) |
|
104 |
%{_includedir}/libpisock/* |
|
105 |
%{_libdir}/pkgconfig |
|
106 |
%{_datadir}/aclocal |
|
107 |
||
108 |
%changelog |
|
20266 | 109 |
* Wed Oct 27 2010 - [email protected] |
110 |
- Bump to 0.12.5. |
|
16584 | 111 |
* Fri Sep 18 2009 - [email protected] |
112 |
- Rework patch 02 |
|
15952 | 113 |
* Mon Jun 22 2009 - [email protected] |
114 |
- Use ./configure instead of ./autogen.sh |
|
13067
57ecb568a88f
* base-specs/pilot-link.spec: Add a manpage patch
jyu_mit
parents:
11315
diff
changeset
|
115 |
* Thu Aug 07 2008 - [email protected] |
57ecb568a88f
* base-specs/pilot-link.spec: Add a manpage patch
jyu_mit
parents:
11315
diff
changeset
|
116 |
- Add a manpage patch. |
11235
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
117 |
* Fri Nov 23 2007 - [email protected] |
bb4289dbe3eb
*SUNWpilot-link.spec: Remove some unuseful files from the package.
jyu_mit
parents:
11174
diff
changeset
|
118 |
- Add a patch. |
11174 | 119 |
* Tue Nov 13 2007 - [email protected] |
120 |
- Bump to 0.12.3 |
|
9397 | 121 |
* Wed Feb 14 2007 - [email protected] |
122 |
- Bump to 0.12.2 |
|
123 |
* Wed Dec 13 2006 - [email protected] |
|
124 |
- Bump to 0.12.1 |
|
125 |
* Wed Mar 8 2006 - <[email protected]> |
|
126 |
- Initial version |