]> git.pld-linux.org Git - packages/jpilot.git/blob - jpilot.spec
- added locale-names patch (no->nb), switched to vfolders, cleanup
[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.7
10 Release:        2
11 License:        GPL
12 Group:          X11/Applications
13 Source0:        http://jpilot.org/%{name}-%{version}.tar.gz
14 # Source0-md5:  11bb7236702e2e4c7e3d06372bdc9695
15 Source1:        %{name}.desktop
16 Source2:        %{name}.png
17 Patch0:         %{name}-locale-names.patch
18 URL:            http://jpilot.org/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  gettext-devel
22 %{?with_gtk1:BuildRequires:     gtk+-devel >= 1.2.0}
23 %{!?with_gtk1:BuildRequires:    gtk+2-devel >= 2.0.3}
24 BuildRequires:  intltool
25 BuildRequires:  libtool
26 BuildRequires:  openssl-devel >= 0.9.7d
27 BuildRequires:  pilot-link-devel >= 0.11.5
28 BuildRequires:  readline-devel
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 J-Pilot is a desktop organizer application for the PalmOS devices that
33 runs under Linux with plugins support. It is similar in functionality
34 to the original Palm Desktop software.
35
36 %description -l pl
37 J-Pilot jest programem do zarz±dzania urz±dzeniami PalmOS dla Linuksa
38 z mo¿liwo¶ci± dodawania wtyczek. Posiada zbli¿on± funkcjonalno¶æ do
39 oryginalnego oprogramowania Palm Desktop.
40
41 %description -l pt_BR
42 Um software para interação com o Pilot.
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 mv -f po/{no,nb}.po
49
50 %build
51 %{?with_gtk1:echo 'AC_DEFUN([AM_PATH_GTK_2_0],[$3])' >> acinclude.m4}
52 %{!?with_gtk1:echo 'AC_DEFUN([AM_PATH_GTK],[$3])' >> acinclude.m4}
53 %{__gettextize}
54 %{__libtoolize}
55 %{__aclocal}
56 %{__autoconf}
57 %{__automake}
58 %configure \
59         %{!?with_gtk1:--enable-gtk2}
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/jpilot.desktop
70
71 # plugins are dlopened by *.so
72 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.la
73
74 %find_lang %{name}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc AUTHORS BUGS UPGRADING README TODO icons docs/{*.png,*.jpg,*.html}
85 %attr(755,root,root) %{_bindir}/*
86 %dir %{_libdir}/%{name}
87 %dir %{_libdir}/%{name}/plugins
88 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so*
89 #%{_datadir}/jpilot
90 %{_mandir}/man1/*
91 %{_desktopdir}/jpilot.desktop
This page took 0.038902 seconds and 4 git commands to generate.