mc.spec.in 7.8 KB

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