diff --git a/.cvsignore b/.cvsignore index e69de29..459330f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +mc-4.5.51.tar.gz diff --git a/mc.spec b/mc.spec new file mode 100644 index 0000000..c02d140 --- /dev/null +++ b/mc.spec @@ -0,0 +1,476 @@ +Summary: A user-friendly file manager and visual shell. +Name: mc +Version: 4.5.51 +Release: 18 +Copyright: GPL +Group: System Environment/Shells +Source0: ftp://ftp.gnome.org/pub/GNOME/sources/mc/mc-%{version}.tar.gz +Source1: redhat.links +URL: http://www.gnome.org/mc/ +BuildRoot: /var/tmp/mc-%{version}-root +Requires: pam >= 0.59, /etc/pam.d/system-auth /etc/init.d +BuildRequires: gpm-devel + +Prereq: /sbin/chkconfig + +Patch0: mc-4.5.35-xtermcolor.patch +Patch2: mc-4.5.35-fixwarning.patch + +Patch3: mc-4.5.36-mimekeys.patch + +Patch10: mc-4.5.35-homedir.patch +Patch16: mc-4.5.30-norpmmime.patch +Patch17: mc-4.5.42-absoluterm.patch +Patch20: mc-4.5.42-fixsh.patch +Patch21: samba-ia64.patch +Patch22: mc-4.5.43-prototype.patch +Patch23: mc-4.5.46-system-auth.patch +Patch24: mc-4.5.51-initscript.patch +Patch25: mc-4.5.51-showagain.patch +Patch26: mc-4.5.51-stderr.patch +Patch27: mc-4.5.51-gnome-editor.patch +Patch28: mc-4.5.51-extention.patch +Patch29: mc-4.5.51-fixrescan.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 +best features are its ability to FTP, view tar and zip files, and +to poke into RPMs for specific files. + +%package -n gmc +Summary: The GNOME version of the Midnight Commander file manager. +Requires: mc >= %{version} redhat-logos +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 +Requires: portmap +Prereq: /sbin/chkconfig /etc/init.d + +%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 .xtermcolor + +%patch2 -p1 -b .fixwarning +%patch3 -p1 -b .mimekeys + +%patch10 -p1 -b .homedir +%patch16 -p1 -b .norpmmime +%patch17 -p1 -b .absoluterm +%patch20 -p1 -b .fixsh +pushd vfs/samba +%patch21 -p2 -b .ia64 +popd +%patch22 -p1 -b .prototype +%patch23 -p1 -b .system-auth +%patch24 -p1 -b .initscript +%patch25 -p1 -b .showagain +%patch26 -p1 -b .stderr +%patch27 -p1 -b .gnome +%patch28 -p1 -b .extention +%patch29 -p1 -b .fixrescan + +%build +%configure --sysconfdir=/etc\ + --with-gnome \ + --without-debug \ + --with-included-slang +make + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig} + +%{makeinstall} sysconfdir=$RPM_BUILD_ROOT/etc +# make DESTDIR=$RPM_BUILD_ROOT install + +strip $RPM_BUILD_ROOT%{_bindir}/* +(cd icons; make prefix=$RPM_BUILD_ROOT%{_prefix} install_icons) +install lib/mcserv.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv + +install -m 644 lib/mcserv.pamd $RPM_BUILD_ROOT/etc/pam.d/mcserv +install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/profile.d +install -m 644 lib/mc.global $RPM_BUILD_ROOT/etc + +# clean up this setuid problem for now +chmod 755 $RPM_BUILD_ROOT/%{_libdir}/mc/bin/cons.saver + +# copy redhat desktop default icons +mkdir -p $RPM_BUILD_ROOT/%{_libdir}/desktop-links/ +install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_libdir}/desktop-links/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -n mcserv +/sbin/chkconfig --add mcserv + +%preun -n mcserv +if [ "$1" = "0" ]; then + service mcserv stop >/dev/null 2>&1 + /sbin/chkconfig --del mcserv +fi + +%postun -n mcserv +if [ "$1" -ge "1" ]; then + service mcserv condrestart >/dev/null 2>&1 +fi + +%files +%defattr(-, root, root) + +%doc FAQ COPYING NEWS README +%{_bindir}/mc +%{_bindir}/mcedit +%{_bindir}/mcmfmt +%{_libdir}/mc/mc.ext +%{_libdir}/mc/mc.hint +%{_libdir}/mc/mc.hlp +%{_libdir}/mc/mc.lib +%{_libdir}/mc/mc.menu +%{_libdir}/mc/bin/cons.saver +%{_libdir}/mc/extfs/* +%{_libdir}/mc/syntax/* +%{_mandir}/man1/* +%{_datadir}/locale/*/*/* +%config /etc/profile.d/* +%dir %{_libdir}/mc +%dir %{_libdir}/mc/bin +#%{_datadir}/mime-info/* + +%files -n mcserv +%defattr(-, root, root) + +%attr(0644, root, root) %config /etc/pam.d/mcserv +%config /etc/rc.d/init.d/mcserv +%attr(-, root, man) %{_mandir}/man8/mcserv* +%{_bindir}/mcserv + +%files -n gmc +%defattr(-, root, root) + +%doc lib/README.desktop +%config /etc/mc.global +%{_prefix}/bin/gmc +%{_prefix}/bin/plain-gmc +%{_prefix}/bin/gmc-client +%{_prefix}/lib/mc/layout +%{_prefix}/lib/mc/mc-gnome.ext +%{_prefix}/share/pixmaps/mc/* +%{_prefix}/share/mime-info/mc.keys +%{_prefix}/share/idl/*.idl + +%config /etc/CORBA/servers/* +%config /usr/lib/desktop-links/* + +%changelog +* Mon Aug 21 2000 Jonathan Blandford +- fixed bug 16467 + +* Thu Aug 17 2000 Tim Powers +- modified my patch (again) to free quoted + +* Thu Aug 17 2000 Nalin Dahyabhai +- run %%configure in the build phase, not the setup +- modify Tim's patch to always just edit one file + +* Thu Aug 17 2000 Than Ngo +- fix problems viewing the package (Bug #16378) + +* Thu Aug 17 2000 Tim Powers +- fixed bug #16269 + +* Fri Aug 4 2000 Tim Waugh +- make stdout/stderr writable before forking + +* Wed Aug 02 2000 Jonathan Blandford +- Updated desktop entries. + +* Thu Jul 20 2000 Bill Nottingham +- move initscript back + +* Wed Jul 19 2000 Jonathan Blandford +- make the togglebutton patch work correctly + +* Tue Jul 18 2000 Nalin Dahyabhai +- fix syntax error in mcserv.init that crept in with condrestart + +* Mon Jul 17 2000 Jonathan Blandford +- added a toggle button to let people turn off the "you are running + gmc as root" warning. + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jul 10 2000 Preston Brown +- move initscript, add condrestart stuff + +* Mon Jul 10 2000 Florian La Roche +- remove execute bits from config/pam files + +* Mon Jul 3 2000 Jonathan Blandford +- Update to 4.5.51. Now there is a trashcan! + +* Thu Jun 15 2000 Owen Taylor +- Update to 4.5.49 + +* Fri Jun 2 2000 Nalin Dahyabhai +- modify PAM setup to use system-auth + +* Mon May 22 2000 Bill Nottingham +- hmmm, ia64 patches fell out. + +* Fri May 19 2000 Jonathan Blandford +- upgrade to new version of mc. +- removed builtincpio patch + +* 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�oczko +- 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�oczko + +- 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�oczko + +- 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�oczko + +- changed source url, +- fixed link mcedit to mc, + +* Tue May 7 1997 Tomasz K�oczko + +- 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�oczko + +- 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�oczko + +- 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). diff --git a/sources b/sources index e69de29..f5bf7c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c604292554887e9e6baba0828081b963 mc-4.5.51.tar.gz