]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without libkonq # importing the right click menu of konqueror | |
4 | %bcond_without libkjsembed # with libkjsembed | |
5 | # | |
6 | Summary: Krusader is a filemanager for KDE 3 | |
7 | Summary(pl.UTF-8): Krusader jest zarządcą plików dla KDE 3 | |
8 | Name: krusader | |
9 | Version: 1.80.0 | |
10 | Release: 1 | |
11 | License: GPL | |
12 | Group: X11/Applications | |
13 | Source0: http://dl.sourceforge.net/krusader/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 32bfaf4de7ca62e0f612357f4aa065a9 | |
15 | Patch0: kde-ac260-lt.patch | |
16 | Patch1: %{name}-desktop.patch | |
17 | Patch2: %{name}-mount.patch | |
18 | URL: http://krusader.sourceforge.net/ | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: gettext-devel | |
22 | %{?with_libkonq:BuildRequires: kdebase-devel} | |
23 | %{?with_libkjsembed:BuildRequires: kdebindings-kjsembed-devel} | |
24 | BuildRequires: kdelibs-devel >= 3.5.0-4 | |
25 | BuildRequires: qt-devel >= 6:3.3 | |
26 | BuildRequires: rpmbuild(macros) >= 1.129 | |
27 | BuildRequires: sed >= 4.0 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %undefine with_ccache | |
31 | ||
32 | %description | |
33 | Krusader is a filemanager for KDE 3, patterned after old-school | |
34 | managers like midnight commander and norton commander. It features | |
35 | basically all your file-management needs, plus extensive archive | |
36 | handling, mounted filesystems support, FTP and much much more. It is | |
37 | (almost) completely customizable, very user friendly, fast and damn | |
38 | good looking :-). You should give it a try. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Krusader jest zarządcą plików dla KDE 3, wzorowanym na takich | |
42 | zarządcach "starej szkoły", jak Midnight Commander czy Norton | |
43 | Commander. Zaspokaja w zasadzie wszystkie podstawowe potrzeby w | |
44 | zarządzaniu plików, dodatkowo obsługuje archiwa, montowanie systemów | |
45 | plików, FTP i o wiele, wiele więcej. Jest (prawie) całkowicie | |
46 | ustawialny, bardzo przyjazny dla użytkownika, szybki i cholernie ładny | |
47 | :-). Powinieneś go wypróbować. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | %patch0 -p1 | |
52 | %patch1 -p1 | |
53 | %patch2 -p0 | |
54 | ||
55 | %build | |
56 | cp -f /usr/share/automake/config.sub admin | |
57 | export QTDIR=%{_prefix} | |
58 | export KDEDIR=%{_prefix} | |
59 | %{__make} -f admin/Makefile.common cvs | |
60 | %configure \ | |
61 | --with-kiotar \ | |
62 | %{!?with_libkonq:--without-konqueror} \ | |
63 | %{!?with_libkjsembed:--without-javascript} \ | |
64 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \ | |
65 | --with-qt-libraries=%{_libdir} | |
66 | ||
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
72 | ||
73 | %{__make} install \ | |
74 | DESTDIR=$RPM_BUILD_ROOT \ | |
75 | kde_htmldir=%{_kdedocdir} | |
76 | ||
77 | mv -f $RPM_BUILD_ROOT%{_datadir}/applications/kde/krusader.desktop \ | |
78 | $RPM_BUILD_ROOT%{_desktopdir}/krusader.desktop | |
79 | mv -f $RPM_BUILD_ROOT%{_datadir}/applications/kde/krusader_root-mode.desktop \ | |
80 | $RPM_BUILD_ROOT%{_desktopdir}/krusader_root-mode.desktop | |
81 | %find_lang %{name} --with-kde | |
82 | ||
83 | # locolor icons are deprecated (see kde .spec-s) | |
84 | rm -f $RPM_BUILD_ROOT%{_iconsdir}/locolor/*/apps/*.png | |
85 | ||
86 | # confilicts with krusader | |
87 | rm $RPM_BUILD_ROOT%{_libdir}/kde3/kio_tar.so | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS ChangeLog FAQ README TODO doc/actions_tutorial.txt | |
95 | %attr(755,root,root) %{_bindir}/krusader | |
96 | %attr(755,root,root) %{_libdir}/kde3/*.so | |
97 | %{_libdir}/kde3/*.la | |
98 | %{_datadir}/apps/krusader | |
99 | %{_datadir}/apps/konqueror/servicemenus/isoservice.desktop | |
100 | %{_datadir}/config/kio_isorc | |
101 | %{_datadir}/services/*.protocol | |
102 | %{_desktopdir}/krusader*.desktop | |
103 | %{_iconsdir}/crystalsvg/*/apps/*.png | |
104 | %{_mandir}/man1/krusader.1* |