]>
Commit | Line | Data |
---|---|---|
4246ed39 | 1 | Summary: File manager |
64a3de28 | 2 | Summary(pl.UTF-8): Zarządca plików |
7c61a425 | 3 | Name: rox |
0adde3ab | 4 | Version: 2.5 |
c51632d2 | 5 | Release: 2 |
ab49d6f4 | 6 | License: GPL v2 |
7c61a425 | 7 | Group: X11/Applications |
0adde3ab MB |
8 | Source0: http://dl.sourceforge.net/rox/rox-filer-%{version}.tar.bz2 |
9 | # Source0-md5: 56e6a29f2dbdf11d6f4b74a3f03ff959 | |
421d39fc | 10 | Source1: %{name}.desktop |
c8c2c3c6 | 11 | Patch0: %{name}-help.patch |
228df097 | 12 | URL: http://rox.sourceforge.net/ |
e9e957ff | 13 | BuildRequires: autoconf |
bdf87d4f | 14 | BuildRequires: gtk+2-devel >= 2:2.4.0 |
421d39fc | 15 | BuildRequires: libxml2-devel >= 2.0.0 |
16 | BuildRequires: pkgconfig | |
0adde3ab | 17 | BuildRequires: rpmbuild(macros) >= 1.311 |
bdf87d4f | 18 | BuildRequires: shared-mime-info >= 0.14 |
72c341ba | 19 | BuildRequires: xorg-lib-libSM-devel |
98935c8b | 20 | Requires: glib2 >= 2.0.3 |
bdf87d4f | 21 | Requires: gtk+2 >= 2:2.4.0 |
421d39fc | 22 | Requires: libxml2 >= 2.0.0 |
0adde3ab | 23 | Requires(post,postun): shared-mime-info >= 0.14 |
7203dbdf | 24 | Conflicts: rox-base |
7c61a425 PG |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
4f208d9d | 27 | %define _platform %(echo `uname -s`-`uname -m|sed 's/i.86/ix86/'`) |
28 | %define _roxdir %{_libdir}/rox | |
7c61a425 PG |
29 | |
30 | %description | |
4246ed39 | 31 | ROX-Filer is a small, fast and powerful file manager for Linux and |
32 | Unix systems. | |
7c61a425 | 33 | |
5de385e0 JR |
34 | %description -l pl.UTF-8 |
35 | ROX-Filer jest małym, szybkim programem do zarządzania plikami o | |
36 | dużych możliwościach przeznaczonym dla Linuksa i innych systemów | |
4246ed39 | 37 | uniksowych. |
7c61a425 PG |
38 | |
39 | %prep | |
0adde3ab | 40 | %setup -q -n rox-filer-%{version} |
331baf6a | 41 | %patch0 -p1 |
7c61a425 PG |
42 | |
43 | %build | |
e9e957ff | 44 | cd ROX-Filer/src |
45 | %{__autoconf} | |
58627d32 | 46 | |
4f208d9d | 47 | cd - |
48 | ||
49 | mkdir ROX-Filer/build | |
50 | cd ROX-Filer/build | |
51 | ../src/%configure | |
58627d32 | 52 | |
e9e957ff | 53 | %{__make} |
7c61a425 PG |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
7c61a425 | 57 | |
58627d32 | 58 | install -d \ |
59 | $RPM_BUILD_ROOT%{_bindir} \ | |
58627d32 | 60 | $RPM_BUILD_ROOT%{_datadir}/mime/packages \ |
61 | $RPM_BUILD_ROOT%{_mandir}/man1 \ | |
62 | $RPM_BUILD_ROOT%{_desktopdir} \ | |
63 | $RPM_BUILD_ROOT%{_iconsdir} \ | |
19360573 | 64 | $RPM_BUILD_ROOT%{_pixmapsdir} \ |
4f208d9d | 65 | $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer/{Help,Messages} \ |
66 | $RPM_BUILD_ROOT/etc/xdg/rox.sourceforge.net | |
58627d32 | 67 | |
3a39334a | 68 | cat >> $RPM_BUILD_ROOT%{_bindir}/rox << 'EOF' |
4f208d9d | 69 | #!/bin/sh |
3a39334a | 70 | exec %{_roxdir}/ROX-Filer/AppRun "$@" |
4f208d9d | 71 | EOF |
7f1beea7 | 72 | |
4f208d9d | 73 | install rox.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages |
58627d32 | 74 | |
4f208d9d | 75 | install rox.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
58627d32 | 76 | |
4f208d9d | 77 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
7f1beea7 | 78 | |
4f208d9d | 79 | install ROX-Filer/.DirIcon $RPM_BUILD_ROOT%{_pixmapsdir}/rox.png |
58627d32 | 80 | |
4f208d9d | 81 | install ROX-Filer/Help/Manual*.html $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer/Help |
58627d32 | 82 | |
4f208d9d | 83 | install ROX-Filer/Messages/*.gmo $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer/Messages |
58627d32 | 84 | |
4f208d9d | 85 | cp -r ROX-Filer/ROX $RPM_BUILD_ROOT%{_iconsdir} |
58627d32 | 86 | |
4f208d9d | 87 | cp -r ROX-Filer/images $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer |
7c61a425 | 88 | |
4f208d9d | 89 | install ROX-Filer/AppRun $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer |
90 | install ROX-Filer/ROX-Filer $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer | |
7c61a425 | 91 | |
4f208d9d | 92 | install ROX-Filer/*.{css,xml} $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer |
91d71725 | 93 | |
4f208d9d | 94 | install ROX-Filer/.DirIcon $RPM_BUILD_ROOT%{_roxdir}/ROX-Filer |
58627d32 | 95 | |
4f208d9d | 96 | cp -r Choices/* $RPM_BUILD_ROOT/etc/xdg/rox.sourceforge.net |
421d39fc | 97 | |
7c61a425 PG |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
706d8722 | 101 | %post |
0adde3ab | 102 | %update_mime_database |
706d8722 | 103 | |
104 | %postun | |
0adde3ab | 105 | %update_mime_database |
706d8722 | 106 | |
7c61a425 PG |
107 | %files |
108 | %defattr(644,root,root,755) | |
1e64142a | 109 | %doc ROX-Filer/Help/{Changes,README,TODO} |
110 | %lang(es) %doc ROX-Filer/Help/README-es | |
58627d32 | 111 | %attr(755,root,root) %{_bindir}/rox |
4f208d9d | 112 | %dir %{_roxdir} |
113 | %dir %{_roxdir}/ROX-Filer | |
114 | %dir %{_roxdir}/ROX-Filer/Help | |
115 | %{_roxdir}/ROX-Filer/Help/Manual.html | |
116 | %lang(fr) %{_roxdir}/ROX-Filer/Help/Manual-fr.html | |
117 | %lang(it) %{_roxdir}/ROX-Filer/Help/Manual-it.html | |
118 | %dir %{_roxdir}/ROX-Filer/Messages | |
119 | %lang(cs) %{_roxdir}/ROX-Filer/Messages/cs.gmo | |
120 | %lang(da) %{_roxdir}/ROX-Filer/Messages/da.gmo | |
121 | %lang(de) %{_roxdir}/ROX-Filer/Messages/de.gmo | |
122 | %lang(es) %{_roxdir}/ROX-Filer/Messages/es.gmo | |
ac7a4056 | 123 | %lang(et) %{_roxdir}/ROX-Filer/Messages/et_EE.gmo |
4f208d9d | 124 | %lang(eu) %{_roxdir}/ROX-Filer/Messages/eu.gmo |
125 | %lang(fi) %{_roxdir}/ROX-Filer/Messages/fi.gmo | |
126 | %lang(fr) %{_roxdir}/ROX-Filer/Messages/fr.gmo | |
127 | %lang(hu) %{_roxdir}/ROX-Filer/Messages/hu.gmo | |
128 | %lang(it) %{_roxdir}/ROX-Filer/Messages/it.gmo | |
129 | %lang(ja) %{_roxdir}/ROX-Filer/Messages/ja.gmo | |
130 | %lang(nl) %{_roxdir}/ROX-Filer/Messages/nl.gmo | |
131 | %lang(no) %{_roxdir}/ROX-Filer/Messages/no.gmo | |
132 | %lang(pl) %{_roxdir}/ROX-Filer/Messages/pl.gmo | |
bdf87d4f | 133 | %lang(pt) %{_roxdir}/ROX-Filer/Messages/pt_PT.gmo |
4f208d9d | 134 | %lang(pt_BR) %{_roxdir}/ROX-Filer/Messages/pt_BR.gmo |
135 | %lang(ro) %{_roxdir}/ROX-Filer/Messages/ro.gmo | |
136 | %lang(ru) %{_roxdir}/ROX-Filer/Messages/ru.gmo | |
137 | %lang(sv) %{_roxdir}/ROX-Filer/Messages/sv.gmo | |
0adde3ab MB |
138 | %lang(uk) %{_roxdir}/ROX-Filer/Messages/uk.gmo |
139 | %lang(vi) %{_roxdir}/ROX-Filer/Messages/vi_VN.gmo | |
4f208d9d | 140 | %lang(zh_CN) %{_roxdir}/ROX-Filer/Messages/zh_CN.gmo |
141 | %lang(zh_TW) %{_roxdir}/ROX-Filer/Messages/zh_TW.gmo | |
142 | %{_roxdir}/ROX-Filer/images | |
143 | %attr(755,root,root) %{_roxdir}/ROX-Filer/AppRun | |
144 | %attr(755,root,root) %{_roxdir}/ROX-Filer/ROX-Filer | |
145 | %{_roxdir}/ROX-Filer/*.xml | |
146 | %{_roxdir}/ROX-Filer/*.css | |
147 | %{_roxdir}/ROX-Filer/.DirIcon | |
148 | %dir /etc/xdg/rox.sourceforge.net | |
149 | %dir /etc/xdg/rox.sourceforge.net/MIME-types | |
150 | %attr(755,root,root) /etc/xdg/rox.sourceforge.net/MIME-types/* | |
58627d32 | 151 | %{_datadir}/mime/packages/rox.xml |
a68cd6e1 | 152 | %{_desktopdir}/rox.desktop |
58627d32 | 153 | %{_iconsdir}/ROX |
154 | %{_pixmapsdir}/rox.png | |
155 | %{_mandir}/man1/* |