1 # Conditional build (replace "#" with "%" to enable):
3 #define _with_ncurses 1 # use ncurses
4 #define _with_included_slang 1 # use included S-Lang library
5 #define _with_charset 1 # enable code for charset conversion
6 #define _with_samba 1 # enable SMB/CIFS virtual file system
7 #define _with_ext2undel 1 # compile with ext2 undelete code
8 #define _without_x 1 # avoid dependency on X11 libraries
10 # Note that this is NOT a relocatable package
12 %define rpmver @RPM_VERSION@
14 %define rel
%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
16 Summary: Midnight Commander visual shell
22 Group: Applications
/File
23 Source0: ftp
://ftp.ibiblio.org
/pub
/Linux
/utils
/file
/managers
/mc
/mc
-%{ver}.tar.gz
24 URL: http
://www.ibiblio.org
/mc
/
25 BuildRoot: /var
/tmp
/mc
-%{PACKAGE_VERSION}-root
26 BuildRequires
: glib
-devel
27 %{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
28 %{?_with_ncurses:BuildRequires: ncurses-devel}
31 GNU Midnight Commander is a visual file manager. It's a feature rich
32 full
-screen text mode application that allows you to copy
, move and
33 delete files and whole directory trees
, search
for files and run
34 commands
in the subshell. Internal viewer and editor are included.
35 Mouse is supported under X Window System and on Linux console. VFS
36 (Virtual Filesystem
) allows you to view archives and files on remote
40 %setup -q
-n mc
-%{ver}
43 CFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="
-s" .
/configure \
46 %{?_with_ncurses: --with-screen=ncurses} \
47 %{?_with_included_slang: --with-screen=mcslang} \
48 %{?_with_charset: --enable-charset} \
49 %{?_with_samba: --with-samba} \
50 %{?_with_ext2undel: --with-ext2undel} \
51 %{?_without_x: --without-x}
57 rm -rf $RPM_BUILD_ROOT
58 make install DESTDIR
=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT
/etc
/profile.d
60 cp
-f $RPM_BUILD_ROOT
%{_prefix}/share/mc/bin/mc.{csh,sh} \
61 $RPM_BUILD_ROOT
/etc
/profile.d
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(-, root
, root
)
70 %doc FAQ COPYING NEWS README
75 %{_prefix}/lib
/mc
/cons.saver
79 %config /etc
/profile.d
/*
80 %{_prefix}/share
/mc
/cedit.menu
81 %{_prefix}/share
/mc
/edit.indent.rc
82 %{_prefix}/share
/mc
/edit.spell.rc
83 %{_prefix}/share
/mc
/bin
/*
84 %{_prefix}/share
/mc
/extfs
/*
85 %{_prefix}/share
/mc
/mc.ext
86 %{_prefix}/share
/mc
/mc.lib
87 %{_prefix}/share
/mc
/mc.menu
*
88 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
90 %{_prefix}/share
/mc
/mc.hint
*
91 %{_prefix}/share
/mc
/mc.hlp
*
92 %{_prefix}/share
/mc
/syntax
/*
93 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
95 %dir %{_prefix}/lib
/mc
96 %dir %{_prefix}/share
/mc
97 %dir %{_prefix}/share
/mc
/extfs
98 %dir %{_prefix}/share
/mc
/syntax
101 * Tue Sep
23 2003 Pavel Roskin
<proski@gnu.org
>
102 - Remove term directory
, it's obsolete and irrelevant on modern systems.
103 - Include translated menu files.
105 * Sun Feb
16 2003 Pavel Roskin
<proski@gnu.org
>
106 - Remove obsolete dependency on
/sbin
/chkconfig.
108 * Tue Dec
24 2002 Pavel Roskin
<proski@gnu.org
>
109 - Work around bug
in rpm
4.1 that expands defines
in comments.
110 - Handle
--without
-x.
112 * Mon Nov
04 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
113 - Handle
--with ext2undel.
115 * Fri Nov
01 2002 Pavel Roskin
<proski@gnu.org
>
116 - Add wrappers to support setting last directory on
exit. Keep all
117 scripts
in their original directory
, just copy them.
119 * Tue Oct
22 2002 Pavel Roskin
<proski@gnu.org
>
120 - Don't use the included S
-Lang
, there is a workaround
for Red Hat
8.0
121 S
-Lang
, and binary compatibility with Red Hat
7.x doesn't work anyway.
123 * Tue Oct
08 2002 Pavel Roskin
<proski@gnu.org
>
124 - Use the included S
-Lang again
, since we include a better version now.
125 This should avoid incompatibility with Red Hat
7.x.
126 - Add _with_glib2 option.
128 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
129 - Remove installed mc.sh and mc.csh from
%{_prefix}/share
/mc
/bin to
130 suppress a warning about installed but unpackaged files.
132 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
133 - Don't require slang
-devel
if _with_ncurses.
134 - Handle
--with samba.
136 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
137 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
139 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
140 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
141 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
143 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
144 - Use FHS
-compliant paths.
145 - Drop
%config from files under
/usr
/share
- users are not supposed to
146 edit them. Local copies under ~
/.mc should be used
for that.
148 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
149 - Change description
, update URLs
, allow dash
in the version.
151 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
152 - Support conditional builds.
154 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
155 - Add
/usr
/lib
/mc
/mc.charsets.
156 - Add
%{_mandir}/*/man1
/*.
158 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
161 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
162 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
165 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
166 - Remove gmc. Reunite mc and mc
-common.
168 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
171 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
172 - Remove
/usr
/lib
/mc
/layout.
174 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
175 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
177 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
178 - Change groups. Don't include locale directories. More config files.
180 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
181 - Don't require stylesheets
, since HTML files are now
in the tarball.
183 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
184 - Remove package mcserv. Drop dependency on PAM.
186 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
187 - Remove mc
-gnome.ext.
189 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
192 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
193 - Allow mcserv
.8 to be gzipped.
195 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
196 - New package mc
-common.
197 - Use DESTDIR instead of misusing prefix.
198 - Don't
install old icons
- they don't exist
200 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
201 - Include translations with mc
, not gmc
202 - chkconfig
--del
in %preun, not
%postun
203 - --without
-debug not needed
204 - /etc
/X11
/wmconfig not needed
205 - /etc
/pam.d
/mcserv shouldn't be executable
206 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
208 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
209 - Include .idl files
in the package.
211 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
212 - Added a build prereq so that rpms get built with documentation
;)
214 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
215 - added
help and locale files to
%files
217 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
218 - added syntax files to
%files
220 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
221 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
222 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
224 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
225 - Updated the specfile
, removed some kludges.
227 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
228 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
230 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
231 - made cons.saver not setuid
233 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
236 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
237 - add
/usr
/lib
/mc
/layout to gmc