2002-12-25 18:19:39 +03:00
|
|
|
# Conditional build (replace "#" with "%" to enable):
|
2002-08-20 23:42:05 +04:00
|
|
|
#
|
2002-12-25 18:19:39 +03:00
|
|
|
#define _with_ncurses 1 # use ncurses
|
|
|
|
#define _with_included_slang 1 # use included S-Lang library
|
|
|
|
#define _with_charset 1 # enable code for charset conversion
|
|
|
|
#define _with_samba 1 # enable SMB/CIFS virtual file system
|
|
|
|
#define _with_ext2undel 1 # compile with ext2 undelete code
|
|
|
|
#define _without_x 1 # avoid dependency on X11 libraries
|
2002-08-20 23:42:05 +04:00
|
|
|
|
1998-04-01 21:40:17 +04:00
|
|
|
# Note that this is NOT a relocatable package
|
1999-02-28 05:52:05 +03:00
|
|
|
%define ver @VERSION@
|
2002-10-09 00:44:58 +04:00
|
|
|
%define rpmver @RPM_VERSION@
|
1999-07-30 00:09:31 +04:00
|
|
|
%define RELEASE 1
|
|
|
|
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
|
1998-04-01 21:40:17 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
Summary: Midnight Commander visual shell
|
|
|
|
Name: mc
|
2002-10-09 00:44:58 +04:00
|
|
|
Version: %rpmver
|
1998-04-01 21:40:17 +04:00
|
|
|
Release: %rel
|
2001-08-05 09:31:47 +04:00
|
|
|
Epoch: 1
|
2005-08-03 03:26:07 +04:00
|
|
|
License: GPL/LGPL
|
2001-05-26 02:33:20 +04:00
|
|
|
Group: Applications/File
|
2007-09-24 16:40:47 +04:00
|
|
|
Source0: ftp://ftp.gnu.org/gnu/mc/mc-%{ver}.tar.gz
|
2009-01-11 23:37:27 +03:00
|
|
|
URL: http://www.midnight-commander.org/
|
1999-02-22 00:27:08 +03:00
|
|
|
BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
|
2005-03-31 21:48:12 +04:00
|
|
|
|
|
|
|
# Names of those packages are distribution specific
|
|
|
|
#BuildRequires: glib-devel
|
|
|
|
#%{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
|
|
|
|
#%{?_with_ncurses:BuildRequires: ncurses-devel}
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%description
|
2002-08-21 19:25:54 +04:00
|
|
|
GNU Midnight Commander is a visual file manager. It's a feature rich
|
|
|
|
full-screen text mode application that allows you to copy, move and
|
|
|
|
delete files and whole directory trees, search for files and run
|
|
|
|
commands in the subshell. Internal viewer and editor are included.
|
|
|
|
Mouse is supported under X Window System and on Linux console. VFS
|
|
|
|
(Virtual Filesystem) allows you to view archives and files on remote
|
|
|
|
servers.
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%prep
|
2002-08-21 19:25:54 +04:00
|
|
|
%setup -q -n mc-%{ver}
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%build
|
1999-01-15 22:18:09 +03:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
|
2001-06-11 16:19:10 +04:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir} \
|
2002-09-30 07:07:27 +04:00
|
|
|
%{?_with_ncurses: --with-screen=ncurses} \
|
|
|
|
%{?_with_included_slang: --with-screen=mcslang} \
|
2002-09-30 19:52:33 +04:00
|
|
|
%{?_with_charset: --enable-charset} \
|
2002-10-09 01:23:31 +04:00
|
|
|
%{?_with_samba: --with-samba} \
|
2002-12-25 03:52:45 +03:00
|
|
|
%{?_with_ext2undel: --with-ext2undel} \
|
|
|
|
%{?_without_x: --without-x}
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2002-08-20 23:42:05 +04:00
|
|
|
make
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%install
|
1999-02-28 05:52:05 +03:00
|
|
|
echo $RPM_BUILD_ROOT
|
1998-02-27 07:54:42 +03:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2000-09-30 22:52:12 +04:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2006-01-31 00:53:19 +03:00
|
|
|
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
|
2006-12-22 05:05:55 +03:00
|
|
|
cp -f $RPM_BUILD_ROOT/%{_datadir}/mc/bin/mc.*sh \
|
2006-01-31 00:53:19 +03:00
|
|
|
$RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
|
1999-02-28 05:52:05 +03:00
|
|
|
|
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
%clean
|
1999-07-13 13:56:27 +04:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%files
|
1998-04-01 21:40:17 +04:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%doc FAQ COPYING NEWS README
|
2006-01-31 00:53:19 +03:00
|
|
|
%{_bindir}/mc
|
|
|
|
%{_bindir}/mcedit
|
|
|
|
%{_bindir}/mcview
|
|
|
|
%{_bindir}/mcmfmt
|
2007-06-23 17:55:56 +04:00
|
|
|
%attr(4755, vcsa, tty) %{_libexecdir}/mc/cons.saver
|
2001-06-11 16:19:10 +04:00
|
|
|
%{_mandir}/man1/*
|
2002-08-20 20:43:06 +04:00
|
|
|
%{_mandir}/*/man1/*
|
2002-09-22 05:18:08 +04:00
|
|
|
|
2006-01-31 00:53:19 +03:00
|
|
|
%config %{_sysconfdir}/profile.d/*
|
|
|
|
%{_datadir}/mc/cedit.menu
|
|
|
|
%{_datadir}/mc/edit.indent.rc
|
|
|
|
%{_datadir}/mc/edit.spell.rc
|
|
|
|
%{_datadir}/mc/bin/*
|
|
|
|
%{_datadir}/mc/extfs/*
|
|
|
|
%{_datadir}/mc/mc.ext
|
|
|
|
%{_datadir}/mc/mc.lib
|
|
|
|
%{_datadir}/mc/mc.menu*
|
|
|
|
%{?_with_charset:%config %{_datadir}/mc/mc.charsets}
|
|
|
|
|
|
|
|
%{_datadir}/mc/mc.hint*
|
|
|
|
%{_datadir}/mc/mc.hlp*
|
|
|
|
%{_datadir}/mc/syntax/*
|
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
|
|
|
|
|
|
|
%dir %{_libexecdir}/mc
|
|
|
|
%dir %{_datadir}/mc
|
|
|
|
%dir %{_datadir}/mc/extfs
|
|
|
|
%dir %{_datadir}/mc/syntax
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
%changelog
|
2007-06-23 17:55:56 +04:00
|
|
|
* Fri Jun 22 2007 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Make cons.saver suid vcsa, it's needed for Fedora 7
|
|
|
|
|
2006-12-22 05:05:55 +03:00
|
|
|
* Thu Dec 21 2006 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Don't rely on brace expansion, it may be disabled
|
|
|
|
|
2006-01-31 00:53:19 +03:00
|
|
|
* Mon Jan 30 2006 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Avoid using %{_prefix} where more specialized macros are available.
|
|
|
|
|
2005-08-03 03:26:07 +04:00
|
|
|
* Tue Aug 02 2005 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Replace obsolete "Copyright" with "License".
|
|
|
|
|
2005-03-31 21:48:12 +04:00
|
|
|
* Thu Mar 31 2005 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Comment out build dependencies - they are too distribution specific.
|
|
|
|
|
2003-09-24 05:43:56 +04:00
|
|
|
* Tue Sep 23 2003 Pavel Roskin <proski@gnu.org>
|
2003-09-23 10:04:23 +04:00
|
|
|
- Remove term directory, it's obsolete and irrelevant on modern systems.
|
2003-09-24 05:43:56 +04:00
|
|
|
- Include translated menu files.
|
2003-09-23 10:04:23 +04:00
|
|
|
|
2003-02-16 09:26:35 +03:00
|
|
|
* Sun Feb 16 2003 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove obsolete dependency on /sbin/chkconfig.
|
|
|
|
|
2002-12-25 03:52:45 +03:00
|
|
|
* Tue Dec 24 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Work around bug in rpm 4.1 that expands defines in comments.
|
|
|
|
- Handle --without-x.
|
|
|
|
|
2002-11-04 10:52:26 +03:00
|
|
|
* Mon Nov 04 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
|
|
|
|
- Handle --with ext2undel.
|
|
|
|
|
2002-11-01 22:02:42 +03:00
|
|
|
* Fri Nov 01 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Add wrappers to support setting last directory on exit. Keep all
|
|
|
|
scripts in their original directory, just copy them.
|
|
|
|
|
2002-10-22 09:08:08 +04:00
|
|
|
* Tue Oct 22 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Don't use the included S-Lang, there is a workaround for Red Hat 8.0
|
|
|
|
S-Lang, and binary compatibility with Red Hat 7.x doesn't work anyway.
|
|
|
|
|
2002-10-09 01:29:08 +04:00
|
|
|
* Tue Oct 08 2002 Pavel Roskin <proski@gnu.org>
|
2002-10-09 01:23:31 +04:00
|
|
|
- Use the included S-Lang again, since we include a better version now.
|
|
|
|
This should avoid incompatibility with Red Hat 7.x.
|
|
|
|
- Add _with_glib2 option.
|
|
|
|
|
2002-10-07 10:04:12 +04:00
|
|
|
* Mon Oct 07 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove installed mc.sh and mc.csh from %{_prefix}/share/mc/bin to
|
|
|
|
suppress a warning about installed but unpackaged files.
|
|
|
|
|
2002-09-30 19:52:33 +04:00
|
|
|
* Mon Sep 30 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
|
|
|
|
- Don't require slang-devel if _with_ncurses.
|
2002-11-04 10:52:26 +03:00
|
|
|
- Handle --with samba.
|
2002-09-30 19:52:33 +04:00
|
|
|
|
2002-09-30 07:07:27 +04:00
|
|
|
* Sun Sep 29 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Use --with-screen instead of --with-ncurses and --with-included-slang.
|
|
|
|
|
2002-09-23 20:12:42 +04:00
|
|
|
* Mon Sep 23 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
|
|
|
|
- Restore %config for %{_prefix}/share/mc/mc.charsets.
|
|
|
|
- Restore %{_prefix}/share/mc/edit.spell.rc.
|
|
|
|
|
2002-09-22 05:18:08 +04:00
|
|
|
* Sat Sep 21 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Use FHS-compliant paths.
|
2002-09-22 06:05:03 +04:00
|
|
|
- Drop %config from files under /usr/share - users are not supposed to
|
|
|
|
edit them. Local copies under ~/.mc should be used for that.
|
2002-09-22 05:18:08 +04:00
|
|
|
|
2002-08-21 19:25:54 +04:00
|
|
|
* Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Change description, update URLs, allow dash in the version.
|
|
|
|
|
2002-08-20 23:42:05 +04:00
|
|
|
* Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Support conditional builds.
|
|
|
|
|
2002-08-20 20:05:20 +04:00
|
|
|
* Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
|
|
|
|
- Add /usr/lib/mc/mc.charsets.
|
2002-08-20 20:43:06 +04:00
|
|
|
- Add %{_mandir}/*/man1/*.
|
2002-08-20 20:05:20 +04:00
|
|
|
|
2002-08-17 05:17:14 +04:00
|
|
|
* Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove mc.global.
|
|
|
|
|
2002-01-21 11:13:41 +03:00
|
|
|
* Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove --with-gnome and --with-included-slang from configure options.
|
|
|
|
- Add BuildPrereq.
|
|
|
|
|
2001-08-25 00:53:14 +04:00
|
|
|
* Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove gmc. Reunite mc and mc-common.
|
|
|
|
|
2001-08-05 09:31:47 +04:00
|
|
|
* Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Set epoch.
|
|
|
|
|
2001-07-15 11:27:17 +04:00
|
|
|
* Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove /usr/lib/mc/layout.
|
|
|
|
|
2001-06-11 16:19:10 +04:00
|
|
|
* Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
|
|
|
|
|
2001-05-26 02:33:20 +04:00
|
|
|
* Fri May 25 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Change groups. Don't include locale directories. More config files.
|
|
|
|
|
2001-05-20 11:44:07 +04:00
|
|
|
* Sun May 20 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Don't require stylesheets, since HTML files are now in the tarball.
|
|
|
|
|
2001-04-19 20:42:32 +04:00
|
|
|
* Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove package mcserv. Drop dependency on PAM.
|
|
|
|
|
2001-02-27 00:26:03 +03:00
|
|
|
* Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Remove mc-gnome.ext.
|
|
|
|
|
2001-01-11 20:08:02 +03:00
|
|
|
* Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Include mcview.
|
|
|
|
|
2000-10-24 00:24:58 +04:00
|
|
|
* Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Allow mcserv.8 to be gzipped.
|
|
|
|
|
2000-09-30 22:52:12 +04:00
|
|
|
* Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
|
|
|
|
- New package mc-common.
|
|
|
|
- Use DESTDIR instead of misusing prefix.
|
|
|
|
- Don't install old icons - they don't exist
|
|
|
|
|
2000-09-23 21:24:08 +04:00
|
|
|
* Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
|
|
|
|
- Include translations with mc, not gmc
|
|
|
|
- chkconfig --del in %preun, not %postun
|
|
|
|
- --without-debug not needed
|
|
|
|
- /etc/X11/wmconfig not needed
|
|
|
|
- /etc/pam.d/mcserv shouldn't be executable
|
|
|
|
- New files in %{prefix}/lib/mc/ - translated hints, editor files
|
|
|
|
|
1999-09-10 01:26:11 +04:00
|
|
|
* Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- Include .idl files in the package.
|
|
|
|
|
1999-09-05 00:50:00 +04:00
|
|
|
* Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
|
|
|
|
- Added a build prereq so that rpms get built with documentation ;)
|
|
|
|
|
1999-07-12 20:16:01 +04:00
|
|
|
* Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
|
|
|
|
- added help and locale files to %files
|
|
|
|
|
1999-06-22 23:49:24 +04:00
|
|
|
* Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
|
|
|
|
- added syntax files to %files
|
|
|
|
|
1999-05-26 23:54:06 +04:00
|
|
|
* Wed May 26 1999 Cody Russell <bratsche@dfw.net>
|
|
|
|
- chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
|
|
|
|
$RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
|
|
|
|
|
1999-04-19 01:53:29 +04:00
|
|
|
* Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
|
|
|
|
- Updated the specfile, removed some kludges.
|
|
|
|
|
1998-08-20 23:07:50 +04:00
|
|
|
* Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
|
|
|
|
- rebuilt against gnome-libs 0.27 and gtk+-1.1
|
|
|
|
|
|
|
|
* Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
|
|
|
|
- made cons.saver not setuid
|
|
|
|
|
1998-04-19 22:49:32 +04:00
|
|
|
* Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
- removed tkmc
|
|
|
|
|
1998-04-08 22:31:43 +04:00
|
|
|
* Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
- add /usr/lib/mc/layout to gmc
|
|
|
|
|