]>
Commit | Line | Data |
---|---|---|
1ffb1479 | 1 | Summary: Pilot Link - USR Pilot to Unix transfer utilities. |
2 | Name: pilot-link | |
3 | Version: 0.9.2 | |
73ae103c | 4 | Release: 2 |
1ffb1479 | 5 | Copyright: GPL/LGPL |
6 | Group: Applications/Communications | |
7 | Group(pl): Aplikacje/Komunikacja | |
8 | Source: ftp://ryeham.ee.ryerson.ca/pub/PalmOS/%{name}.%{version}.tar.gz | |
9 | Patch0: pilot-link-perl-install.patch | |
10 | Patch1: pilot-link.perl.patch | |
11 | Patch2: pilot-link-pixdir.patch | |
5f2ee97e | 12 | Patch3: ftp://ryeham.ee.ryerson.ca/pub/PalmOS/pilot-link.sync-ldif.patch |
ada98dd2 | 13 | BuildPrereq: libstdc++-devel |
14 | BuildPrereq: ncurses-devel | |
15 | BuildPrereq: readline-devel | |
16 | BuildPrereq: tcl-devel | |
17 | BuildPrereq: tk-devel | |
18 | BuildPrereq: XFree86-devel | |
1ffb1479 | 19 | BuildRoot: /tmp/%{name}-%{version}-root |
3a9160f7 | 20 | |
21 | %description | |
1ffb1479 | 22 | This suite of tools allows you to upload and download programs |
23 | and data files between a *nix machine and the USR Pilot. It has | |
24 | a few extra utils that will allow for things like syncing the | |
25 | Pilot's calendar app with Ical. Note that you might still need | |
26 | to consult the sources for pilot-link if you would like the | |
27 | Python, Tcl, or Perl bindings. | |
3a9160f7 | 28 | |
29 | %package devel | |
1ffb1479 | 30 | Summary: Pilot development header files |
31 | Group: Development/Libraries | |
32 | Group(pl): Programowanie/Biblioteki | |
33 | Requires: %{name} = %{version} | |
3a9160f7 | 34 | |
35 | %description devel | |
1ffb1479 | 36 | This package contains the development headers that are used |
37 | to build the pilot-link package. It also includes the static | |
38 | libraries necessary to build static pilot apps. | |
3a9160f7 | 39 | |
40 | %package static | |
1ffb1479 | 41 | Summary: Pilot link static libraries |
42 | Group: Development/Libraries | |
43 | Group(pl): Programowanie/Biblioteki | |
44 | Requires: %{name}-devel = %{version} | |
3a9160f7 | 45 | |
46 | %description static | |
1ffb1479 | 47 | Pilot link static libraries. |
3a9160f7 | 48 | |
49 | %prep | |
50 | %setup -q -n %{name}.%{version} | |
1ffb1479 | 51 | %patch0 -p1 |
52 | %patch1 -p1 | |
53 | %patch2 -p1 | |
54 | %patch3 -p1 | |
3a9160f7 | 55 | |
56 | %build | |
73ae103c | 57 | autoconf |
1ffb1479 | 58 | %ifarch armv4l |
59 | libtoolize --copy --force | |
60 | %endif | |
61 | ||
c575c953 AF |
62 | CFLAGS="$RPM_OPT_FLAGS -I/usr/X11R6/include" \ |
63 | LDFLAGS="-s" \ | |
1ffb1479 | 64 | CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -fno-implicit-templates" \ |
c575c953 AF |
65 | ./configure \ |
66 | --prefix=/usr \ | |
67 | --target=%{_target_platform} \ | |
68 | --host=%{_host} | |
1ffb1479 | 69 | |
be387c5c | 70 | make LIBDIR="%{_datadir}" |
3a9160f7 | 71 | |
72 | %install | |
1ffb1479 | 73 | rm -rf $RPM_BUILD_ROOT |
be387c5c | 74 | install -d $RPM_BUILD_ROOT%{_datadir} |
1ffb1479 | 75 | |
76 | make install \ | |
77 | prefix=$RPM_BUILD_ROOT/usr | |
3a9160f7 | 78 | |
be387c5c | 79 | mv $RPM_BUILD_ROOT%{_libdir}/pilot-link $RPM_BUILD_ROOT%{_datadir} |
1ffb1479 | 80 | |
8787514f | 81 | strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* |
1ffb1479 | 82 | |
22f522f9 | 83 | gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \ |
5f2ee97e | 84 | ChangeLog README* |
3a9160f7 | 85 | |
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %clean | |
1ffb1479 | 90 | rm -rf $RPM_BUILD_ROOT |
3a9160f7 | 91 | |
92 | %files | |
1ffb1479 | 93 | %defattr(644,root,root,755) |
94 | %doc *.gz | |
8787514f | 95 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
9d2040ae | 96 | %attr(755,root,root) %{_bindir}/* |
be387c5c | 97 | %{_datadir}/pilot-link |
22f522f9 | 98 | %{_mandir}/man[17]/* |
3a9160f7 | 99 | |
100 | %files devel | |
1ffb1479 | 101 | %defattr(644,root,root,755) |
8787514f | 102 | %attr(755,root,root) %{_libdir}/lib*.so |
c9717284 | 103 | %{_includedir}/* |
3a9160f7 | 104 | |
105 | %files static | |
1ffb1479 | 106 | %defattr(644,root,root,755) |
8787514f | 107 | %{_libdir}/lib*.a |
3a9160f7 | 108 | |
109 | %changelog | |
73ae103c | 110 |