3 # _with_ncurses - use ncurses
4 # _with_included_slang - use included S-Lang library
5 # _with_charset - enable experimental code for charset conversion
6 # _with_samba - enable SMB/CIFS virtual file system
8 # Note that this is NOT a relocatable package
10 %define rhver @RH_VERSION@
12 %define rel
%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
14 Summary: Midnight Commander visual shell
20 Group: Applications
/File
21 Source0: ftp
://ftp.ibiblio.org
/pub
/Linux
/utils
/file
/managers
/mc
/mc
-%{ver}.tar.gz
22 URL: http
://www.ibiblio.org
/mc
/
23 BuildRoot: /var
/tmp
/mc
-%{PACKAGE_VERSION}-root
24 Prereq
: /sbin
/chkconfig
25 BuildRequires
: glib
-devel
26 %{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
27 %{?_with_ncurses:BuildRequires: ncurses-devel}
30 GNU Midnight Commander is a visual file manager. It's a feature rich
31 full
-screen text mode application that allows you to copy
, move and
32 delete files and whole directory trees
, search
for files and run
33 commands
in the subshell. Internal viewer and editor are included.
34 Mouse is supported under X Window System and on Linux console. VFS
35 (Virtual Filesystem
) allows you to view archives and files on remote
39 %setup -q
-n mc
-%{ver}
42 CFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="
-s" .
/configure \
45 %{?_with_ncurses: --with-screen=ncurses} \
46 %{?_with_included_slang: --with-screen=mcslang} \
47 %{?_with_charset: --enable-charset} \
48 %{?_with_samba: --with-samba}
54 rm -rf $RPM_BUILD_ROOT
55 make install DESTDIR
=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT
/etc
/profile.d
57 install lib
/mc.sh $RPM_BUILD_ROOT
/etc
/profile.d
58 install lib
/mc.csh $RPM_BUILD_ROOT
/etc
/profile.d
59 rm -rf $RPM_BUILD_ROOT
%{_prefix}/share
/mc
/bin
/
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(-, root
, root
)
68 %doc FAQ COPYING NEWS README
73 %{_prefix}/lib
/mc
/cons.saver
77 %config /etc
/profile.d
/*
78 %{_prefix}/share
/mc
/cedit.menu
79 %{_prefix}/share
/mc
/edit.indent.rc
80 %{_prefix}/share
/mc
/edit.spell.rc
81 %{_prefix}/share
/mc
/extfs
/*
82 %{_prefix}/share
/mc
/mc.ext
83 %{_prefix}/share
/mc
/mc.lib
84 %{_prefix}/share
/mc
/mc.menu
85 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
87 %{_prefix}/share
/mc
/mc.hint
*
88 %{_prefix}/share
/mc
/mc.hlp
*
89 %{_prefix}/share
/mc
/syntax
/*
90 %{_prefix}/share
/mc
/term
/*
91 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
93 %dir %{_prefix}/lib
/mc
94 %dir %{_prefix}/share
/mc
95 %dir %{_prefix}/share
/mc
/extfs
96 %dir %{_prefix}/share
/mc
/syntax
97 %dir %{_prefix}/share
/mc
/term
100 * Mon Oct
07 2002 Pavel Roskin
<proski@gnu.org
>
101 - Remove installed mc.sh and mc.csh from
%{_prefix}/share
/mc
/bin to
102 suppress a warning about installed but unpackaged files.
104 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
105 - Don't require slang
-devel
if _with_ncurses.
108 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
109 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
111 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
112 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
113 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
115 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
116 - Use FHS
-compliant paths.
117 - Drop
%config from files under
/usr
/share
- users are not supposed to
118 edit them. Local copies under ~
/.mc should be used
for that.
120 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
121 - Change description
, update URLs
, allow dash
in the version.
123 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
124 - Support conditional builds.
126 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
127 - Add
/usr
/lib
/mc
/mc.charsets.
128 - Add
%{_mandir}/*/man1
/*.
130 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
133 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
134 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
137 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
138 - Remove gmc. Reunite mc and mc
-common.
140 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
143 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
144 - Remove
/usr
/lib
/mc
/layout.
146 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
147 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
149 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
150 - Change groups. Don't include locale directories. More config files.
152 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
153 - Don't require stylesheets
, since HTML files are now
in the tarball.
155 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
156 - Remove package mcserv. Drop dependency on PAM.
158 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
159 - Remove mc
-gnome.ext.
161 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
164 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
165 - Allow mcserv
.8 to be gzipped.
167 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
168 - New package mc
-common.
169 - Use DESTDIR instead of misusing prefix.
170 - Don't
install old icons
- they don't exist
172 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
173 - Include translations with mc
, not gmc
174 - chkconfig
--del
in %preun, not
%postun
175 - --without
-debug not needed
176 - /etc
/X11
/wmconfig not needed
177 - /etc
/pam.d
/mcserv shouldn't be executable
178 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
180 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
181 - Include .idl files
in the package.
183 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
184 - Added a build prereq so that rpms get built with documentation
;)
186 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
187 - added
help and locale files to
%files
189 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
190 - added syntax files to
%files
192 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
193 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
194 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
196 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
197 - Updated the specfile
, removed some kludges.
199 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
200 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
202 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
203 - made cons.saver not setuid
205 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
208 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
209 - add
/usr
/lib
/mc
/layout to gmc
211 * Tue Dec
23 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
212 - added
--without
-debug to configure
,
213 - modification
in %build and
%install and cosmetic modification
in packages
215 - added %
%{PACKAGE_VERSION} macro to
Buildroot,
216 - removed "
rm -rf $RPM_BUILD_ROOT" from
%prep.
217 - removed
Packager field.
219 * Thu Dec
18 1997 Michele Marziani
<marziani@fe.infn.it
>
220 - Merged spec file with that from RedHat
-5.0 distribution
221 (now a Hurricane
-based distribution is needed
)
222 - Added patch
for RPM script
(didn't always work with rpm
-2.4.10)
223 - Corrected patch
for mcserv init file
(chkconfig init levels
)
224 - Added more documentation files on termcap
, terminfo
, xterm
226 * Thu Oct
30 1997 Michael K. Johnson
<johnsonm@redhat.com
>
228 - Added dependency on portmap
230 * Wed Oct
29 1997 Michael K. Johnson
<johnsonm@redhat.com
>
235 * Sun Oct
26 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
238 - added
%attr macros
in %files,
239 - a few simplification
in %install,
240 - removed glibc patch
,
241 - fixed installing
/etc
/X11
/wmconfig
/tkmc.
243 * Thu Oct
23 1997 Michael K. Johnson
<johnsonm@redhat.com
>
248 * Wed Oct
15 1997 Erik Troan
<ewt@redhat.com
>
250 - chkconfig is
for mcserv package
, not mc one
252 * Tue Oct
14 1997 Erik Troan
<ewt@redhat.com
>
254 - patched init script
for chkconfig
255 - don't turn on the service by default
257 * Fri Oct
10 1997 Michael K. Johnson
<johnsonm@redhat.com
>
259 - Converted to new PAM conventions.
261 - No longer needs glibc patch.
263 * Thu May
22 1997 Michele Marziani
<marziani@fe.infn.it
>
265 - added support
for mc
alias in /etc
/profile.d
/mc.csh
(for csh and tcsh
)
266 - lowered number of SysV init scripts
in /etc
/rc.d
/rc
[0,1,6].d
267 (mcserv needs to be killed before inet
)
268 - removed all references to $RPM_SOURCE_DIR
269 - restored $RPM_OPT_FLAGS when compiling
270 - minor cleanup of spec file
: redundant directives and comments removed
272 * Sun May
18 1997 Michele Marziani
<marziani@fe.infn.it
>
274 - removed all references to non
-existent mc.rpmfs
275 - added mcedit
.1 to the
%files section
276 - reverted to un
-gzipped man pages
(RedHat style
)
277 - removed double
install line
for mcserv.pamd
279 * Tue May
13 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
281 - added new rpmfs script
,
282 - removed mcfn_install from mc
(adding mc
() to bash enviroment is
in
283 /etc
/profile.d
/mc.sh
),
284 - /etc
/profile.d
/mc.sh changed to
%config,
285 - removed
/usr
/lib
/mc
/bin
/create_vcs
,
286 - removed
/usr
/lib
/mc
/term.
288 * Wed May
9 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
290 - changed
source url
,
291 - fixed link mcedit to mc
,
293 * Tue May
7 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
295 - new version
3.5.27,
296 - %dir /usr
/lib
/mc
/icons and icons removed from tkmc
,
297 - added commented xmc part.
299 * Tue Apr
22 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
303 - in mc added missing
/usr
/lib
/mc
/mc.ext
, /usr
/lib
/mc
/mc.hint
,
304 /usr
/lib
/mc
/mc.hlp
, /usr
/lib
/mc
/mc.lib
, /usr
/lib
/mc
/mc.menu.
306 * Fri Apr
18 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
308 - added making packages
: tkmc
, mcserv
(xmc not work yet
),
310 - added
/etc
/pamd.d
/mcserv PAM config file.
311 - added instaling icons
,
312 - added
/etc
/profile.d
/mc.sh
,
313 - in %doc added NEWS README
,
314 - removed
/usr
/lib
/mc
/FAQ
,
315 - added mcserv.init script
for mcserv
(start
/stop on level
86).