]> git.pld-linux.org Git - packages/pilot-link.git/blame - pilot-link.spec
s-/usr/sbin-%{_sbindir}-
[packages/pilot-link.git] / pilot-link.spec
CommitLineData
1ffb1479 1Summary: Pilot Link - USR Pilot to Unix transfer utilities.
2Name: pilot-link
3Version: 0.9.2
73ae103c 4Release: 2
1ffb1479 5Copyright: GPL/LGPL
6Group: Applications/Communications
7Group(pl): Aplikacje/Komunikacja
8Source: ftp://ryeham.ee.ryerson.ca/pub/PalmOS/%{name}.%{version}.tar.gz
9Patch0: pilot-link-perl-install.patch
10Patch1: pilot-link.perl.patch
11Patch2: pilot-link-pixdir.patch
5f2ee97e 12Patch3: ftp://ryeham.ee.ryerson.ca/pub/PalmOS/pilot-link.sync-ldif.patch
ada98dd2 13BuildPrereq: libstdc++-devel
14BuildPrereq: ncurses-devel
15BuildPrereq: readline-devel
16BuildPrereq: tcl-devel
17BuildPrereq: tk-devel
18BuildPrereq: XFree86-devel
1ffb1479 19BuildRoot: /tmp/%{name}-%{version}-root
3a9160f7 20
21%description
1ffb1479 22This suite of tools allows you to upload and download programs
23and data files between a *nix machine and the USR Pilot. It has
24a few extra utils that will allow for things like syncing the
25Pilot's calendar app with Ical. Note that you might still need
26to consult the sources for pilot-link if you would like the
27Python, Tcl, or Perl bindings.
3a9160f7 28
29%package devel
1ffb1479 30Summary: Pilot development header files
31Group: Development/Libraries
32Group(pl): Programowanie/Biblioteki
33Requires: %{name} = %{version}
3a9160f7 34
35%description devel
1ffb1479 36This package contains the development headers that are used
37to build the pilot-link package. It also includes the static
38libraries necessary to build static pilot apps.
3a9160f7 39
40%package static
1ffb1479 41Summary: Pilot link static libraries
42Group: Development/Libraries
43Group(pl): Programowanie/Biblioteki
44Requires: %{name}-devel = %{version}
3a9160f7 45
46%description static
1ffb1479 47Pilot 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 57autoconf
1ffb1479 58%ifarch armv4l
59libtoolize --copy --force
60%endif
61
c575c953
AF
62CFLAGS="$RPM_OPT_FLAGS -I/usr/X11R6/include" \
63LDFLAGS="-s" \
1ffb1479 64CXXFLAGS="$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 70make LIBDIR="%{_datadir}"
3a9160f7 71
72%install
1ffb1479 73rm -rf $RPM_BUILD_ROOT
be387c5c 74install -d $RPM_BUILD_ROOT%{_datadir}
1ffb1479 75
76make install \
77 prefix=$RPM_BUILD_ROOT/usr
3a9160f7 78
be387c5c 79mv $RPM_BUILD_ROOT%{_libdir}/pilot-link $RPM_BUILD_ROOT%{_datadir}
1ffb1479 80
8787514f 81strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
1ffb1479 82
22f522f9 83gzip -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 90rm -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