]> git.pld-linux.org Git - packages/jpilot.git/blob - jpilot.spec
- update to 0.99.9
[packages/jpilot.git] / jpilot.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1    # use GTK+ 1.2 instead of GTK+2
4 #
5 Summary:        Desktop organizer application for PalmOS devices
6 Summary(pl):    Organizer dla urz±dzeñ PalmOS
7 Summary(pt_BR): Software para interação com o Pilot
8 Name:           jpilot
9 Version:        0.99.9
10 Release:        1
11 License:        GPL
12 Group:          X11/Applications
13 # wget is banned, so use our df.
14 # Source0Download:      http://jpilot.org/%{name}-%{version}.tar.gz
15 Source0:        %{name}-%{version}.tar.gz
16 # Source0-md5:  c39df29aeed57b84a674524856ebc290
17 Source1:        %{name}.desktop
18 Source2:        %{name}.png
19 Patch0:         %{name}-locale-names.patch
20 #PatchX:                %{name}_other.v0_99_7.diff
21 URL:            http://jpilot.org/
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  gettext-devel >= 0.16.1
25 %{?with_gtk1:BuildRequires:     gtk+-devel >= 1.2.0}
26 %{!?with_gtk1:BuildRequires:    gtk+2-devel >= 1:2.0.3}
27 BuildRequires:  intltool
28 BuildRequires:  libtool
29 BuildRequires:  openssl-devel >= 0.9.7d
30 BuildRequires:  pilot-link-devel >= 0.11.2
31 BuildRequires:  pkgconfig
32 BuildRequires:  readline-devel
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 J-Pilot is a desktop organizer application for the PalmOS devices that
37 runs under Linux with plugins support. It is similar in functionality
38 to the original Palm Desktop software.
39
40 %description -l pl
41 J-Pilot jest programem do zarz±dzania urz±dzeniami PalmOS dla Linuksa
42 z mo¿liwo¶ci± dodawania wtyczek. Posiada zbli¿on± funkcjonalno¶æ do
43 oryginalnego oprogramowania Palm Desktop.
44
45 %description -l pt_BR
46 Um software para interação com o Pilot.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51 #%patchX -p1 # UPDATE or DROP
52
53 mv -f po/{no,nb}.po
54 rm -f po/stamp-po
55
56 %{__perl} -pi -e 's@pilot_prefix/lib /usr/lib@pilot_prefix/%{_lib} /usr/%{_lib}@' configure.in
57 %{__perl} -pi -e 's@/lib/jpilot/plugins@/%{_lib}/jpilot/plugins@' */Makefile.am
58
59 %build
60 %{__gettextize}
61 %{__libtoolize}
62 %{__aclocal}
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure \
67         ABILIB="%{_lib}" \
68         %{?with_gtk1:--disable-gtk2}
69
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/jpilot.desktop
79
80 # plugins are dlopened by *.so
81 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
82
83 %find_lang %{name}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc AUTHORS BUGS README TODO icons docs/{*.png,*.jpg,*.html}
94 %attr(755,root,root) %{_bindir}/*
95 %dir %{_libdir}/%{name}
96 %dir %{_libdir}/%{name}/plugins
97 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so*
98 %{_datadir}/jpilot
99 %{_mandir}/man1/*
100 %{_desktopdir}/jpilot.desktop
This page took 0.052488 seconds and 4 git commands to generate.