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 Prereq
: /sbin
/chkconfig
27 BuildRequires
: glib
-devel
28 %{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
29 %{?_with_ncurses:BuildRequires: ncurses-devel}
32 GNU Midnight Commander is a visual file manager. It's a feature rich
33 full
-screen text mode application that allows you to copy
, move and
34 delete files and whole directory trees
, search
for files and run
35 commands
in the subshell. Internal viewer and editor are included.
36 Mouse is supported under X Window System and on Linux console. VFS
37 (Virtual Filesystem
) allows you to view archives and files on remote
41 %setup -q
-n mc
-%{ver}
44 CFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="
-s" .
/configure \
47 %{?_with_ncurses: --with-screen=ncurses} \
48 %{?_with_included_slang: --with-screen=mcslang} \
49 %{?_with_charset: --enable-charset} \
50 %{?_with_samba: --with-samba} \
51 %{?_with_ext2undel: --with-ext2undel} \
52 %{?_without_x: --without-x}
58 rm -rf $RPM_BUILD_ROOT
59 make install DESTDIR
=$RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT
/etc
/profile.d
61 cp
-f $RPM_BUILD_ROOT
%{_prefix}/share/mc/bin/mc.{csh,sh} \
62 $RPM_BUILD_ROOT
/etc
/profile.d
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(-, root
, root
)
71 %doc FAQ COPYING NEWS README
76 %{_prefix}/lib
/mc
/cons.saver
80 %config /etc
/profile.d
/*
81 %{_prefix}/share
/mc
/cedit.menu
82 %{_prefix}/share
/mc
/edit.indent.rc
83 %{_prefix}/share
/mc
/edit.spell.rc
84 %{_prefix}/share
/mc
/bin
/*
85 %{_prefix}/share
/mc
/extfs
/*
86 %{_prefix}/share
/mc
/mc.ext
87 %{_prefix}/share
/mc
/mc.lib
88 %{_prefix}/share
/mc
/mc.menu
89 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
91 %{_prefix}/share
/mc
/mc.hint
*
92 %{_prefix}/share
/mc
/mc.hlp
*
93 %{_prefix}/share
/mc
/syntax
/*
94 %{_prefix}/share
/mc
/term
/*
95 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
97 %dir %{_prefix}/lib
/mc
98 %dir %{_prefix}/share
/mc
99 %dir %{_prefix}/share
/mc
/extfs
100 %dir %{_prefix}/share
/mc
/syntax
101 %dir %{_prefix}/share
/mc
/term
104 * Tue Dec
24 2002 Pavel Roskin
<proski@gnu.org
>
105 - Work around bug
in rpm
4.1 that expands defines
in comments.
106 - Handle
--without
-x.
108 * Mon Nov
04 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
109 - Handle
--with ext2undel.
111 * Fri Nov
01 2002 Pavel Roskin
<proski@gnu.org
>
112 - Add wrappers to support setting last directory on
exit. Keep all
113 scripts
in their original directory
, just copy them.
115 * Tue Oct
22 2002 Pavel Roskin
<proski@gnu.org
>
116 - Don't use the included S
-Lang
, there is a workaround
for Red Hat
8.0
117 S
-Lang
, and binary compatibility with Red Hat
7.x doesn't work anyway.
119 * Tue Oct
08 2002 Pavel Roskin
<proski@gnu.org
>
120 - Use the included S
-Lang again
, since we include a better version now.
121 This should avoid incompatibility with Red Hat
7.x.
122 - Add _with_glib2 option.
124 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
125 - Remove installed mc.sh and mc.csh from
%{_prefix}/share
/mc
/bin to
126 suppress a warning about installed but unpackaged files.
128 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
129 - Don't require slang
-devel
if _with_ncurses.
130 - Handle
--with samba.
132 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
133 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
135 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
136 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
137 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
139 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
140 - Use FHS
-compliant paths.
141 - Drop
%config from files under
/usr
/share
- users are not supposed to
142 edit them. Local copies under ~
/.mc should be used
for that.
144 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
145 - Change description
, update URLs
, allow dash
in the version.
147 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
148 - Support conditional builds.
150 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
151 - Add
/usr
/lib
/mc
/mc.charsets.
152 - Add
%{_mandir}/*/man1
/*.
154 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
157 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
158 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
161 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
162 - Remove gmc. Reunite mc and mc
-common.
164 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
167 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
168 - Remove
/usr
/lib
/mc
/layout.
170 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
171 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
173 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
174 - Change groups. Don't include locale directories. More config files.
176 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
177 - Don't require stylesheets
, since HTML files are now
in the tarball.
179 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
180 - Remove package mcserv. Drop dependency on PAM.
182 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
183 - Remove mc
-gnome.ext.
185 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
188 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
189 - Allow mcserv
.8 to be gzipped.
191 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
192 - New package mc
-common.
193 - Use DESTDIR instead of misusing prefix.
194 - Don't
install old icons
- they don't exist
196 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
197 - Include translations with mc
, not gmc
198 - chkconfig
--del
in %preun, not
%postun
199 - --without
-debug not needed
200 - /etc
/X11
/wmconfig not needed
201 - /etc
/pam.d
/mcserv shouldn't be executable
202 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
204 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
205 - Include .idl files
in the package.
207 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
208 - Added a build prereq so that rpms get built with documentation
;)
210 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
211 - added
help and locale files to
%files
213 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
214 - added syntax files to
%files
216 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
217 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
218 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
220 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
221 - Updated the specfile
, removed some kludges.
223 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
224 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
226 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
227 - made cons.saver not setuid
229 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
232 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
233 - add
/usr
/lib
/mc
/layout to gmc
235 * Tue Dec
23 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
236 - added
--without
-debug to configure
,
237 - modification
in %build and
%install and cosmetic modification
in packages
239 - added %
%{PACKAGE_VERSION} macro to
Buildroot,
240 - removed "
rm -rf $RPM_BUILD_ROOT" from
%prep.
241 - removed
Packager field.
243 * Thu Dec
18 1997 Michele Marziani
<marziani@fe.infn.it
>
244 - Merged spec file with that from RedHat
-5.0 distribution
245 (now a Hurricane
-based distribution is needed
)
246 - Added patch
for RPM script
(didn't always work with rpm
-2.4.10)
247 - Corrected patch
for mcserv init file
(chkconfig init levels
)
248 - Added more documentation files on termcap
, terminfo
, xterm
250 * Thu Oct
30 1997 Michael K. Johnson
<johnsonm@redhat.com
>
252 - Added dependency on portmap
254 * Wed Oct
29 1997 Michael K. Johnson
<johnsonm@redhat.com
>
259 * Sun Oct
26 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
262 - added
%attr macros
in %files,
263 - a few simplification
in %install,
264 - removed glibc patch
,
265 - fixed installing
/etc
/X11
/wmconfig
/tkmc.
267 * Thu Oct
23 1997 Michael K. Johnson
<johnsonm@redhat.com
>
272 * Wed Oct
15 1997 Erik Troan
<ewt@redhat.com
>
274 - chkconfig is
for mcserv package
, not mc one
276 * Tue Oct
14 1997 Erik Troan
<ewt@redhat.com
>
278 - patched init script
for chkconfig
279 - don't turn on the service by default
281 * Fri Oct
10 1997 Michael K. Johnson
<johnsonm@redhat.com
>
283 - Converted to new PAM conventions.
285 - No longer needs glibc patch.
287 * Thu May
22 1997 Michele Marziani
<marziani@fe.infn.it
>
289 - added support
for mc
alias in /etc
/profile.d
/mc.csh
(for csh and tcsh
)
290 - lowered number of SysV init scripts
in /etc
/rc.d
/rc
[0,1,6].d
291 (mcserv needs to be killed before inet
)
292 - removed all references to $RPM_SOURCE_DIR
293 - restored $RPM_OPT_FLAGS when compiling
294 - minor cleanup of spec file
: redundant directives and comments removed
296 * Sun May
18 1997 Michele Marziani
<marziani@fe.infn.it
>
298 - removed all references to non
-existent mc.rpmfs
299 - added mcedit
.1 to the
%files section
300 - reverted to un
-gzipped man pages
(RedHat style
)
301 - removed double
install line
for mcserv.pamd
303 * Tue May
13 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
305 - added new rpmfs script
,
306 - removed mcfn_install from mc
(adding mc
() to bash enviroment is
in
307 /etc
/profile.d
/mc.sh
),
308 - /etc
/profile.d
/mc.sh changed to
%config,
309 - removed
/usr
/lib
/mc
/bin
/create_vcs
,
310 - removed
/usr
/lib
/mc
/term.
312 * Wed May
9 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
314 - changed
source url
,
315 - fixed link mcedit to mc
,
317 * Tue May
7 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
319 - new version
3.5.27,
320 - %dir /usr
/lib
/mc
/icons and icons removed from tkmc
,
321 - added commented xmc part.
323 * Tue Apr
22 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
327 - in mc added missing
/usr
/lib
/mc
/mc.ext
, /usr
/lib
/mc
/mc.hint
,
328 /usr
/lib
/mc
/mc.hlp
, /usr
/lib
/mc
/mc.lib
, /usr
/lib
/mc
/mc.menu.
330 * Fri Apr
18 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
332 - added making packages
: tkmc
, mcserv
(xmc not work yet
),
334 - added
/etc
/pamd.d
/mcserv PAM config file.
335 - added instaling icons
,
336 - added
/etc
/profile.d
/mc.sh
,
337 - in %doc added NEWS README
,
338 - removed
/usr
/lib
/mc
/FAQ
,
339 - added mcserv.init script
for mcserv
(start
/stop on level
86).