mc-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. # Note that this is NOT a relocatable package
  2. %define ver 4.5.54
  3. %define rel 0vl4
  4. Summary: A user-friendly file manager and visual shell.
  5. Summary(ja): ユーザ・フレンドリーなファイル・マネージャおよびビジュアル・シェル
  6. Name: mc
  7. Version: %{ver}
  8. Release: %{rel}
  9. Copyright: GPL
  10. Group: System Environment/Shells
  11. URL: http://www.gnome.org/
  12. BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
  13. BuildRequires: gpm-devel
  14. BuildRequires: gnome-libs-devel >= 1.4.2-0vl2
  15. Requires: pam >= 0.59
  16. Requires: vine-logos
  17. Prereq: /sbin/chkconfig
  18. Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{ver}.tar.bz2
  19. Source1: gmc-vine.links
  20. Source2: ldp.xpm
  21. # Source3: mc-4.5.50.ja.po
  22. Source4: mc-extraicons.tar.bz2
  23. Patch0: mc-4.5.35-xtermcolor.patch
  24. Patch2: mc-4.5.35-fixwarning.patch
  25. Patch3: mc-4.5.52-mimekeys_vine2.patch
  26. Patch10: mc-4.5.35-homedir.patch
  27. Patch17: mc-4.5.52-absoluterm.patch
  28. Patch22: mc-4.5.43-prototype.patch
  29. Patch23: mc-4.5.46-system-auth.patch
  30. Patch25: mc-4.5.51-showagain.patch
  31. Patch26: mc-4.5.51-stderr.patch
  32. Patch27: mc-4.5.51-gnome-editor.patch
  33. Patch28: mc-4.5.51-extention.patch
  34. #
  35. Patch41: mc-4.5.51-kudzu.patch
  36. Patch43: mc-4.5.51-initialdevices.patch
  37. # for Vine
  38. Patch100: mc-4.5.44-view_fix.patch
  39. Patch101: mc-4.5.44-kterm.patch
  40. Patch102: mc-4.5.44-ftpfs.patch
  41. Patch103: mc-4.5.52-smbfs_url.patch
  42. Patch104: mc-4.5.54-tempnam.patch
  43. Patch105: mc-4.5.52-vine_extend-20000619.patch
  44. Patch106: mc-4.5.52-zsh.patch
  45. Patch107: mc-4.5.54-newterminal.patch
  46. %description
  47. Midnight Commander is a visual shell much like a file manager, only
  48. with many more features. It is a text mode application, but it also
  49. includes mouse support if you are running GPM. Midnight Commander's
  50. coolest features are its abilities to FTP, view tar and zip files, and
  51. to poke into RPMs for specific files.
  52. %description -l ja
  53. Midnight Commanderは単に多くの機能を持つ、まさにファイル・マ
  54. ネージャとしてのビジュアル・シェルです。これはテキスト・モー
  55. ドで動くアプリケーションですが、GPMを動かしている場合、マウス
  56. もサポートしています。Midnight Commanderの最もクールな機能は、
  57. FTP、Tarや ZIP、およびRPM内の特定のファイルへアクセスできるこ
  58. とです。
  59. %package -n gmc
  60. Summary: The GNOME version of the Midnight Commander file manager.
  61. Summary(ja): Midnight Commanderファイル・マネージャのGNOMEバージョン
  62. Requires: mc >= %{PACKAGE_VERSION}
  63. Group: User Interface/Desktops
  64. %description -n gmc
  65. GMC (GNU Midnight Commander) is a file manager based on the terminal
  66. version of Midnight Commander, with the addition of a GNOME GUI
  67. desktop front-end. GMC can FTP, view TAR and compressed files and look
  68. into RPMs for specific files.
  69. Install gmc if you're installing GNOME and you'd like to use the
  70. Midnight Commander file manager with it.
  71. %description -n gmc -l ja
  72. GMC (GNU Midnight Commander)はMidnight Commanderの端末バージョ
  73. ンをベースに、GNOME GUIデスクトップ・フロントエンドを追加した
  74. ファイルマネージャです。GMCはFTPや、TARや圧縮ファイルを閲覧し
  75. たりRPM内の特定のファイルを覗くことができます。
  76. もしGNOMEをインストールして、Midnight Commanderファイルマネー
  77. ジャを一緒に利用したい場合、GMCをインストールしてください。
  78. %package -n mcserv
  79. Summary: Server for the Midnight Commander network file management system.
  80. Summary(ja): Midnight Commanderネットワーク・ファイル管理システム用サーバ
  81. Group: System Environment/Daemons
  82. Requires: portmap
  83. %description -n mcserv
  84. The Midnight Commander file management system will allow you to
  85. manipulate the files on a remote machine as if they were local. This
  86. is only possible if the remote machine is running the mcserv server
  87. program. Mcserv provides clients running Midnight Commander with
  88. access to the host's file systems.
  89. Install mcserv on machines if you want to access their file systems
  90. remotely using the Midnight Commander file management system.
  91. %description -n mcserv -l ja
  92. Midnight Commanderファイル管理システムでは、リモートマシン上の
  93. ファイルをローカル・ファイルのと同等の感覚で操作することができ
  94. ます。これはリモートマシン上でmcservサーバが起動している必要が
  95. あります。Mcservは、クライアントで動いているMidnight Commander
  96. からこのホストのファイルシステムへアクセスすることができるよう
  97. にします。
  98. もしこのマシンのファイルシステムを、Midnight Commanderファイル
  99. 管理システムとしてリモートからアクセスできるようにしたい場合、
  100. mcservをインストールしてください。
  101. %prep
  102. %setup -q
  103. %patch -p1 -b .xtermcolor
  104. %patch2 -p1 -b .fixwarning
  105. %patch3 -p1 -b .mimekeys
  106. %patch10 -p1 -b .homedir
  107. %patch17 -p1 -b .absoluterm
  108. %patch22 -p1 -b .prototype
  109. %patch23 -p1 -b .system-auth
  110. %patch25 -p1 -b .showagain
  111. %patch26 -p1 -b .stderr
  112. %patch27 -p1 -b .gnome
  113. %patch28 -p1 -b .extention
  114. %patch41 -p1 -b .kudzu
  115. %patch43 -p1 -b .initialdevices
  116. %patch100 -p1 -b .view_fix
  117. %patch101 -p1 -b .kterm
  118. %patch102 -p1 -b .ftpfs
  119. %patch103 -p1 -b .smbfs_url
  120. %patch104 -p1 -b .tempnam
  121. %patch105 -p1 -b .vine_extend
  122. %patch106 -p1 -b .zsh
  123. %patch107 -p0 -b .newterminal
  124. %configure \
  125. --with-samba \
  126. --with-gnome \
  127. --without-debug \
  128. --with-included-slang
  129. cd vfs/samba
  130. #CFLAGS="$RPM_OPT_FLAGS" ./configure \
  131. # --prefix=%{_prefix} \
  132. %configure \
  133. --localstatedir=/var/log/samba \
  134. --libdir=/etc \
  135. --with-privatedir=/etc \
  136. --with-lockdir=/var/lock/samba
  137. cd -
  138. %build
  139. make
  140. %install
  141. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  142. install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
  143. %makeinstall
  144. (cd icons; make DESTDIR=$RPM_BUILD_ROOT install_icons)
  145. install lib/mcserv.init $RPM_BUILD_ROOT%{_initdir}/mcserv
  146. install lib/mcserv.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/mcserv
  147. install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
  148. install lib/mc.global $RPM_BUILD_ROOT%{_sysconfdir}
  149. # clean up this setuid problem for now
  150. chmod 755 $RPM_BUILD_ROOT/%{_libdir}/mc/bin/cons.saver
  151. # copy vine desktop default icons
  152. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/desktop-links/
  153. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_libdir}/desktop-links/
  154. # ldp icon
  155. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc
  156. # install home dir and up icons.
  157. tar zxvf %{SOURCE4} -C $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc
  158. %find_lang %name
  159. %clean
  160. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  161. %post -n mcserv
  162. /sbin/chkconfig --add mcserv
  163. %preun -n mcserv
  164. if [ "$1" = "0" ];
  165. then
  166. service mcserv stop > /dev/null 2>&1
  167. /sbin/chkconfig --del mcserv
  168. fi
  169. %postun -n mcserv
  170. if [ "$1" -ge "1" ];
  171. then
  172. service mcserv restart > /dev/null 2>&1
  173. fi
  174. %files -f %{name}.lang
  175. %defattr(-, root, root)
  176. %doc FAQ COPYING NEWS README
  177. %doc README.vineextend
  178. %{_bindir}/mc
  179. %{_bindir}/mcedit
  180. %{_bindir}/mcmfmt
  181. %{_libdir}/mc/mc.ext
  182. %{_libdir}/mc/mc.hint
  183. %{_libdir}/mc/mc.hlp
  184. %{_libdir}/mc/mc.lib
  185. %{_libdir}/mc/mc.menu
  186. %{_libdir}/mc/bin/cons.saver
  187. %{_libdir}/mc/extfs/*
  188. %{_libdir}/mc/syntax/*
  189. %{_mandir}/man1/*
  190. %config %{_sysconfdir}/profile.d/*
  191. %dir %{_libdir}/mc
  192. %dir %{_libdir}/mc/bin
  193. #%{_datadir}/mime-info/*
  194. %files -n mcserv
  195. %defattr(-, root, root)
  196. %attr(0644, root, root) %config /etc/pam.d/mcserv
  197. %config %{_initdir}/mcserv
  198. %attr(-, root, man) %{_mandir}/man8/mcserv*
  199. %{_bindir}/mcserv
  200. %files -n gmc
  201. %defattr(-, root, root)
  202. %doc lib/README.desktop
  203. %config %{_sysconfdir}/mc.global
  204. %{_bindir}/gmc
  205. %{_bindir}/gmc-client
  206. %{_bindir}/plain-gmc
  207. %{_libdir}/mc/layout
  208. %{_datadir}/pixmaps/mc/*
  209. %{_datadir}/mime-info/mc.keys
  210. %{_datadir}/idl/*.idl
  211. %config %{_sysconfdir}/CORBA/servers/*
  212. %config %{_libdir}/desktop-links/*
  213. %changelog
  214. * Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl4
  215. - rebuilt with db4-4.2.52
  216. * Sun Jul 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.54-0vl3
  217. - merged with Vine26 package.
  218. * Wed Nov 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.54-0vl2
  219. - add Patch107 to fix open_new_terminal on desktop
  220. * Wed Jan 15 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl2
  221. - rebuilt against gnome-libs-1.4.2-0vl2 (for db1/db4 matters)
  222. - modified Patch104 to meet glibc-devel >= 2.2.x
  223. * Tue May 8 2001 Akira TAGOH <tagoh@gnome.gr.jp> 4.5.54-0vl1
  224. - New upstream release.
  225. * Fri Mar 23 2001 Akira TAGOH <tagoh@gnome.gr.jp> 4.5.52-0vl1
  226. - New upstream release.
  227. - Use rpmmacros.
  228. - Added some RH bug fix patch.
  229. * Sun Dec 24 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  230. - 4.5.50-0vl4
  231. - rebuilt with ncurses5
  232. - use better macros
  233. * Thu Oct 12 2000 Yoshihiro Kajiki <kajiki@ylug.org> [0vl3]
  234. - add 8bit_clean patch to view/edit Japanese chars
  235. * Fri Jun 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  236. - clean up vine-extend patch.
  237. - modified ja.po for 4.5.50
  238. * Fri Jun 9 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  239. - modified vine-extend patch about icon layout.
  240. * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  241. - updated to 4.5.50
  242. * Tue May 23 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  243. - updated to 4.5.46
  244. * Wed May 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  245. - fixed vine-extend patch for some stability.
  246. * Sat Apr 22 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  247. - fixed vine-extend patch for timer initialization for busy coursor.
  248. * Wed Apr 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  249. - modified tempnam patch for stability.
  250. * Mon Apr 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  251. - modified vine_extend patch to fix URL DnD action again, sorry...
  252. * Sat Apr 15 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  253. - modified vine_extend patch to fix URL DnD action and clean up a little.
  254. - added the special up directory pixmap.
  255. - added ftpfs patch to reconnecte after idle timeout.
  256. - added --with-smbfs option to configure.
  257. * Tue Apr 11 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  258. - modified vine_extend patch to snap and aoto-put icons to better position.
  259. - added gme-client for Gnome 1.1.x
  260. * Sat Apr 8 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  261. - modified vine_extend patch to customize desktop icon appearance and fix dnd.
  262. - added the special home directory pixmap.
  263. * Thu Apr 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  264. - updated to 4.5.44
  265. - removed kondara's patch
  266. - add fixsh patch from RH6.2
  267. - add kterm and vine_extend and view_fix patch instead of kondara's patch.
  268. * Wed Feb 23 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  269. - added absoluterm.patch from RH6.2beta SRPM.
  270. - added japo patch
  271. * Tue Dec 21 1999 Jun Nishii <jun@vinelinux.org>
  272. - merge kondara patch, thanks kondara
  273. * Wed Dec 8 1999 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp>
  274. - updated to 4.5.42
  275. * Sat Sep 18 1999 Kazuhito Nishi <nishi@imasy.or.jp>
  276. - First try at a spec file for Vine