mc.spec.in 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. # Conditional build:
  2. #
  3. #%define _with_ncurses 1 # use ncurses
  4. #%define _with_included_slang 1 # use included S-Lang library
  5. #%define _with_charset 1 # enable experimental code for charset conversion
  6. #%define _with_samba 1 # enable SMB/CIFS virtual file system
  7. #%define _with_glib2 1 # compile against glib2
  8. #%define _with_ext2undel 1 # compile with ext2 undelete code [if available]
  9. # Note that this is NOT a relocatable package
  10. %define ver @VERSION@
  11. %define rpmver @RPM_VERSION@
  12. %define RELEASE 1
  13. %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
  14. Summary: Midnight Commander visual shell
  15. Name: mc
  16. Version: %rpmver
  17. Release: %rel
  18. Epoch: 1
  19. Copyright: GPL
  20. Group: Applications/File
  21. Source0: ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-%{ver}.tar.gz
  22. URL: http://www.ibiblio.org/mc/
  23. BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
  24. Prereq: /sbin/chkconfig
  25. BuildRequires: glib-devel
  26. %{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
  27. %{?_with_ncurses:BuildRequires: ncurses-devel}
  28. %description
  29. GNU Midnight Commander is a visual file manager. It's a feature rich
  30. full-screen text mode application that allows you to copy, move and
  31. delete files and whole directory trees, search for files and run
  32. commands in the subshell. Internal viewer and editor are included.
  33. Mouse is supported under X Window System and on Linux console. VFS
  34. (Virtual Filesystem) allows you to view archives and files on remote
  35. servers.
  36. %prep
  37. %setup -q -n mc-%{ver}
  38. %build
  39. CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
  40. --prefix=%{_prefix} \
  41. --mandir=%{_mandir} \
  42. %{?_with_ncurses: --with-screen=ncurses} \
  43. %{?_with_included_slang: --with-screen=mcslang} \
  44. %{?_with_charset: --enable-charset} \
  45. %{?_with_samba: --with-samba} \
  46. %{?_with_glib2: --with-glib2} \
  47. %{?_with_ext2undel: --with-ext2undel}
  48. make
  49. %install
  50. echo $RPM_BUILD_ROOT
  51. rm -rf $RPM_BUILD_ROOT
  52. make install DESTDIR=$RPM_BUILD_ROOT
  53. install -d $RPM_BUILD_ROOT/etc/profile.d
  54. cp -f $RPM_BUILD_ROOT%{_prefix}/share/mc/bin/mc.{csh,sh} \
  55. $RPM_BUILD_ROOT/etc/profile.d
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %files
  59. %defattr(-, root, root)
  60. %doc FAQ COPYING NEWS README
  61. %{_prefix}/bin/mc
  62. %{_prefix}/bin/mcedit
  63. %{_prefix}/bin/mcview
  64. %{_prefix}/bin/mcmfmt
  65. %{_prefix}/lib/mc/cons.saver
  66. %{_mandir}/man1/*
  67. %{_mandir}/*/man1/*
  68. %config /etc/profile.d/*
  69. %{_prefix}/share/mc/cedit.menu
  70. %{_prefix}/share/mc/edit.indent.rc
  71. %{_prefix}/share/mc/edit.spell.rc
  72. %{_prefix}/share/mc/bin/*
  73. %{_prefix}/share/mc/extfs/*
  74. %{_prefix}/share/mc/mc.ext
  75. %{_prefix}/share/mc/mc.lib
  76. %{_prefix}/share/mc/mc.menu
  77. %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
  78. %{_prefix}/share/mc/mc.hint*
  79. %{_prefix}/share/mc/mc.hlp*
  80. %{_prefix}/share/mc/syntax/*
  81. %{_prefix}/share/mc/term/*
  82. %{_prefix}/share/locale/*/LC_MESSAGES/*
  83. %dir %{_prefix}/lib/mc
  84. %dir %{_prefix}/share/mc
  85. %dir %{_prefix}/share/mc/extfs
  86. %dir %{_prefix}/share/mc/syntax
  87. %dir %{_prefix}/share/mc/term
  88. %changelog
  89. * Mon Nov 04 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  90. - Handle --with ext2undel.
  91. * Fri Nov 01 2002 Pavel Roskin <proski@gnu.org>
  92. - Add wrappers to support setting last directory on exit. Keep all
  93. scripts in their original directory, just copy them.
  94. * Tue Oct 22 2002 Pavel Roskin <proski@gnu.org>
  95. - Don't use the included S-Lang, there is a workaround for Red Hat 8.0
  96. S-Lang, and binary compatibility with Red Hat 7.x doesn't work anyway.
  97. * Tue Oct 08 2002 Pavel Roskin <proski@gnu.org>
  98. - Use the included S-Lang again, since we include a better version now.
  99. This should avoid incompatibility with Red Hat 7.x.
  100. - Add _with_glib2 option.
  101. * Mon Oct 07 2002 Pavel Roskin <proski@gnu.org>
  102. - Remove installed mc.sh and mc.csh from %{_prefix}/share/mc/bin to
  103. suppress a warning about installed but unpackaged files.
  104. * Mon Sep 30 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  105. - Don't require slang-devel if _with_ncurses.
  106. - Handle --with samba.
  107. * Sun Sep 29 2002 Pavel Roskin <proski@gnu.org>
  108. - Use --with-screen instead of --with-ncurses and --with-included-slang.
  109. * Mon Sep 23 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  110. - Restore %config for %{_prefix}/share/mc/mc.charsets.
  111. - Restore %{_prefix}/share/mc/edit.spell.rc.
  112. * Sat Sep 21 2002 Pavel Roskin <proski@gnu.org>
  113. - Use FHS-compliant paths.
  114. - Drop %config from files under /usr/share - users are not supposed to
  115. edit them. Local copies under ~/.mc should be used for that.
  116. * Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
  117. - Change description, update URLs, allow dash in the version.
  118. * Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
  119. - Support conditional builds.
  120. * Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  121. - Add /usr/lib/mc/mc.charsets.
  122. - Add %{_mandir}/*/man1/*.
  123. * Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
  124. - Remove mc.global.
  125. * Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
  126. - Remove --with-gnome and --with-included-slang from configure options.
  127. - Add BuildPrereq.
  128. * Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
  129. - Remove gmc. Reunite mc and mc-common.
  130. * Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
  131. - Set epoch.
  132. * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
  133. - Remove /usr/lib/mc/layout.
  134. * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
  135. - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
  136. * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
  137. - Change groups. Don't include locale directories. More config files.
  138. * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
  139. - Don't require stylesheets, since HTML files are now in the tarball.
  140. * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
  141. - Remove package mcserv. Drop dependency on PAM.
  142. * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
  143. - Remove mc-gnome.ext.
  144. * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
  145. - Include mcview.
  146. * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
  147. - Allow mcserv.8 to be gzipped.
  148. * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
  149. - New package mc-common.
  150. - Use DESTDIR instead of misusing prefix.
  151. - Don't install old icons - they don't exist
  152. * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
  153. - Include translations with mc, not gmc
  154. - chkconfig --del in %preun, not %postun
  155. - --without-debug not needed
  156. - /etc/X11/wmconfig not needed
  157. - /etc/pam.d/mcserv shouldn't be executable
  158. - New files in %{prefix}/lib/mc/ - translated hints, editor files
  159. * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
  160. - Include .idl files in the package.
  161. * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
  162. - Added a build prereq so that rpms get built with documentation ;)
  163. * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
  164. - added help and locale files to %files
  165. * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
  166. - added syntax files to %files
  167. * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
  168. - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
  169. $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
  170. * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
  171. - Updated the specfile, removed some kludges.
  172. * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
  173. - rebuilt against gnome-libs 0.27 and gtk+-1.1
  174. * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
  175. - made cons.saver not setuid
  176. * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
  177. - removed tkmc
  178. * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
  179. - add /usr/lib/mc/layout to gmc
  180. * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  181. - added --without-debug to configure,
  182. - modification in %build and %install and cosmetic modification in packages
  183. headers,
  184. - added %%{PACKAGE_VERSION} macro to Buildroot,
  185. - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
  186. - removed Packager field.
  187. * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
  188. - Merged spec file with that from RedHat-5.0 distribution
  189. (now a Hurricane-based distribution is needed)
  190. - Added patch for RPM script (didn't always work with rpm-2.4.10)
  191. - Corrected patch for mcserv init file (chkconfig init levels)
  192. - Added more documentation files on termcap, terminfo, xterm
  193. * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
  194. - Added dependency on portmap
  195. * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
  196. - fixed spec file.
  197. - Updated to 4.1.8
  198. * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  199. - updated to 4.1.6
  200. - added %attr macros in %files,
  201. - a few simplification in %install,
  202. - removed glibc patch,
  203. - fixed installing /etc/X11/wmconfig/tkmc.
  204. * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
  205. - updated to 4.1.5
  206. - added wmconfig
  207. * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
  208. - chkconfig is for mcserv package, not mc one
  209. * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
  210. - patched init script for chkconfig
  211. - don't turn on the service by default
  212. * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
  213. - Converted to new PAM conventions.
  214. - Updated to 4.1.3
  215. - No longer needs glibc patch.
  216. * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
  217. - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
  218. - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
  219. (mcserv needs to be killed before inet)
  220. - removed all references to $RPM_SOURCE_DIR
  221. - restored $RPM_OPT_FLAGS when compiling
  222. - minor cleanup of spec file: redundant directives and comments removed
  223. * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
  224. - removed all references to non-existent mc.rpmfs
  225. - added mcedit.1 to the %files section
  226. - reverted to un-gzipped man pages (RedHat style)
  227. - removed double install line for mcserv.pamd
  228. * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  229. - added new rpmfs script,
  230. - removed mcfn_install from mc (adding mc() to bash enviroment is in
  231. /etc/profile.d/mc.sh),
  232. - /etc/profile.d/mc.sh changed to %config,
  233. - removed /usr/lib/mc/bin/create_vcs,
  234. - removed /usr/lib/mc/term.
  235. * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  236. - changed source url,
  237. - fixed link mcedit to mc,
  238. * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  239. - new version 3.5.27,
  240. - %dir /usr/lib/mc/icons and icons removed from tkmc,
  241. - added commented xmc part.
  242. * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  243. - FIX spec:
  244. - added URL field,
  245. - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
  246. /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
  247. * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
  248. - added making packages: tkmc, mcserv (xmc not work yet),
  249. - gziped man pages,
  250. - added /etc/pamd.d/mcserv PAM config file.
  251. - added instaling icons,
  252. - added /etc/profile.d/mc.sh,
  253. - in %doc added NEWS README,
  254. - removed /usr/lib/mc/FAQ,
  255. - added mcserv.init script for mcserv (start/stop on level 86).