mc.spec.in 8.6 KB

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