1 # Note that this is NOT a relocatable package
3 %define legacy_rhel
0%{?el4}%{?el3}
6 %define _with_screen
--with
-screen
=ncurses
7 %define _with_glib_static
--with
-glib
-static
8 %define glib_version
2.12
9 %define glib_stepping
.3
11 %define _with_screen
--with
-screen
=slang
14 %define mc_version @DISTR_VERSION@
15 %define mc_release @DISTR_RELEASE@
16 %define mc_tarball @VERSION@
18 Summary: User
-friendly text console file manager and visual shell
20 Version: %{mc_version}
21 Release: %{mc_release}%{?dist}
24 Group: System Environment
/Shells
25 Source0: %{name}-%{mc_tarball}.tar.gz
28 Source1: http
://ftp.gnome.org
/pub
/gnome
/sources
/glib
/%{glib_version}/glib-%{glib_version}%{?glib_stepping}.tar.bz2
29 Patch0: glib2
-CVE
-2008-4316.patch
32 URL: http
://www.midnight
-commander.org
/
33 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
34 BuildRequires
: e2fsprogs
-devel gpm
-devel
36 %if %{legacy_rhel}%{?el5}
37 BuildRequires
: pcre
-devel
42 BuildRequires
: ncurses
-devel
45 BuildRequires
: pkgconfig gettext
48 BuildRequires
: glib2
-devel slang
-devel
52 GNU Midnight Commander is a visual file manager. It's a feature rich
53 full
-screen text mode application that allows you to copy
, move and
54 delete files and whole directory trees
, search
for files and run
55 commands
in the subshell. Internal viewer and editor are included. Mouse
56 is supported on Linux console. VFS
(Virtual Filesystem
) allows you to
57 view archives and files on remote servers
(via SAMBA
, FTP or SSH
).
61 %setup -q
-n
%{name}-%{mc_tarball}
65 %setup -q
-T
-D
-a
1 -n
%{name}-%{mc_tarball}
67 cd glib
-%{glib_version}%{?glib_stepping}
68 %patch0 -p1
-b .CVE
-2008-4316
76 pushd glib
-%{glib_version}%{?glib_stepping}
77 RESULT_DIR
=`
pwd`
/result
83 --prefix
="$RESULT_DIR" \
84 --exec-prefix
="$RESULT_DIR" \
85 --libdir
="$RESULT_DIR
/usr
/%{_lib}"
87 %{__make} %{?_smp_mflags} CFLAGS="%{optflags} -fno
-strict
-aliasing"
install
90 PKG_CONFIG_PATH
="$RESULT_DIR
/usr
/%{_lib}/pkgconfig
:$PKG_CONFIG_PATH"
; export PKG_CONFIG_PATH
;
95 %{?_with_glib_static} \
100 --disable
-doxygen
-doc
102 %{__make} %{?_smp_mflags} CFLAGS="%{optflags}"
105 rm -rf $RPM_BUILD_ROOT
107 make install DESTDIR
="$RPM_BUILD_ROOT"
109 install -d
-m
755 $RPM_BUILD_ROOT
%{_sysconfdir}/profile.d
110 install contrib
/{mc.sh
,mc.csh
} $RPM_BUILD_ROOT
%{_sysconfdir}/profile.d
115 rm -rf $RPM_BUILD_ROOT
117 %files -f
%{name}.lang
118 %defattr(-, root
, root
)
120 %doc doc
/FAQ doc
/COPYING doc
/NEWS doc
/README
126 %dir %{_libexecdir}/mc
127 %dir %{_libexecdir}/mc
/extfs.d
128 %attr(4511, vcsa
, tty
) %{_libexecdir}/mc
/cons.saver
129 %{_libexecdir}/mc
/mc
*sh
130 %{_libexecdir}/mc
/extfs.d
/*
133 %lang(es
) %{_mandir}/es
/man1
/mc
.1*
134 %lang(hu
) %{_mandir}/hu
/man1
/mc
.1*
135 %lang(it
) %{_mandir}/it
/man1
/mc
.1*
136 %lang(pl
) %{_mandir}/pl
/man1
/mc
.1*
137 %lang(ru
) %{_mandir}/ru
/man1
/mc
.1*
138 %lang(sr
) %{_mandir}/sr
/man1
/mc
.1*
140 %{_sysconfdir}/profile.d
/*
142 %config %{_sysconfdir}/mc
/Syntax
143 %config %{_sysconfdir}/mc
/mc.charsets
144 %config %{_sysconfdir}/mc
/mc.lib
145 %config(noreplace
) %{_sysconfdir}/mc
/filehighlight.ini
146 %config(noreplace
) %{_sysconfdir}/mc
/*edit
*
147 %config(noreplace
) %{_sysconfdir}/mc
/mc.ext
148 %config(noreplace
) %{_sysconfdir}/mc
/mc.menu
149 %config(noreplace
) %{_sysconfdir}/mc
/mc.menu.
*
150 %config(noreplace
) %{_sysconfdir}/mc
/sfs.ini
151 %config(noreplace
) %{_sysconfdir}/mc
/mc.keymap
152 %config(noreplace
) %{_sysconfdir}/mc
/mc.keymap.
*
159 * Tue Feb
09 2010 Andrew Borodin
<aborodin@vmail.ru
>
160 - Fixed file list because of EXTFS VFS reorganizing.
162 * Wed Dec
30 2009 Yury V. Zaytsev
<yury@shurup.com
>
163 - Bumped the epoch again and changed the versioning scheme.
164 - Thanks to Slava Zanko
for all his hard work on m4 vodoo
!
166 * Fri Dec
25 2009 Yury V. Zaytsev
<yury@shurup.com
>
167 - Had to bump the epoch because of the braindead versioning scheme used.
169 * Fri Nov
27 2009 Yury V. Zaytsev
<yury@shurup.com
>
170 - Fixed debug info generation
for legacy distros.
171 - Rewritten and simplified static build procedure.
173 * Mon Oct
26 2009 Andrew Borodin
<aborodin@vmail.ru
>
174 - Added new %
%{_sysconfdir}/mc
/mc.keymap.
* files.
176 * Fri Sep
04 2009 Slava Zanko
<slavazanko@gmail.com
>
177 - Add new file %
%{_sysconfdir}/mc
/filehighlight.ini.
179 * Sat Aug
01 2009 Yury V. Zaytsev
<yury@shurup.com
>
180 - Fixed EL4
(and supposedly EL3
) builds.
181 - Fixed some of the rpmlint warnings.
183 * Sat Jul
04 2009 Yury V. Zaytsev
<yury@shurup.com
>
184 - Fix the issue when wrappers were left unpackaged.
186 * Thu May
21 2009 Slava Zanko
<slavazanko@gmail.com
>
187 - Fix
install patches
: use %
%{_sysconfdir}/mc directory.
189 * Fri May
8 2009 Slava Zanko
<slavazanko@gmail.com
>
190 - Reviewed spec
-file to build on the current distributions.
191 - Changed build rules.
192 - Fixed
install paths.
194 * Fri Jun
22 2007 Pavel Roskin
<proski@gnu.org
>
195 - Made cons.saver suid vcsa
, it's needed
for Fedora
7.
197 * Thu Dec
21 2006 Pavel Roskin
<proski@gnu.org
>
198 - Don't rely on brace expansion
, it may be disabled.
200 * Mon Jan
30 2006 Pavel Roskin
<proski@gnu.org
>
201 - Avoid using %
%{_prefix} where more specialized macros are available.
203 * Tue Aug
02 2005 Pavel Roskin
<proski@gnu.org
>
204 - Replace obsolete "
Copyright" with "
License".
206 * Thu Mar
31 2005 Pavel Roskin
<proski@gnu.org
>
207 - Comment out build dependencies
- they are too distribution specific.
209 * Tue Sep
23 2003 Pavel Roskin
<proski@gnu.org
>
210 - Remove term directory
, it's obsolete and irrelevant on modern systems.
211 - Include translated menu files.
213 * Sun Feb
16 2003 Pavel Roskin
<proski@gnu.org
>
214 - Remove obsolete dependency on
/sbin
/chkconfig.
216 * Tue Dec
24 2002 Pavel Roskin
<proski@gnu.org
>
217 - Work around bug
in rpm
4.1 that expands defines
in comments.
218 - Handle
--without
-x.
220 * Mon Nov
04 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
221 - Handle
--with ext2undel.
223 * Fri Nov
01 2002 Pavel Roskin
<proski@gnu.org
>
224 - Add wrappers to support setting last directory on
exit. Keep all
225 scripts
in their original directory
, just copy them.
227 * Tue Oct
22 2002 Pavel Roskin
<proski@gnu.org
>
228 - Don't use the included S
-Lang
, there is a workaround
for Red Hat
8.0
229 S
-Lang
, and binary compatibility with Red Hat
7.x doesn't work anyway.
231 * Tue Oct
08 2002 Pavel Roskin
<proski@gnu.org
>
232 - Use the included S
-Lang again
, since we include a better version now.
233 This should avoid incompatibility with Red Hat
7.x.
234 - Add _with_glib2 option.
236 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
237 - Remove installed mc.sh and mc.csh from %
%{_prefix}/share
/mc
/bin to
238 suppress a warning about installed but unpackaged files.
240 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
241 - Don't require slang
-devel
if _with_ncurses.
242 - Handle
--with samba.
244 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
245 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
247 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
248 - Restore %
%config for %
%{_prefix}/share
/mc
/mc.charsets.
249 - Restore %
%{_prefix}/share
/mc
/edit.spell.rc.
251 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
252 - Use FHS
-compliant paths.
253 - Drop %
%config from files under
/usr
/share
- users are not supposed to
254 edit them. Local copies under ~
/.mc should be used
for that.
256 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
257 - Change description
, update URLs
, allow dash
in the version.
259 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
260 - Support conditional builds.
262 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
263 - Add
/usr
/lib
/mc
/mc.charsets.
264 - Add %
%{_mandir}/*/man1
/*.
266 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
269 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
270 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
273 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
274 - Remove gmc. Reunite mc and mc
-common.
276 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
279 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
280 - Remove
/usr
/lib
/mc
/layout.
282 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
283 - Use %
%{_prefix} and %%{_mandir}. Specify
--mandir to configure.
285 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
286 - Change groups. Don't include locale directories. More config files.
288 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
289 - Don't require stylesheets
, since HTML files are now
in the tarball.
291 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
292 - Remove package mcserv. Drop dependency on PAM.
294 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
295 - Remove mc
-gnome.ext.
297 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
300 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
301 - Allow mcserv
.8 to be gzipped.
303 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
304 - New package mc
-common.
305 - Use DESTDIR instead of misusing prefix.
306 - Don't
install old icons
- they don't exist
308 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
309 - Include translations with mc
, not gmc.
310 - chkconfig
--del
in %
%preun, not %
%postun.
311 - --without
-debug not needed.
312 - /etc
/X11
/wmconfig not needed.
313 - /etc
/pam.d
/mcserv shouldn't be executable.
314 - New files
in %
%{prefix}/lib
/mc
/ - translated hints
, editor files.
316 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
317 - Include .idl files
in the package.
319 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
320 - Added a build prereq so that rpms get built with documentation
;)
322 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
323 - Added
help and locale files to %
%files.
325 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
326 - Added syntax files to %
%files.
328 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
329 - Chmod cons.saver at $RPM_BUILD_ROOT%
%{prefix}/lib rather than at
330 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
332 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
333 - Updated the specfile
, removed some kludges.
335 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
336 - Rebuilt against gnome
-libs
0.27 and gtk
+-1.1.
338 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
339 - Made cons.saver not setuid.
341 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
344 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
345 - Add
/usr
/lib
/mc
/layout to gmc.