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.gnu.org
/gnu
/mc
/mc
-%{ver}.tar.gz
24 URL: http
://www.midnight
-commander.org
/
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.
*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 %attr(4755, vcsa
, tty
) %{_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 * Fri Jun
22 2007 Pavel Roskin
<proski@gnu.org
>
104 - Make cons.saver suid vcsa
, it's needed
for Fedora
7
106 * Thu Dec
21 2006 Pavel Roskin
<proski@gnu.org
>
107 - Don't rely on brace expansion
, it may be disabled
109 * Mon Jan
30 2006 Pavel Roskin
<proski@gnu.org
>
110 - Avoid using
%{_prefix} where more specialized macros are available.
112 * Tue Aug
02 2005 Pavel Roskin
<proski@gnu.org
>
113 - Replace obsolete "
Copyright" with "
License".
115 * Thu Mar
31 2005 Pavel Roskin
<proski@gnu.org
>
116 - Comment out build dependencies
- they are too distribution specific.
118 * Tue Sep
23 2003 Pavel Roskin
<proski@gnu.org
>
119 - Remove term directory
, it's obsolete and irrelevant on modern systems.
120 - Include translated menu files.
122 * Sun Feb
16 2003 Pavel Roskin
<proski@gnu.org
>
123 - Remove obsolete dependency on
/sbin
/chkconfig.
125 * Tue Dec
24 2002 Pavel Roskin
<proski@gnu.org
>
126 - Work around bug
in rpm
4.1 that expands defines
in comments.
127 - Handle
--without
-x.
129 * Mon Nov
04 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
130 - Handle
--with ext2undel.
132 * Fri Nov
01 2002 Pavel Roskin
<proski@gnu.org
>
133 - Add wrappers to support setting last directory on
exit. Keep all
134 scripts
in their original directory
, just copy them.
136 * Tue Oct
22 2002 Pavel Roskin
<proski@gnu.org
>
137 - Don't use the included S
-Lang
, there is a workaround
for Red Hat
8.0
138 S
-Lang
, and binary compatibility with Red Hat
7.x doesn't work anyway.
140 * Tue Oct
08 2002 Pavel Roskin
<proski@gnu.org
>
141 - Use the included S
-Lang again
, since we include a better version now.
142 This should avoid incompatibility with Red Hat
7.x.
143 - Add _with_glib2 option.
145 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
146 - Remove installed mc.sh and mc.csh from
%{_prefix}/share
/mc
/bin to
147 suppress a warning about installed but unpackaged files.
149 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
150 - Don't require slang
-devel
if _with_ncurses.
151 - Handle
--with samba.
153 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
154 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
156 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
157 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
158 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
160 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
161 - Use FHS
-compliant paths.
162 - Drop
%config from files under
/usr
/share
- users are not supposed to
163 edit them. Local copies under ~
/.mc should be used
for that.
165 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
166 - Change description
, update URLs
, allow dash
in the version.
168 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
169 - Support conditional builds.
171 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
172 - Add
/usr
/lib
/mc
/mc.charsets.
173 - Add
%{_mandir}/*/man1
/*.
175 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
178 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
179 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
182 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
183 - Remove gmc. Reunite mc and mc
-common.
185 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
188 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
189 - Remove
/usr
/lib
/mc
/layout.
191 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
192 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
194 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
195 - Change groups. Don't include locale directories. More config files.
197 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
198 - Don't require stylesheets
, since HTML files are now
in the tarball.
200 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
201 - Remove package mcserv. Drop dependency on PAM.
203 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
204 - Remove mc
-gnome.ext.
206 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
209 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
210 - Allow mcserv
.8 to be gzipped.
212 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
213 - New package mc
-common.
214 - Use DESTDIR instead of misusing prefix.
215 - Don't
install old icons
- they don't exist
217 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
218 - Include translations with mc
, not gmc
219 - chkconfig
--del
in %preun, not
%postun
220 - --without
-debug not needed
221 - /etc
/X11
/wmconfig not needed
222 - /etc
/pam.d
/mcserv shouldn't be executable
223 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
225 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
226 - Include .idl files
in the package.
228 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
229 - Added a build prereq so that rpms get built with documentation
;)
231 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
232 - added
help and locale files to
%files
234 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
235 - added syntax files to
%files
237 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
238 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
239 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
241 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
242 - Updated the specfile
, removed some kludges.
244 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
245 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
247 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
248 - made cons.saver not setuid
250 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
253 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
254 - add
/usr
/lib
/mc
/layout to gmc