mc.spec.in 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. # Note that this is NOT a relocatable package
  2. %define ver @VERSION@
  3. %define RELEASE 1
  4. %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
  5. Summary: Midnight Commander visual shell
  6. Name: mc
  7. Version: %ver
  8. Release: %rel
  9. Copyright: GPL
  10. Group: Applications/File
  11. Source0: ftp://ftp.gnome.org/mirror/gnome.org/stable/sources/mc/mc-%{PACKAGE_VERSION}.tar.gz
  12. URL: http://www.gnome.org/mc/
  13. BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
  14. Requires: mc-common >= %{PACKAGE_VERSION}
  15. Prereq: /sbin/chkconfig
  16. %description
  17. Midnight Commander is a visual shell much like a file manager, only with way
  18. more features. It is text mode, but also includes mouse support if you are
  19. running GPM. Its coolest feature is the ability to ftp, view tar, zip
  20. files, and poke into RPMs for specific files. :-)
  21. %package -n mc-common
  22. Summary: Midnight Commander visual shell (common files)
  23. Group: Applications/File
  24. %description -n mc-common
  25. Midnight Commander is a visual shell much like a file manager, only with
  26. way more features. This file contains files common for both the text and
  27. the GNOME editions.
  28. %package -n gmc
  29. Summary: Midnight Commander visual shell (GNOME version)
  30. Requires: mc-common >= %{PACKAGE_VERSION}
  31. Group: User Interface/Desktops
  32. %description -n gmc
  33. Midnight Commander is a visual shell much like a file manager, only with
  34. way more features. This is the GNOME version. It's coolest feature is the
  35. ability to ftp, view tar, zip files and poke into RPMs for specific files.
  36. The GNOME version of Midnight Commander is not yet finished though. :-(
  37. %prep
  38. %setup -q
  39. %build
  40. CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
  41. --prefix=%{_prefix} \
  42. --mandir=%{_mandir} \
  43. --with-included-slang \
  44. --with-gnome \
  45. --sysconfdir=/etc
  46. if [ "$SMP" != "" ]; then
  47. (make "MAKE=make -k -j $SMP"; exit 0)
  48. make
  49. else
  50. make
  51. fi
  52. %install
  53. echo $RPM_BUILD_ROOT
  54. rm -rf $RPM_BUILD_ROOT
  55. make install DESTDIR=$RPM_BUILD_ROOT
  56. install -d $RPM_BUILD_ROOT/etc/profile.d
  57. install lib/mc.sh $RPM_BUILD_ROOT/etc/profile.d
  58. install lib/mc.csh $RPM_BUILD_ROOT/etc/profile.d
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-, root, root)
  63. %doc FAQ COPYING NEWS README
  64. %{_prefix}/bin/mc
  65. %{_prefix}/bin/mcedit
  66. %{_prefix}/bin/mcview
  67. %{_prefix}/lib/mc/bin/cons.saver
  68. %{_prefix}/lib/mc/term/*
  69. %{_mandir}/man1/*
  70. %config /etc/profile.d/*
  71. %dir %{_prefix}/lib/mc/bin
  72. %dir %{_prefix}/lib/mc/term
  73. %files -n mc-common
  74. %defattr(-, root, root)
  75. %{_prefix}/bin/mcmfmt
  76. %config %{_prefix}/lib/mc/cedit.menu
  77. %config %{_prefix}/lib/mc/edit.indent.rc
  78. %config %{_prefix}/lib/mc/extfs/*
  79. %config %{_prefix}/lib/mc/mc.ext
  80. %config %{_prefix}/lib/mc/mc.lib
  81. %config %{_prefix}/lib/mc/mc.menu
  82. %{_prefix}/lib/mc/mc.hint*
  83. %{_prefix}/lib/mc/mc.hlp*
  84. %{_prefix}/lib/mc/syntax/*
  85. %{_prefix}/share/locale/*/LC_MESSAGES/*
  86. %config /etc/mc.global
  87. %dir %{_prefix}/lib/mc
  88. %dir %{_prefix}/lib/mc/extfs
  89. %dir %{_prefix}/lib/mc/syntax
  90. %files -n gmc
  91. %defattr(-, root, root)
  92. %{_prefix}/bin/gmc
  93. %{_prefix}/bin/plain-gmc
  94. # %{_prefix}/bin/gmc-client ?
  95. %{_prefix}/share/gnome/help/gmc/*
  96. %{_prefix}/share/idl/*
  97. %{_prefix}/share/mime-info/mc.keys
  98. %{_prefix}/share/pixmaps/mc/*
  99. %config /etc/CORBA/servers/*
  100. %dir %{_prefix}/lib/mc/desktop-scripts
  101. %dir %{_prefix}/share/gnome/help/gmc
  102. # %dir %{_prefix}/share/mc/templates ?
  103. %dir %{_prefix}/share/pixmaps/mc
  104. %changelog
  105. * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
  106. - Remove /usr/lib/mc/layout.
  107. * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
  108. - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
  109. * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
  110. - Change groups. Don't include locale directories. More config files.
  111. * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
  112. - Don't require stylesheets, since HTML files are now in the tarball.
  113. * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
  114. - Remove package mcserv. Drop dependency on PAM.
  115. * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
  116. - Remove mc-gnome.ext.
  117. * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
  118. - Include mcview.
  119. * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
  120. - Allow mcserv.8 to be gzipped.
  121. * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
  122. - New package mc-common.
  123. - Use DESTDIR instead of misusing prefix.
  124. - Don't install old icons - they don't exist
  125. * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
  126. - Include translations with mc, not gmc
  127. - chkconfig --del in %preun, not %postun
  128. - --without-debug not needed
  129. - /etc/X11/wmconfig not needed
  130. - /etc/pam.d/mcserv shouldn't be executable
  131. - New files in %{prefix}/lib/mc/ - translated hints, editor files
  132. * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
  133. - Include .idl files in the package.
  134. * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
  135. - Added a build prereq so that rpms get built with documentation ;)
  136. * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
  137. - added help and locale files to %files
  138. * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
  139. - added syntax files to %files
  140. * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
  141. - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
  142. $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
  143. * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
  144. - Updated the specfile, removed some kludges.
  145. * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
  146. - rebuilt against gnome-libs 0.27 and gtk+-1.1
  147. * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
  148. - made cons.saver not setuid
  149. * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
  150. - removed tkmc
  151. * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
  152. - add /usr/lib/mc/layout to gmc
  153. * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  154. - added --without-debug to configure,
  155. - modification in %build and %install and cosmetic modification in packages
  156. headers,
  157. - added %%{PACKAGE_VERSION} macro to Buildroot,
  158. - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
  159. - removed Packager field.
  160. * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
  161. - Merged spec file with that from RedHat-5.0 distribution
  162. (now a Hurricane-based distribution is needed)
  163. - Added patch for RPM script (didn't always work with rpm-2.4.10)
  164. - Corrected patch for mcserv init file (chkconfig init levels)
  165. - Added more documentation files on termcap, terminfo, xterm
  166. * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
  167. - Added dependency on portmap
  168. * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
  169. - fixed spec file.
  170. - Updated to 4.1.8
  171. * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  172. - updated to 4.1.6
  173. - added %attr macros in %files,
  174. - a few simplification in %install,
  175. - removed glibc patch,
  176. - fixed installing /etc/X11/wmconfig/tkmc.
  177. * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
  178. - updated to 4.1.5
  179. - added wmconfig
  180. * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
  181. - chkconfig is for mcserv package, not mc one
  182. * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
  183. - patched init script for chkconfig
  184. - don't turn on the service by default
  185. * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
  186. - Converted to new PAM conventions.
  187. - Updated to 4.1.3
  188. - No longer needs glibc patch.
  189. * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
  190. - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
  191. - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
  192. (mcserv needs to be killed before inet)
  193. - removed all references to $RPM_SOURCE_DIR
  194. - restored $RPM_OPT_FLAGS when compiling
  195. - minor cleanup of spec file: redundant directives and comments removed
  196. * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
  197. - removed all references to non-existent mc.rpmfs
  198. - added mcedit.1 to the %files section
  199. - reverted to un-gzipped man pages (RedHat style)
  200. - removed double install line for mcserv.pamd
  201. * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  202. - added new rpmfs script,
  203. - removed mcfn_install from mc (adding mc() to bash enviroment is in
  204. /etc/profile.d/mc.sh),
  205. - /etc/profile.d/mc.sh changed to %config,
  206. - removed /usr/lib/mc/bin/create_vcs,
  207. - removed /usr/lib/mc/term.
  208. * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  209. - changed source url,
  210. - fixed link mcedit to mc,
  211. * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  212. - new version 3.5.27,
  213. - %dir /usr/lib/mc/icons and icons removed from tkmc,
  214. - added commented xmc part.
  215. * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  216. - FIX spec:
  217. - added URL field,
  218. - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
  219. /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
  220. * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  221. - added making packages: tkmc, mcserv (xmc not work yet),
  222. - gziped man pages,
  223. - added /etc/pamd.d/mcserv PAM config file.
  224. - added instaling icons,
  225. - added /etc/profile.d/mc.sh,
  226. - in %doc added NEWS README,
  227. - removed /usr/lib/mc/FAQ,
  228. - added mcserv.init script for mcserv (start/stop on level 86).