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
27 # Names of those packages are distribution specific
28 #BuildRequires: glib-devel
29 #%{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
30 #%{?_with_ncurses:BuildRequires: ncurses-devel}
33 GNU Midnight Commander is a visual file manager. It's a feature rich
34 full
-screen text mode application that allows you to copy
, move and
35 delete files and whole directory trees
, search
for files and run
36 commands
in the subshell. Internal viewer and editor are included.
37 Mouse is supported under X Window System and on Linux console. VFS
38 (Virtual Filesystem
) allows you to view archives and files on remote
42 %setup -q
-n mc
-%{ver}
45 CFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="
-s" .
/configure \
48 %{?_with_ncurses: --with-screen=ncurses} \
49 %{?_with_included_slang: --with-screen=mcslang} \
50 %{?_with_charset: --enable-charset} \
51 %{?_with_samba: --with-samba} \
52 %{?_with_ext2undel: --with-ext2undel} \
53 %{?_without_x: --without-x}
59 rm -rf $RPM_BUILD_ROOT
60 make install DESTDIR
=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT
/%{_sysconfdir}/profile.d
62 cp
-f $RPM_BUILD_ROOT
/%{_datadir}/mc/bin/mc.{csh,sh} \
63 $RPM_BUILD_ROOT
/%{_sysconfdir}/profile.d
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(-, root
, root
)
72 %doc FAQ COPYING NEWS README
77 %{_libexecdir}/mc
/cons.saver
81 %config %{_sysconfdir}/profile.d
/*
82 %{_datadir}/mc
/cedit.menu
83 %{_datadir}/mc
/edit.indent.rc
84 %{_datadir}/mc
/edit.spell.rc
86 %{_datadir}/mc
/extfs
/*
89 %{_datadir}/mc
/mc.menu
*
90 %{?_with_charset:%config %{_datadir}/mc/mc.charsets}
92 %{_datadir}/mc
/mc.hint
*
93 %{_datadir}/mc
/mc.hlp
*
94 %{_datadir}/mc
/syntax
/*
95 %{_datadir}/locale
/*/LC_MESSAGES
/*
97 %dir %{_libexecdir}/mc
99 %dir %{_datadir}/mc
/extfs
100 %dir %{_datadir}/mc
/syntax
103 * Mon Jan
30 2006 Pavel Roskin
<proski@gnu.org
>
104 - Avoid using
%{_prefix} where more specialized macros are available.
106 * Tue Aug
02 2005 Pavel Roskin
<proski@gnu.org
>
107 - Replace obsolete "
Copyright" with "
License".
109 * Thu Mar
31 2005 Pavel Roskin
<proski@gnu.org
>
110 - Comment out build dependencies
- they are too distribution specific.
112 * Tue Sep
23 2003 Pavel Roskin
<proski@gnu.org
>
113 - Remove term directory
, it's obsolete and irrelevant on modern systems.
114 - Include translated menu files.
116 * Sun Feb
16 2003 Pavel Roskin
<proski@gnu.org
>
117 - Remove obsolete dependency on
/sbin
/chkconfig.
119 * Tue Dec
24 2002 Pavel Roskin
<proski@gnu.org
>
120 - Work around bug
in rpm
4.1 that expands defines
in comments.
121 - Handle
--without
-x.
123 * Mon Nov
04 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
124 - Handle
--with ext2undel.
126 * Fri Nov
01 2002 Pavel Roskin
<proski@gnu.org
>
127 - Add wrappers to support setting last directory on
exit. Keep all
128 scripts
in their original directory
, just copy them.
130 * Tue Oct
22 2002 Pavel Roskin
<proski@gnu.org
>
131 - Don't use the included S
-Lang
, there is a workaround
for Red Hat
8.0
132 S
-Lang
, and binary compatibility with Red Hat
7.x doesn't work anyway.
134 * Tue Oct
08 2002 Pavel Roskin
<proski@gnu.org
>
135 - Use the included S
-Lang again
, since we include a better version now.
136 This should avoid incompatibility with Red Hat
7.x.
137 - Add _with_glib2 option.
139 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
140 - Remove installed mc.sh and mc.csh from
%{_prefix}/share
/mc
/bin to
141 suppress a warning about installed but unpackaged files.
143 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
144 - Don't require slang
-devel
if _with_ncurses.
145 - Handle
--with samba.
147 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
148 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
150 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
151 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
152 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
154 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
155 - Use FHS
-compliant paths.
156 - Drop
%config from files under
/usr
/share
- users are not supposed to
157 edit them. Local copies under ~
/.mc should be used
for that.
159 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
160 - Change description
, update URLs
, allow dash
in the version.
162 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
163 - Support conditional builds.
165 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
166 - Add
/usr
/lib
/mc
/mc.charsets.
167 - Add
%{_mandir}/*/man1
/*.
169 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
172 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
173 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
176 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
177 - Remove gmc. Reunite mc and mc
-common.
179 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
182 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
183 - Remove
/usr
/lib
/mc
/layout.
185 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
186 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
188 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
189 - Change groups. Don't include locale directories. More config files.
191 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
192 - Don't require stylesheets
, since HTML files are now
in the tarball.
194 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
195 - Remove package mcserv. Drop dependency on PAM.
197 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
198 - Remove mc
-gnome.ext.
200 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
203 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
204 - Allow mcserv
.8 to be gzipped.
206 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
207 - New package mc
-common.
208 - Use DESTDIR instead of misusing prefix.
209 - Don't
install old icons
- they don't exist
211 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
212 - Include translations with mc
, not gmc
213 - chkconfig
--del
in %preun, not
%postun
214 - --without
-debug not needed
215 - /etc
/X11
/wmconfig not needed
216 - /etc
/pam.d
/mcserv shouldn't be executable
217 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
219 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
220 - Include .idl files
in the package.
222 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
223 - Added a build prereq so that rpms get built with documentation
;)
225 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
226 - added
help and locale files to
%files
228 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
229 - added syntax files to
%files
231 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
232 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
233 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
235 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
236 - Updated the specfile
, removed some kludges.
238 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
239 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
241 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
242 - made cons.saver not setuid
244 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
247 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
248 - add
/usr
/lib
/mc
/layout to gmc