# Note that this is NOT a relocatable package %define prefix %{_prefix} Summary: A user-friendly file manager and visual shell. Name: mc Version: 4.5.54 Release: 4 Copyright: GPL Group: System Environment/Shells Source0: ftp://ftp.gnome.org/pub/GNOME/sources/mc/mc-%{version}.tar.gz URL: http://www.gnome.org/mc/ BuildRoot: /var/tmp/mc-%{version}-root %ifos linux BuildRequires: gpm-devel %endif Prefix: %{_prefix} Patch0: mc-%{version}-aix.patch %description Midnight Commander is a visual shell much like a file manager, only with many more features. It is a text mode application, but it also includes mouse support if you are running GPM. Midnight Commander's coolest features are its abilities to FTP, view tar and zip files, and to poke into RPMs for specific files. %ifarch ia64 %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define DEFCC cc %endif %package -n gmc Summary: The GNOME version of the Midnight Commander file manager. Requires: mc >= %{version} Group: User Interface/Desktops %description -n gmc GMC (GNU Midnight Commander) is a file manager based on the terminal version of Midnight Commander, with the addition of a GNOME GUI desktop front-end. GMC can FTP, view TAR and compressed files and look into RPMs for specific files. Install gmc if you're installing GNOME and you'd like to use the Midnight Commander file manager with it. %package -n mcserv Summary: Server for the Midnight Commander network file management system. Group: System Environment/Daemons %description -n mcserv The Midnight Commander file management system will allow you to manipulate the files on a remote machine as if they were local. This is only possible if the remote machine is running the mcserv server program. Mcserv provides clients running Midnight Commander with access to the host's file systems. Install mcserv on machines if you want to access their file systems remotely using the Midnight Commander file management system. %prep %setup -q %patch -p1 -b .aix # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` if test "X$CC" = "Xcc" then # alloca export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -ma" fi fi %ifnarch ia64 export LDFLAGS="-Wl,-brtl" %endif CFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="-D_AIX32_CURSES" ./configure \ --prefix=%{_prefix} --sysconfdir=/etc\ --with-gnome \ --without-debug # \ #--with-included-slang %build make %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/X11/wmconfig make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT/etc install /usr/bin/strip $RPM_BUILD_ROOT%{_prefix}/bin/* || : #(cd icons; make prefix=$RPM_BUILD_ROOT%{_prefix} install_icons) install lib/mc.global $RPM_BUILD_ROOT/etc (cd $RPM_BUILD_ROOT for dir in bin lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc FAQ COPYING NEWS README %{_prefix}/bin/mc %{_prefix}/bin/mcedit %{_prefix}/bin/mcmfmt /usr/bin/mc /usr/bin/mcedit /usr/bin/mcmfmt %{_prefix}/lib/mc/mc.ext %{_prefix}/lib/mc/mc.hint %{_prefix}/lib/mc/mc.hlp %{_prefix}/lib/mc/mc.lib %{_prefix}/lib/mc/mc.menu %{_prefix}/lib/mc/extfs/* %{_prefix}/lib/mc/syntax/* /usr/lib/mc %{_prefix}/man/man1/* #%{_prefix}/share/locale/*/*/* %{_prefix}/lib/locale/*/*/* %dir %{_prefix}/lib/mc %dir %{_prefix}/lib/mc/bin #%{prefix}/share/mime-info/* %files -n mcserv %defattr(-, root, root) %ifos linux %attr(-, root, man) %{_prefix}/man/man8/mcserv* %else %{_prefix}/man/man8/mcserv* %endif %{_prefix}/bin/mcserv %files -n gmc %defattr(-, root, root) %doc lib/README.desktop %config /etc/mc.global %{_prefix}/bin/gmc %{_prefix}/bin/plain-gmc /usr/bin/gmc /usr/bin/plain-gmc %{_prefix}/lib/mc/layout %{_prefix}/share/pixmaps/mc/* %{_prefix}/share/mime-info/mc.keys %{_prefix}/share/idl/*.idl %config /etc/CORBA/servers/* %changelog * Fri Sep 14 2001 Dan McNichol - Update to version 4.5.54. * Sat Apr 06 2001 Marc Stephenson - Exclude included slang * Sun Mar 25 2001 Marc Stephenson - Define -D_AIX32_CURSES for slang - Define -ma for alloca support under cc * Sat Mar 24 2001 Marc Stephenson - Rebuild against new shared objects - Use default compiler * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Wed Feb 22 2000 Preston Brown - fix mc.sh, function was not exported * Wed Feb 17 2000 Jakub Jelinek - builtin cpio vfs, change rpm extfs to use it - should speed up e.g. copyout from rpm by orders of magnitude patch by Jan Hudec - fix buglet in the patch * Mon Feb 14 2000 Preston Brown - move redhat-logos depency to gmc (#9395) * Fri Feb 4 2000 Jonathan Blandford - changed default rpm action to be upgrade. - Changed locale to be in mc package, instead of gmc. * Thu Feb 3 2000 Jonathan Blandford - use /bin/rm instead of rm so that aliases won't interfere with the script * Fri Sep 25 1999 Bill Nottingham - chkconfig --del in %preun, not %postun * Wed Sep 22 1999 Michael Fulbright - updated to 4.5.39-pre9 * Wed Aug 04 1999 Michael K. Johnson - moved configure to setup - buildrequires gpm-devel so mouse works in console * Wed Jul 22 1999 Michael Fulbright - added ${prefix}/lib/mc/syntax to mc file list - turned off samba support * Wed Jul 7 1999 Jonathan Blandford - updated mc to work with mc 4.5.36. Thanks to Brian Ryner for providing the patch. * Mon Apr 19 1999 Michael Fulbright - removed rpm menu defs - we depend on gnorpm for these - fixed bug that caused crash if group doesnt exist for file * Thu Apr 15 1999 Michael Fulbright - cleanup several dialogs * Mon Apr 12 1999 Michael Fulbright - true version 4.5.30 * Fri Apr 09 1999 Michael Fulbright - version pre-4.5.30 with patch to make this link on alpha properly Mark as version 0.7 to denote not the official 4.5.30 release * Tue Apr 06 1999 Preston Brown - strip binaries * Wed Mar 31 1999 Michael Fulbright - fixed errata support URL * Tue Mar 25 1999 Michael Fulbright - version 4.5.29 - added default desktop icons for Red Hat desktop - added redhat-logos to requirements - added README.desktop to doc list for gmc - added locale data * Fri Mar 25 1999 Preston Brown - patched so that TERM variable set to xterm produces color * Mon Mar 22 1999 Michael Fulbright - made sure /etc/pam.d/mcserv has right permissions * Thu Mar 18 1999 Michael Fulbright - version 4.5.27 * Tue Mar 16 1999 Michael Fulbright - fix'd icon display problem * Sun Mar 14 1999 Michael Fulbright - version 4.5.25 AND 4.5.26 * Wed Mar 10 1999 Michael Fulbright - version 4.5.24 * Mon Feb 15 1999 Michael Fulbright - version 4.5.16 - removed mc.keys from mc file list * Fri Feb 12 1999 Michael Fulbright - version 4.5.14 - fixed file list * Sat Feb 06 1999 Michael Fulbright - version 4.5.11 * Wed Feb 03 1999 Michael Fulbright - version 4.5.10 * Fri Jan 22 1999 Michael Fulbright - added metadata to gmc file list * Mon Jan 18 1999 Michael Fulbright - version 4.5.9 * Wed Jan 06 1999 Michael Fulbright - version 4.5.6 * Wed Dec 16 1998 Michael Fulbright - updated for GNOME freeze * Thu Aug 20 1998 Michael Fulbright - rebuilt against gnome-libs 0.27 and gtk+-1.1 * Thu Jul 09 1998 Michael Fulbright - made cons.saver not setuid * Sun Apr 19 1998 Marc Ewing - removed tkmc * Wed Apr 8 1998 Marc Ewing - add %{prefix}/lib/mc/layout to gmc * Tue Dec 23 1997 Tomasz K這czko - added --without-debug to configure, - modification in %build and %install and cosmetic modification in packages headers, - added %%{PACKAGE_VERSION} macro to Buildroot, - removed "rm -rf $RPM_BUILD_ROOT" from %prep. - removed Packager field. * Thu Dec 18 1997 Michele Marziani - Merged spec file with that from RedHat-5.0 distribution (now a Hurricane-based distribution is needed) - Added patch for RPM script (didn't always work with rpm-2.4.10) - Corrected patch for mcserv init file (chkconfig init levels) - Added more documentation files on termcap, terminfo, xterm * Thu Oct 30 1997 Michael K. Johnson - Added dependency on portmap * Wed Oct 29 1997 Michael K. Johnson - fixed spec file. - Updated to 4.1.8 * Sun Oct 26 1997 Tomasz K這czko - updated to 4.1.6 - added %attr macros in %files, - a few simplification in %install, - removed glibc patch, - fixed installing /etc/X11/wmconfig/tkmc. * Thu Oct 23 1997 Michael K. Johnson - updated to 4.1.5 - added wmconfig * Wed Oct 15 1997 Erik Troan - chkconfig is for mcserv package, not mc one * Tue Oct 14 1997 Erik Troan - patched init script for chkconfig - don't turn on the service by default * Fri Oct 10 1997 Michael K. Johnson - Converted to new PAM conventions. - Updated to 4.1.3 - No longer needs glibc patch. * Thu May 22 1997 Michele Marziani - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh) - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d (mcserv needs to be killed before inet) - removed all references to $RPM_SOURCE_DIR - restored $RPM_OPT_FLAGS when compiling - minor cleanup of spec file: redundant directives and comments removed * Sun May 18 1997 Michele Marziani - removed all references to non-existent mc.rpmfs - added mcedit.1 to the %files section - reverted to un-gzipped man pages (RedHat style) - removed double install line for mcserv.pamd * Tue May 13 1997 Tomasz K這czko - added new rpmfs script, - removed mcfn_install from mc (adding mc() to bash enviroment is in /etc/profile.d/mc.sh), - /etc/profile.d/mc.sh changed to %config, - removed %{prefix}/lib/mc/bin/create_vcs, - removed %{prefix}/lib/mc/term. * Wed May 9 1997 Tomasz K這czko - changed source url, - fixed link mcedit to mc, * Tue May 7 1997 Tomasz K這czko - new version 3.5.27, - %dir %{prefix}/lib/mc/icons and icons removed from tkmc, - added commented xmc part. * Tue Apr 22 1997 Tomasz K這czko - FIX spec: - added URL field, - in mc added missing %{prefix}/lib/mc/mc.ext, %{prefix}/lib/mc/mc.hint, %{prefix}/lib/mc/mc.hlp, %{prefix}/lib/mc/mc.lib, %{prefix}/lib/mc/mc.menu. * Fri Apr 18 1997 Tomasz K這czko - added making packages: tkmc, mcserv (xmc not work yet), - gziped man pages, - added /etc/pamd.d/mcserv PAM config file. - added instaling icons, - added /etc/profile.d/mc.sh, - in %doc added NEWS README, - removed %{prefix}/lib/mc/FAQ, - added mcserv.init script for mcserv (start/stop on level 86).