# # spec file for package mc (Version 4.6.0) # # Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://www.suse.de/feedback/ # # norootforbuild # neededforbuild audiofile docbook-dsssl-stylesheets docbook-toys docbook_3 e2fsprogs-devel glib2 glib2-devel gnome-filesystem indent iso_ent jpeg libjpeg libpng-devel-packages openjade pkgconfig readline readline-devel recode slang slang-devel x-devel-packages BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel XFree86-devel XFree86-libs audiofile autoconf automake binutils docbook-dsssl-stylesheets docbook-toys docbook_3 e2fsprogs-devel expat fontconfig fontconfig-devel gcc gdbm gettext glib2 glib2-devel gnome-filesystem indent iso_ent jpeg libjpeg libpng libpng-devel libtool openjade perl pkgconfig readline-devel recode rpm slang slang-devel %define __os_install_post %{nil} Name: mc %define _prefix /usr License: GPL Group: Productivity/File utilities Autoreqprov: on Version: 4.6.0 Release: 324 Summary: Midnight Commander Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}-%{version}.tar.bz2 Source1: mc-ja.po Source2: mc-ko.po Source3: mc.hint.ko Source4: mc.hint.de Source5: x11_browser Patch: mc-keydefs.patch Patch1: mc-4.5.51-glibc222.dif Patch2: mc-4.5.51-palmsupport.patch Patch3: mc-4.6.0-asmsyntax.patch Patch4: mc-4.6.0-largefile.diff Patch5: mc-localize.diff Patch6: mc-4.6.0-x11browser.diff #old mc-4.5.55-tempfile.patch Patch7: mc-4.6.0-tempfile.patch Patch8: mc-4.5.55-8bits_input.patch Patch9: mc-4.5.55-word_docs.patch Patch10: mc-posix_options.diff Patch11: mc-symlink_secfix.diff Patch12: mc-4.6.0-slang.patch Patch13: mc-4.6.0-utf8.patch Patch14: mc-4.6.0-utf8-fix.patch Patch15: mc-4.6.0-utf8-input.patch Patch16: mc-4.6.0-utf8-hints.patch Patch17: mc-4.6.0-slang-crash.patch Patch18: mc-4.6.0-X-error.patch Patch19: mc-4.6.0-file.patch Patch20: mc-4.6.0-key.c.patch Patch21: mc-4.6.0-apps.patch Patch22: mc-4.6.0-getpwuid.patch Patch23: mc-4.6.0-security-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.ibiblio.org/mc/ %description Midnight Commander is a Norton Commander clone; a program that manipulates and manages files and directories. It is useful, fast, and has color display on the Linux console. It also has mouse support if you run the "gpm" mouse server. This program requires the terminal description files in /usr/lib/terminfo, which are found in ncurses.rpm (the essential ones) or terminfo.rpm (the rest). You can also use Midnight Commander under the X Window System with your mouse. If you enter "mc -c", colors will be used. In Midnight Commander, the screen is divided into four sections, whereby the majority of the screen is covered by two directory panels. The second to last line on the screen is the shell command line; the last line displays the function key assignments. At the very top, the menu list is shown. One of the directories displayed is the current working directory. This is where most of the commands are found. For certain commands, like copy and move, the second directory is used as the target directory. Authors: -------- Miguel de Icaza Alexander Savelyev Andrej Borsenkow Andrew T. Veliath Christian GENNERAT David Martin Dugan Orlando Porter Federico Mena Quintero Fred Leeflang Ilya Zakharevich Jakub Jelinek Janne Kukonlehto Kjartan Maraas Mauricio Plaza Norbert Warmuth Owen Taylor Paul Sheer Pavel Machek Pavel Roskin Peter Kleiweg Radek Doulik Raja R Harinath Sebastian Wilhelmi Sergey Korshunoff Sung-Hyun Nam Timur I. Bakeyev Tuomas J. Lukka Wayne Roberts %define INSTALL install -m755 -s %define INSTALL_DIR install -d -m755 %define INSTALL_DATA install -m644 %prep %setup -q %patch -b .keydefs %patch1 %patch2 -p1 -b .palmsupport %patch3 -b .asmsyntax %patch4 %patch5 %patch6 %patch7 %patch8 %patch9 %patch10 %patch11 %patch12 -p1 %patch13 -p1 %patch14 %patch15 %patch16 %patch17 %patch18 %patch19 -p2 %patch20 %patch21 %patch22 %patch23 -p1 #%patch45 # improved Janpanese and Korean po files. # cp -f %{SOURCE1} po/ja.po # cp -f %{SOURCE2} po/ko.po #german help and hint files cp -f %{SOURCE4} lib cd lib recode l1..utf8 mc.hint mc.hint.de mc.hint.es mc.hint.it mc.hint.nl recode l2..utf8 mc.hint.cs mc.hint.hu mc.hint.pl recode koi8-r..utf8 mc.hint.ru recode koi8-r..utf8 mc.hint.uk recode big5..utf8 mc.hint.zh %build %define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -Wno-unused-parameter %{?suse_update_config:%{suse_update_config -f}} #autoreconf --force --install aclocal -I m4 automake autoconf autoheader CFLAGS=" -g %{warn_flags}" # LIBS=-L/usr/X11R6/lib # _libdir=%{_libdir} export CFLAGS #LIBS _libdir ./configure \ --mandir=%{_mandir} \ --prefix=%{_prefix} \ --localstatedir=/var/lib \ --libdir=%{_libdir} \ --enable-charset make %install make DESTDIR=%{buildroot} install # clean up this setuid problem for now chmod 755 %{buildroot}/%{_libdir}/mc/cons.saver # copy Korean mc hint message, # install -m 0644 %{SOURCE3} %{datadir}/mc/ #install the shell functions for bourne shell and csh mkdir -p %{buildroot}/etc/profile.d install -m 0644 lib/mc.sh lib/mc.csh %{buildroot}/etc/profile.d #support script for calling available GUI webbrosers install -m 755 %{SOURCE5} %{buildroot}/usr/share/mc/bin %{find_lang} %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-, root, root) %doc ABOUT-NLS COPYING NEWS README %config /etc/profile.d/* %{_bindir}/mc* %{_prefix}/%{_lib}/mc %{_mandir}/man1/* %lang(es) %doc %{_mandir}/es %lang(hu) %doc %{_mandir}/hu %lang(it) %doc %{_mandir}/it %lang(pl) %doc %{_mandir}/pl %lang(ru) %doc %{_mandir}/ru %{_datadir}/mc %changelog -n mc * Fri Apr 23 2004 - nadvornik@suse.cz - fixed various buffer overflows and temp file handling [#38577] - fixed crash on broken UTF-8 characters in directory name [#39309] * Wed Mar 31 2004 - nadvornik@suse.cz - fixed sort options in mc-posix_options.diff * Wed Mar 31 2004 - nadvornik@suse.cz - do not strip UTF-8 characters from prompt and xterm title [#37542] * Thu Mar 25 2004 - nadvornik@suse.cz - fixed crash with NULL return from getpwuid [#36867] * Thu Mar 18 2004 - nadvornik@suse.cz - fixed another crash in slang * Mon Mar 15 2004 - nadvornik@suse.cz - fixed external applications * Thu Mar 11 2004 - nadvornik@suse.cz - better fix for the crash is slang - various fixes in utf8 patch * Tue Mar 09 2004 - nadvornik@suse.cz - fixed crash if TERM is unset - fixed viewing files in tar archives * Mon Mar 08 2004 - nadvornik@suse.cz - fixed forward/backward word functions in utf8 patch * Fri Mar 05 2004 - nadvornik@suse.cz - fixes in utf8 patches - do not let XOpenDisplay exit [#31960] * Mon Mar 01 2004 - nadvornik@suse.cz - added utf8 support in commandline, viewer and editor * Wed Feb 18 2004 - sbrabec@suse.cz - Added all available UTF-8 patches (mostly from from Jakub Jelinek ). * Sat Jan 10 2004 - adrian@suse.de - build as user * Thu Jan 08 2004 - pthomas@suse.de - Fix the handling of symlinks inside tarballs which would lead to a segfault with suitably constructed tarballs. * Fri Aug 29 2003 - pthomas@suse.de - Change extfs commands to use posix conforming options for head and sort. (#29657) * Tue Jul 15 2003 - sbrabec@suse.cz - Autoreconf with GNOME prefix. * Fri Jun 13 2003 - kukuk@suse.de - Fix filelist * Fri Apr 04 2003 - pthomas@suse.de - Enable character set conversion by compiling with --enable-charset. * Wed Feb 26 2003 - pthomas@suse.de - Fix the bug that leads to a segfault when viewing files and simplify the range check. - Get rid of the caddr_t anachronism. - Use g_try_malloc when using glib2, as g_malloc terminates the application when it fails ..... * Mon Feb 17 2003 - pthomas@suse.de - Update to 4.6.0 which officially removes gmc. - Get rid of now obsolete patches and adapt those that still apply. * Tue Feb 04 2003 - pthomas@suse.de - Only include %%{_libdir}/mc in files on biarch platforms. * Mon Jan 27 2003 - pthomas@suse.de - Drop gmc sub package. - Also check for ksh in mc.sh to decide whether or not to use 'export -f' * Mon Nov 11 2002 - ro@suse.de - changed neededforbuild to - changed neededforbuild to - changed neededforbuild to <> * Wed Oct 23 2002 - sbrabec@suse.cz - Fixed dangling symlink for mcview. * Fri Sep 27 2002 - ro@suse.de - Added alsa alsa-devel to neededforbuild (esound) * Mon Sep 16 2002 - pthomas@suse.de - Make mc use the system supplied slang library. * Wed Sep 11 2002 - pthomas@suse.de - Make full eight bits input the default (bug #15721). - Use the gnome macros supplied with gnome-common. - Use file type rather then regex to identify Word documents. - Use wvText instead of word2x for displaying MS Word documents. * Tue Aug 20 2002 - mmj@suse.de - Correct PreReq * Fri Aug 02 2002 - pthomas@suse.de - Fix building with older versions of ext2fs lib (AKA older distributions): - Make configure check for presence of ext2_ino_t in ext2fs.h. - Use test result in vfs/undelfs.c * Sat Jul 27 2002 - adrian@suse.de - fix %%pre script and neededforbuild * Fri May 31 2002 - ro@suse.de - changed neededforbuild to * Mon Apr 08 2002 - ro@suse.de - run gettextize * Fri Mar 15 2002 - pthomas@suse.de - Use w3m instead of lynx for html. Fixes #15012 * Thu Feb 07 2002 - mmj@suse.de - ... and then fix a stupid typo in the below fix... * Thu Feb 07 2002 - mmj@suse.de - Fixed the below thing in a more POSIX compliant way * Tue Feb 05 2002 - mmj@suse.de - Added missing function to ms.sh * Fri Feb 01 2002 - ro@suse.de - changed neededforbuild to * Thu Jan 24 2002 - okir@suse.de - fixed various tempfile races (mostly with unpacking/packing of compressed files for editing) * Mon Jan 14 2002 - egmont@suselinux.hu - Removed rpmview patch, no longer needed since 4.5.55. * Thu Dec 06 2001 - pthomas@suse.de - Include *all* gnome autoconf macros needed to rebuild aclocal.m4. * Fri Nov 30 2001 - ro@suse.de - changed neededforbuild to * Mon Nov 26 2001 - pthomas@suse.de - Update to 4.5.55. - Enable large file support. - Gracefully handle the case when file size exceeds what g_malloc can handle. - Don't hard-code the GUI web browser but call a script that uses whatever's installed. - Use ext2_ino_t instead of ino_t. - Add German hints. * Thu Oct 18 2001 - egmont@suselinux.hu - F3 on an RPM shows sane output (kind of rpm -qilp) instead of raw binary. * Thu Sep 20 2001 - pthomas@suse.de - Fix handling of RPMs. This isn't a final fix, but at least avoids the error. * Tue Sep 04 2001 - kukuk@suse.de - Removed smbclnt requires * Mon Aug 27 2001 - kukuk@suse.de - Removed samba-client, not need any longer * Mon Aug 27 2001 - ro@suse.de - replaced by in neededforbuild * Wed Aug 15 2001 - pthomas@suse.de - Redo declaration fixes. - Drop samba support, it's dependencies cause too much trouble. - Reduce compiler warnings. - Require autoconf 2.53 as this allows use of AC_CHECK_DECLS - Use AC_CHECK_DECLS to properly control local prototypes. * Mon Aug 13 2001 - ro@suse.de - changed neededforbuild to * Sat Aug 11 2001 - schwab@suse.de - Fix missing declarations *again*. * Tue Jul 31 2001 - cstein@suse.de - wrote an assembly language syntax highlighting for mcedit (Intel syntax) * Sat Jul 07 2001 - egger@suse.de - Updated to version 4.5.54. - Had to remove a few patches to make it build. - Buildproofed on all architectures. * Wed Jun 27 2001 - cstein@suse.de - Modified mc to include some helpful functions for palm pilot users; modifications added as patch 30 (see spec file) * Mon Jun 11 2001 - pthomas@suse.de - Create missing stamp-h.in that prevented mc to build. - Don't use --with-gpm-mouse on s390 * Sat May 12 2001 - schwab@suse.de - Fix missing declarations. * Wed May 09 2001 - pthomas@suse.de - remove samba codepages and require smbclnt. Fixes Bug #7924 - compress sources with bzip2 * Tue May 08 2001 - pthomas@suse.de - Include codepages from samba package and modify source to search them in /usr/lib/mc/codepages. Fixes bug #7647 * Fri Apr 20 2001 - pthomas@suse.de - Fix call of suse_update_config macro. - Remove offending multibyte sequence from Korean message catalog and reenable building it. * Wed Apr 18 2001 - pthomas@suse.de - Disable building of the korean message catalog because gettext 0.10.36 rejects it. * Sat Apr 07 2001 - schwab@suse.de - Correct handling of filenames in zoo and zip files. Fixes Bug #6846. - Add %%suse_update_config. - Fix configure check for off64_t and ino64_t. * Sat Apr 07 2001 - pthomas@suse.de - Remove regex match for *,[Dd]oc files and just rely on the file type check. Add a second file type check as file(1) now reports 'Microsoft office document'. Fixes Bug #6861 * Tue Mar 27 2001 - ro@suse.de - changed neededforbuild to * Tue Mar 20 2001 - pthomas@suse.de - Compile with samba and ext2 undelete support - Add esound-devel and e2fsprogs-devel to neededforbuild - Remove unnecessary checks from samba configure - Add security fix for subshell - Add security fix for cons.saver * Tue Mar 13 2001 - ro@suse.de - added xf86 to neededforbuild * Tue Mar 13 2001 - ro@suse.de - changed neededforbuild to * Sun Feb 25 2001 - egger@suse.de - Remove unnecessary dependencies from #neededforbuild, especially imlib-config. * Fri Feb 23 2001 - ro@suse.de - added readline/readline-devel to neededforbuild (split from bash) * Tue Feb 20 2001 - uli@suse.de - fixed for new glibc * Tue Jan 30 2001 - ro@suse.de - changed neededforbuild to * Sun Jan 21 2001 - violiet@suse.de - added eightbit-clean.patch to view/edit for Japanese and Korean characters. - added improvement Japanese latest .po from CVS. - added improvement Korean .po and mc hint message file. * Fri Dec 15 2000 - hhetter@suse.de - fix for dead link on startup-links, fixing bug id#4700 - changed startup-link URLs * Tue Nov 21 2000 - werner@suse.de - Add kvt and gnome as valid TERMinals - Add some newer xterm escape sequences (oldFunctionsKeys) - console, linux xterm-color, kvt, and gnome are colored TERMinals * Mon Nov 06 2000 - pthomas@suse.de - Remove version number from spec file name - Add additional key definitions for mc.lib - Clean up the spec file a bit. * Sun Nov 05 2000 - kukuk@suse.de - adjust neededforbuild * Wed Nov 01 2000 - egger@suse.de - Updated specfile to new long packagenames. - Reworked specfile. - Probably needs some more work; I'm taking care of that. * Mon Sep 25 2000 - egger@suse.de - Updated to 4.5.51. - Buildproofed on i386. * Wed May 31 2000 - baulig@suse.de - update: 4.5.50. * Sun May 28 2000 - baulig@suse.de - update: 4.5.49. - use %%{ver} instead of the direct version number in tarball name. * Mon Dec 13 1999 - ke@suse.de - update: 4.5.42. * Thu Nov 18 1999 - ke@suse.de - update: 4.5.41. - create HTML documentation (add SGML packages to neededfoarbuild...). - add SuSE startup-link ;) * Fri Oct 29 1999 - ke@suse.de - fix /etc/opt/gnome vs. /opt/gnome/etc. * Thu Oct 14 1999 - ke@suse.de - update: 4.5.40. - add some RH patches. * Mon Sep 27 1999 - bs@suse.de - fixed requirements for sub packages * Fri Sep 24 1999 - ke@suse.de - update: version 4.5.39. * Fri Sep 17 1999 - ke@suse.de - update: version 4.5.38. * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Jul 15 1999 - ke@suse.de - update: version 4.5.37. * Tue Jul 13 1999 - bs@suse.de - use gtk and glib instead of gtkn and glibn * Mon Jul 12 1999 - ke@suse.de - update: version 4.5.36. * Tue Jun 08 1999 - kukuk@suse.de - Add pam to needforbuild * Sun May 30 1999 - ke@suse.de - update: version 4.5.33. * Tue Apr 13 1999 - ke@suse.de - update: version 4.5.30 (security fixes - /tmp exploids...). * Tue Apr 06 1999 - ro@suse.de - only link gmc.gnorba for /etc/opt/gnome/CORBA/servers * Mon Apr 05 1999 - bs@suse.de - fixed date strings in .changes. * Mon Apr 05 1999 - bs@suse.de - use absolute links to prevent problems with a symlinked /opt. * Sun Mar 14 1999 - ke@suse.de - update: version 4.5.25. * Wed Mar 10 1999 - ke@suse.de - update: version 4.5.24. * Thu Mar 04 1999 - ke@suse.de - update: version 4.5.23 (bugfix release). - filelist. * Sat Feb 27 1999 - ke@suse.de - update: version 4.5.22 (bugfix release). * Fri Feb 26 1999 - ke@suse.de - update: version 4.5.21 (bugfix release). - --disable-nls (it makes mc segfault). - now, the text oriented part of the package (mc.rpm) lives under /usr again. * Wed Feb 17 1999 - ke@suse.de - update: version 4.5.17 (bugfix release). - use sysconfdir=/etc/opt/gnome. - #neededforbuild: add esound and audiofil. * Sun Feb 14 1999 - ke@suse.de - update: version 4.5.14 (bugfix release). * Thu Feb 11 1999 - ke@suse.de - update: version 4.5.13. * Sat Feb 06 1999 - ro@suse.de - fixed neededforbuild * Thu Feb 04 1999 - ke@suse.de - update: version 4.5.10. - now, there's the subpackage `gmc' containing the GNOME compliant version of mc. - make the package BuildRoot capable. * Wed Dec 09 1998 - ke@suse.de - update to mc 4.1.36 (bugfix release). * Thu Sep 24 1998 - ke@suse.de - enable NLS. - install documentation and COPYING via the %%doc macro. * Tue Sep 22 1998 - ro@suse.de - update to mc 4.1.35 using diff from jurix mirror merged changes to mc.lib from mc-4.1.11-suse and current (+ibmpc3) * Wed Nov 19 1997 - florian@suse.de - update to mc 4.1.11 * Sun Nov 16 1997 - florian@suse.de - oops, forgot mc.lib-changes from Werner * Fri Oct 10 1997 - florian@suse.de - update to version 4.1.4 * Sun Jun 22 1997 - florian@suse.de - update to version 4.0 * Wed May 28 1997 - werner@suse.de - new mc.lib added * Wed Jan 22 1997 - florian@suse.de - enable gpm support * Thu Jan 02 1997 - florian@suse.de - update to version 3.2.11 * Thu Jan 02 1997 - florian@suse.de - Es wird nicht mehr mit libgpm-Unterstuetzung kompiliert, da slang und libgpm sich nicht vertragen. (libgpm laed libncurses, das geht mit libslang.a nicht...) Sun Aug 25 19:28:50 MET DST 1996 new version 3.2.7 for screen output, mc now uses the slang library and not the ncurses functions directly