rox-filer-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. %define appsdir %{_datadir}/rox-filer
  2. Name: rox-filer
  3. Version: 2.11
  4. Release: 3%{?_dist_release}
  5. Summary: A fast and powerful graphical file manager
  6. Group: User Interface/Desktops
  7. License: GPL
  8. URL: http://rox.sourceforge.net
  9. Source: http://downloads.sourceforge.net/rox/%{name}-%{version}.tar.bz2
  10. ##Source1: http://downloads.sourceforge.net/rox/Wrappers-%{wrappers_ver}.tgz
  11. Source3: ja-2.11-1.po
  12. #Source5: Wrappers-item2.tgz
  13. #Source6: eucjp.h
  14. Source7: rox-ja.1
  15. Source10: rox-filer.png
  16. #Source20: rox-index.html
  17. Source21: rox-welcome
  18. Source22: rox-welcome.sh
  19. Source23: rox-info
  20. Source24: rox-images.tar.bz2
  21. Source30: rox-welcome.tar.bz2
  22. #Patch10: rox-filer-2.7-AppRun.patch
  23. #Patch11: rox-filer-2.7-eucJP.patch
  24. Patch20: rox-filer-appinfo.patch
  25. Patch30: rox-update-po.patch
  26. Patch31: rox-apprun.patch
  27. Requires: shared-mime-info >= 0.16
  28. Requires: gtk2 >= 2.4.0, libglade2 >= 2.0.2
  29. Requires: nkf
  30. %if %{?_dist_release} == "vl5"
  31. #Requires: pixman
  32. %endif
  33. BuildRequires: libxml2-devel >= 2.0.0
  34. BuildRequires: glib2-devel >= 2.4.0
  35. BuildRequires: gtk2-devel >= 2.4.0 libglade2-devel >= 2.0.0
  36. BuildRequires: libSM-devel
  37. BuildRequires: shared-mime-info >= 0.16
  38. %if %{?_dist_release} == "vl5"
  39. #BuildRequires: pixman-devel
  40. %endif
  41. Conflicts: rox-base
  42. Obsoletes: rox
  43. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  44. Packager: OKATANA <mkato@par.odn.ne.jp,mosaicist@jcom.home.ne.jp>
  45. %description
  46. ROX-Filer is a fast, powerful, and easy to use graphical file
  47. manager. It has1 full support for drag-and-drop and application
  48. directories. The filer can also provide a pinboard (allowing you to pin
  49. up files on your desktop background) and panels. The emphasis is on
  50. uncluttered directory views; menus and prompts only appear when needed.
  51. %description -l ja
  52. ROX-Filer は高速、パワフルかつ使い易い GUI ファイルマネージャで、高度なドラッグ
  53. & ドロップ機能やサービスを提供します。
  54. また、ピンボード(デスクトップ機能をサポートしていないウィンドウ・マネージャ上で
  55. も、ルートウィンドウにアイコンを張り付け可能にします)とパネル(タスク・バー)を利
  56. 用可能にします。
  57. すっきりとしたディレクトリ表示と、必要な時だけのメニューやプロンプトの表示が大
  58. きな特徴です。
  59. %prep
  60. %setup -q -a 0 -a 30
  61. %__cp %{SOURCE3} ROX-Filer/src/po/ja.po
  62. #%__cp %{SOURCE6} ROX-Filer/src/
  63. %__cp %{SOURCE7} .
  64. #%__tar zxvf %{SOURCE5}
  65. #%__install -m 644 %{SOURCE20} ROX-Filer/Help/index.html
  66. pushd ROX-Filer/Help
  67. tar jxf %{SOURCE24}
  68. popd
  69. #%patch10 -p1
  70. #%patch11 -p1
  71. %patch20 -p1
  72. %patch30 -p1
  73. %patch31 -p1
  74. %build
  75. pushd ROX-Filer/src/po
  76. ./update-po
  77. ./make-mo ja
  78. popd
  79. export CFLAGS="%{optflags}"
  80. ROX-Filer/AppRun --compile
  81. %__rm -rf ROX-Filer/src
  82. %__rm -rf ROX-Filer/build
  83. %install
  84. %__rm -rf %{buildroot}
  85. # make install directorys
  86. %__mkdir -p %{buildroot}%{appsdir}
  87. %__mkdir -p %{buildroot}%{_bindir}
  88. %__mkdir -p %{buildroot}%{_mandir}/man1
  89. %__mkdir -p %{buildroot}%{_mandir}/ja/man1
  90. %__mkdir -p %{buildroot}%{_datadir}/mime/packages
  91. # ROX-Filer
  92. %__cp -a ROX-Filer %{buildroot}%{appsdir}/
  93. %__cp -a Welcome %{buildroot}%{appsdir}/
  94. # manpage
  95. %__install -m 644 rox.1 %{buildroot}%{_mandir}/man1/
  96. ( cd %{buildroot}%{_mandir}/man1 ; %__ln_s rox.1 ROX-Filer.1 )
  97. %__install -m 644 rox-ja.1 %{buildroot}%{_mandir}/ja/man1/rox.1
  98. ( cd %{buildroot}%{_mandir}/ja/man1 ; %__ln_s rox.1 ROX-Filer.1 )
  99. # scripts
  100. %__cat << EOF > %{buildroot}%{_bindir}/rox
  101. #! /bin/sh
  102. rox-welcome -c &
  103. exec %{appsdir}/ROX-Filer/AppRun "\$@"
  104. EOF
  105. %__chmod a+x %{buildroot}%{_bindir}/rox
  106. %__install -m 755 %{SOURCE21} %{SOURCE22} %{SOURCE23} %{buildroot}%{_bindir}/
  107. # mime-info
  108. %__install -m 644 rox.xml %{buildroot}%{_datadir}/mime/packages/
  109. %__cp -a Choices %{buildroot}%{_datadir}/
  110. # icons
  111. %__mkdir -p %{buildroot}%{_datadir}/pixmaps
  112. %__install -m 644 %{SOURCE10} %{buildroot}%{_datadir}/pixmaps/
  113. %__mkdir -p %{buildroot}%{_datadir}/%{name}p
  114. %__install -m 644 %{SOURCE10} %{buildroot}%{_datadir}/%{name}/.DirIcon
  115. # desktop entry
  116. %__mkdir -p %{buildroot}%{_datadir}/applications
  117. %__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
  118. [Desktop Entry]
  119. Name=ROX Filer
  120. Name[ja]=ROX ファイラー
  121. Comment=ROX Filer
  122. Comment[ja]=軽量ファイルマネージャ
  123. Exec=rox
  124. Icon=/usr/share/pixmaps/rox-filer.png
  125. Terminal=false
  126. MultipleArgs=false
  127. Type=Application
  128. Categories=Application;FileManager;Utility;
  129. EOF
  130. %post
  131. if [ -d %{_prefix}/apps/AppsConf ] ; then
  132. rm -rf %{_prefix}/apps/AppsConf
  133. fi
  134. %{_bindir}/update-mime-database %{_datadir}/mime >& /dev/null
  135. %clean
  136. %__rm -rf %{buildroot}
  137. %files
  138. %defattr (-,root,root)
  139. %doc README*
  140. %{_bindir}/*
  141. %{_mandir}/*/*
  142. %{_datadir}/pixmaps/*
  143. %{_datadir}/mime/packages/*
  144. %{_datadir}/applications/%{name}.desktop
  145. %dir
  146. %defattr (-,root,root)
  147. %{appsdir}
  148. %{_datadir}/Choices
  149. %changelog
  150. * Thu Dec 26 2013 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.11-3
  151. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  152. - rebuild with gcc-4.8
  153. * Sun Oct 30 2011 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 2.11-2
  154. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  155. - update welcome message
  156. - update welcome manual
  157. * Tue Oct 18 2011 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 2.11-3
  158. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  159. - upstream update
  160. - new ja.po
  161. * Fri Feb 5 2010 KATO Masashi <mkato@par.odn.ne.jp> 2.10-2
  162. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  163. - added BuildRequires: shared-mime-info
  164. - added Welcome AppDir(Source30 rox-welcome.tar.bz2: Replacement of Source20)
  165. * Sat Sep 12 2009 KATO Masashi <mkato@par.odn.ne.jp> 2.10-1
  166. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  167. - upstream update
  168. - added documents
  169. - added welcome message
  170. - changed system directory to /usr/share/rox-filer
  171. * Thu Jul 23 2009 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.9-2
  172. - moved /usr/apps to /usr/share/rox-filer
  173. - droped wrappers-1.0.3 files
  174. * Tue Jun 9 2009 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.9-1
  175. - upstream update
  176. - update ja.po
  177. * Tue May 27 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.8-1vl5
  178. - new Requires: pixman
  179. - new BuildRequires: pixman-devel
  180. - upstream update
  181. - update ja.po
  182. * Tue Jan 29 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.7.1-jp1.0
  183. - rebuild from 2.7.1-0v1
  184. * Mon Jan 21 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.7.1-0vl1,2
  185. - upstream bug fix
  186. - remove patches
  187. * Mon Dec 31 2007 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.7-0vl1,2
  188. - upstream update
  189. - update ja.po
  190. - add patches
  191. - (AppRun, appmenu.c, dnd.c, main.c, menu.c, minibuffer.c, run.c)
  192. - (for eucJP environment)
  193. - add japanese manpage
  194. * Wed Jun 20 2007 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.6.1-0vl1,2
  195. - upstream update
  196. - update ja.po
  197. - remove obsolete patch
  198. * Tue May 22 2007 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.6-jp1.0
  199. - rebuild from 2.6-0vl
  200. * Tue Apr 3 2007 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.6-0vl1,2
  201. - update ja.po
  202. - upstream update
  203. * Sun Aug 6 2006 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.5-0vl1,2
  204. - change package name following upstream
  205. - update ja.po
  206. * Fri Jan 6 2006 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.4.1-0vl1
  207. - upstream update
  208. * Wed Nov 5 2005 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp>2.3-jp1.1
  209. - update patch (fix ja.po mistranslate)
  210. * Fri Sep 23 2005 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.3-0vl1
  211. - upstream update
  212. * Sun Mar 6 2005 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.2.0-0vl1
  213. - upstream update
  214. - update patch (fix problems of 'cannot translate sone messages')
  215. - add some apps to Wrappers
  216. * Thu Jan 13 2005 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 2.1.4
  217. - New version
  218. - include New ja.po
  219. - add New patch
  220. (fix problems of 'cannot translate sone messages')
  221. - add Wrappers-plus
  222. * Sun Mar 09 2003 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 1.2.2-1-0vl1
  223. - add jp.po
  224. - (with Japanese runtime messages version)