mc.spec.in 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. # Conditional build (replace "#" with "%" to enable):
  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 code for charset conversion
  6. #define _with_samba 1 # enable SMB/CIFS virtual file system
  7. #define _with_ext2undel 1 # compile with ext2 undelete code
  8. #define _without_x 1 # avoid dependency on X11 libraries
  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. License: GPL/LGPL
  20. Group: Applications/File
  21. Source0: ftp://ftp.gnu.org/gnu/mc/mc-%{ver}.tar.gz
  22. URL: http://www.midnight-commander.org/
  23. BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
  24. # Names of those packages are distribution specific
  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_ext2undel: --with-ext2undel} \
  47. %{?_without_x: --without-x}
  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/%{_sysconfdir}/profile.d
  54. cp -f $RPM_BUILD_ROOT/%{_datadir}/mc/bin/mc.*sh \
  55. $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %files
  59. %defattr(-, root, root)
  60. %doc FAQ COPYING NEWS README
  61. %{_bindir}/mc
  62. %{_bindir}/mcedit
  63. %{_bindir}/mcview
  64. %{_bindir}/mcmfmt
  65. %attr(4755, vcsa, tty) %{_libexecdir}/mc/cons.saver
  66. %{_mandir}/man1/*
  67. %{_mandir}/*/man1/*
  68. %config %{_sysconfdir}/profile.d/*
  69. %{_datadir}/mc/cedit.menu
  70. %{_datadir}/mc/edit.indent.rc
  71. %{_datadir}/mc/edit.spell.rc
  72. %{_datadir}/mc/bin/*
  73. %{_datadir}/mc/extfs/*
  74. %{_datadir}/mc/mc.ext
  75. %{_datadir}/mc/mc.lib
  76. %{_datadir}/mc/mc.menu*
  77. %{?_with_charset:%config %{_datadir}/mc/mc.charsets}
  78. %{_datadir}/mc/mc.hint*
  79. %{_datadir}/mc/mc.hlp*
  80. %{_datadir}/mc/syntax/*
  81. %{_datadir}/locale/*/LC_MESSAGES/*
  82. %dir %{_libexecdir}/mc
  83. %dir %{_datadir}/mc
  84. %dir %{_datadir}/mc/extfs
  85. %dir %{_datadir}/mc/syntax
  86. %changelog
  87. * Fri Jun 22 2007 Pavel Roskin <proski@gnu.org>
  88. - Make cons.saver suid vcsa, it's needed for Fedora 7
  89. * Thu Dec 21 2006 Pavel Roskin <proski@gnu.org>
  90. - Don't rely on brace expansion, it may be disabled
  91. * Mon Jan 30 2006 Pavel Roskin <proski@gnu.org>
  92. - Avoid using %{_prefix} where more specialized macros are available.
  93. * Tue Aug 02 2005 Pavel Roskin <proski@gnu.org>
  94. - Replace obsolete "Copyright" with "License".
  95. * Thu Mar 31 2005 Pavel Roskin <proski@gnu.org>
  96. - Comment out build dependencies - they are too distribution specific.
  97. * Tue Sep 23 2003 Pavel Roskin <proski@gnu.org>
  98. - Remove term directory, it's obsolete and irrelevant on modern systems.
  99. - Include translated menu files.
  100. * Sun Feb 16 2003 Pavel Roskin <proski@gnu.org>
  101. - Remove obsolete dependency on /sbin/chkconfig.
  102. * Tue Dec 24 2002 Pavel Roskin <proski@gnu.org>
  103. - Work around bug in rpm 4.1 that expands defines in comments.
  104. - Handle --without-x.
  105. * Mon Nov 04 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  106. - Handle --with ext2undel.
  107. * Fri Nov 01 2002 Pavel Roskin <proski@gnu.org>
  108. - Add wrappers to support setting last directory on exit. Keep all
  109. scripts in their original directory, just copy them.
  110. * Tue Oct 22 2002 Pavel Roskin <proski@gnu.org>
  111. - Don't use the included S-Lang, there is a workaround for Red Hat 8.0
  112. S-Lang, and binary compatibility with Red Hat 7.x doesn't work anyway.
  113. * Tue Oct 08 2002 Pavel Roskin <proski@gnu.org>
  114. - Use the included S-Lang again, since we include a better version now.
  115. This should avoid incompatibility with Red Hat 7.x.
  116. - Add _with_glib2 option.
  117. * Mon Oct 07 2002 Pavel Roskin <proski@gnu.org>
  118. - Remove installed mc.sh and mc.csh from %{_prefix}/share/mc/bin to
  119. suppress a warning about installed but unpackaged files.
  120. * Mon Sep 30 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  121. - Don't require slang-devel if _with_ncurses.
  122. - Handle --with samba.
  123. * Sun Sep 29 2002 Pavel Roskin <proski@gnu.org>
  124. - Use --with-screen instead of --with-ncurses and --with-included-slang.
  125. * Mon Sep 23 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  126. - Restore %config for %{_prefix}/share/mc/mc.charsets.
  127. - Restore %{_prefix}/share/mc/edit.spell.rc.
  128. * Sat Sep 21 2002 Pavel Roskin <proski@gnu.org>
  129. - Use FHS-compliant paths.
  130. - Drop %config from files under /usr/share - users are not supposed to
  131. edit them. Local copies under ~/.mc should be used for that.
  132. * Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
  133. - Change description, update URLs, allow dash in the version.
  134. * Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
  135. - Support conditional builds.
  136. * Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
  137. - Add /usr/lib/mc/mc.charsets.
  138. - Add %{_mandir}/*/man1/*.
  139. * Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
  140. - Remove mc.global.
  141. * Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
  142. - Remove --with-gnome and --with-included-slang from configure options.
  143. - Add BuildPrereq.
  144. * Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
  145. - Remove gmc. Reunite mc and mc-common.
  146. * Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
  147. - Set epoch.
  148. * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
  149. - Remove /usr/lib/mc/layout.
  150. * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
  151. - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
  152. * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
  153. - Change groups. Don't include locale directories. More config files.
  154. * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
  155. - Don't require stylesheets, since HTML files are now in the tarball.
  156. * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
  157. - Remove package mcserv. Drop dependency on PAM.
  158. * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
  159. - Remove mc-gnome.ext.
  160. * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
  161. - Include mcview.
  162. * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
  163. - Allow mcserv.8 to be gzipped.
  164. * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
  165. - New package mc-common.
  166. - Use DESTDIR instead of misusing prefix.
  167. - Don't install old icons - they don't exist
  168. * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
  169. - Include translations with mc, not gmc
  170. - chkconfig --del in %preun, not %postun
  171. - --without-debug not needed
  172. - /etc/X11/wmconfig not needed
  173. - /etc/pam.d/mcserv shouldn't be executable
  174. - New files in %{prefix}/lib/mc/ - translated hints, editor files
  175. * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
  176. - Include .idl files in the package.
  177. * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
  178. - Added a build prereq so that rpms get built with documentation ;)
  179. * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
  180. - added help and locale files to %files
  181. * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
  182. - added syntax files to %files
  183. * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
  184. - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
  185. $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
  186. * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
  187. - Updated the specfile, removed some kludges.
  188. * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
  189. - rebuilt against gnome-libs 0.27 and gtk+-1.1
  190. * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
  191. - made cons.saver not setuid
  192. * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
  193. - removed tkmc
  194. * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
  195. - add /usr/lib/mc/layout to gmc