rox-filer-vl.spec 7.4 KB

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