]> git.pld-linux.org Git - packages/pilot-link.git/blob - pilot-link.spec
cde557db64ed4088c3974e1addaebd5f8882c99b
[packages/pilot-link.git] / pilot-link.spec
1 Summary:        File transfer utilities between Linux and PalmPilots
2 Name:           pilot-link
3 Version:        0.9.3
4 Release:        5
5 License:        GPL/LGPL
6 Group:          Applications/Communications
7 Group(pl):      Aplikacje/Komunikacja
8 Source0:        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
12 Patch3:         pilot-link.sync-ldif.patch
13 Patch4:         pilot-link-DESTDIR.patch
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  ncurses-devel >= 5.0
16 BuildRequires:  readline-devel >= 4.1
17 BuildRequires:  tcl-devel
18 BuildRequires:  tk-devel
19 BuildRequires:  XFree86-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This suite of tools allows you to upload and download programs and
24 data files between a Linux/UNIX machine and the PalmPilot. It has a
25 few extra utils that will allow for things like syncing the
26 PalmPilot's calendar app with Ical. Note that you might still need to
27 consult the sources for pilot-link if you would like the Python, Tcl,
28 or Perl bindings.
29
30 %package devel
31 Summary:        Pilot development header files
32 Group:          Development/Libraries
33 Group(fr):      Development/Librairies
34 Group(pl):      Programowanie/Biblioteki
35 Requires:       %{name} = %{version}
36
37 %description devel
38 This package contains the development headers that are used to build
39 the pilot-link package. It also includes the static libraries
40 necessary to build static pilot apps.
41
42 %package static
43 Summary:        Pilot link static libraries
44 Group:          Development/Libraries
45 Group(fr):      Development/Librairies
46 Group(pl):      Programowanie/Biblioteki
47 Requires:       %{name}-devel = %{version}
48
49 %description static
50 Pilot link static libraries.
51
52 %prep 
53 %setup -q -n %{name}.%{version}
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57 %patch3 -p1
58 %patch4 -p1
59
60 %build
61 chmod +w configure
62 autoconf
63 %ifarch armv4l
64 libtoolize --copy --force
65 %endif
66
67 CFLAGS="$RPM_OPT_FLAGS -I/usr/X11R6/include"
68 LDFLAGS="-s"
69 CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -fno-implicit-templates"
70 export CFLAGS LDFLAGS CXXFLAGS
71 %configure
72
73 %{__make} LIBDIR="%{_datadir}"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_datadir}
78
79 %{__make} install DESTDIR=$RPM_BUILD_ROOT
80
81 mv $RPM_BUILD_ROOT%{_libdir}/pilot-link $RPM_BUILD_ROOT%{_datadir}
82
83 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
84
85 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
86         ChangeLog README*
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc *.gz
97 %attr(755,root,root) %{_libdir}/lib*.so.*.*
98 %attr(755,root,root) %{_bindir}/*
99 %{_datadir}/pilot-link
100 %{_mandir}/man[17]/*
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/lib*.so
105 %{_includedir}/*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/lib*.a
This page took 0.04025 seconds and 2 git commands to generate.