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
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(-, root
, root
)
67 %doc FAQ COPYING NEWS README
72 %{_prefix}/lib
/mc
/cons.saver
76 %config /etc
/profile.d
/*
77 %{_prefix}/share
/mc
/cedit.menu
78 %{_prefix}/share
/mc
/edit.indent.rc
79 %{_prefix}/share
/mc
/edit.spell.rc
80 %{_prefix}/share
/mc
/extfs
/*
81 %{_prefix}/share
/mc
/mc.ext
82 %{_prefix}/share
/mc
/mc.lib
83 %{_prefix}/share
/mc
/mc.menu
84 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
86 %{_prefix}/share
/mc
/mc.hint
*
87 %{_prefix}/share
/mc
/mc.hlp
*
88 %{_prefix}/share
/mc
/syntax
/*
89 %{_prefix}/share
/mc
/term
/*
90 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
92 %dir %{_prefix}/lib
/mc
93 %dir %{_prefix}/share
/mc
94 %dir %{_prefix}/share
/mc
/extfs
95 %dir %{_prefix}/share
/mc
/syntax
96 %dir %{_prefix}/share
/mc
/term
99 * Mon Sep
30 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
100 - Don't require slang
-devel
if _with_ncurses.
103 * Sun Sep
29 2002 Pavel Roskin
<proski@gnu.org
>
104 - Use
--with
-screen instead of
--with
-ncurses and
--with
-included
-slang.
106 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
107 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
108 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
110 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
111 - Use FHS
-compliant paths.
112 - Drop
%config from files under
/usr
/share
- users are not supposed to
113 edit them. Local copies under ~
/.mc should be used
for that.
115 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
116 - Change description
, update URLs
, allow dash
in the version.
118 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
119 - Support conditional builds.
121 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
122 - Add
/usr
/lib
/mc
/mc.charsets.
123 - Add
%{_mandir}/*/man1
/*.
125 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
128 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
129 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
132 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
133 - Remove gmc. Reunite mc and mc
-common.
135 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
138 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
139 - Remove
/usr
/lib
/mc
/layout.
141 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
142 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
144 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
145 - Change groups. Don't include locale directories. More config files.
147 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
148 - Don't require stylesheets
, since HTML files are now
in the tarball.
150 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
151 - Remove package mcserv. Drop dependency on PAM.
153 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
154 - Remove mc
-gnome.ext.
156 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
159 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
160 - Allow mcserv
.8 to be gzipped.
162 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
163 - New package mc
-common.
164 - Use DESTDIR instead of misusing prefix.
165 - Don't
install old icons
- they don't exist
167 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
168 - Include translations with mc
, not gmc
169 - chkconfig
--del
in %preun, not
%postun
170 - --without
-debug not needed
171 - /etc
/X11
/wmconfig not needed
172 - /etc
/pam.d
/mcserv shouldn't be executable
173 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
175 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
176 - Include .idl files
in the package.
178 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
179 - Added a build prereq so that rpms get built with documentation
;)
181 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
182 - added
help and locale files to
%files
184 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
185 - added syntax files to
%files
187 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
188 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
189 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
191 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
192 - Updated the specfile
, removed some kludges.
194 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
195 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
197 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
198 - made cons.saver not setuid
200 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
203 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
204 - add
/usr
/lib
/mc
/layout to gmc
206 * Tue Dec
23 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
207 - added
--without
-debug to configure
,
208 - modification
in %build and
%install and cosmetic modification
in packages
210 - added %
%{PACKAGE_VERSION} macro to
Buildroot,
211 - removed "
rm -rf $RPM_BUILD_ROOT" from
%prep.
212 - removed
Packager field.
214 * Thu Dec
18 1997 Michele Marziani
<marziani@fe.infn.it
>
215 - Merged spec file with that from RedHat
-5.0 distribution
216 (now a Hurricane
-based distribution is needed
)
217 - Added patch
for RPM script
(didn't always work with rpm
-2.4.10)
218 - Corrected patch
for mcserv init file
(chkconfig init levels
)
219 - Added more documentation files on termcap
, terminfo
, xterm
221 * Thu Oct
30 1997 Michael K. Johnson
<johnsonm@redhat.com
>
223 - Added dependency on portmap
225 * Wed Oct
29 1997 Michael K. Johnson
<johnsonm@redhat.com
>
230 * Sun Oct
26 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
233 - added
%attr macros
in %files,
234 - a few simplification
in %install,
235 - removed glibc patch
,
236 - fixed installing
/etc
/X11
/wmconfig
/tkmc.
238 * Thu Oct
23 1997 Michael K. Johnson
<johnsonm@redhat.com
>
243 * Wed Oct
15 1997 Erik Troan
<ewt@redhat.com
>
245 - chkconfig is
for mcserv package
, not mc one
247 * Tue Oct
14 1997 Erik Troan
<ewt@redhat.com
>
249 - patched init script
for chkconfig
250 - don't turn on the service by default
252 * Fri Oct
10 1997 Michael K. Johnson
<johnsonm@redhat.com
>
254 - Converted to new PAM conventions.
256 - No longer needs glibc patch.
258 * Thu May
22 1997 Michele Marziani
<marziani@fe.infn.it
>
260 - added support
for mc
alias in /etc
/profile.d
/mc.csh
(for csh and tcsh
)
261 - lowered number of SysV init scripts
in /etc
/rc.d
/rc
[0,1,6].d
262 (mcserv needs to be killed before inet
)
263 - removed all references to $RPM_SOURCE_DIR
264 - restored $RPM_OPT_FLAGS when compiling
265 - minor cleanup of spec file
: redundant directives and comments removed
267 * Sun May
18 1997 Michele Marziani
<marziani@fe.infn.it
>
269 - removed all references to non
-existent mc.rpmfs
270 - added mcedit
.1 to the
%files section
271 - reverted to un
-gzipped man pages
(RedHat style
)
272 - removed double
install line
for mcserv.pamd
274 * Tue May
13 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
276 - added new rpmfs script
,
277 - removed mcfn_install from mc
(adding mc
() to bash enviroment is
in
278 /etc
/profile.d
/mc.sh
),
279 - /etc
/profile.d
/mc.sh changed to
%config,
280 - removed
/usr
/lib
/mc
/bin
/create_vcs
,
281 - removed
/usr
/lib
/mc
/term.
283 * Wed May
9 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
285 - changed
source url
,
286 - fixed link mcedit to mc
,
288 * Tue May
7 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
290 - new version
3.5.27,
291 - %dir /usr
/lib
/mc
/icons and icons removed from tkmc
,
292 - added commented xmc part.
294 * Tue Apr
22 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
298 - in mc added missing
/usr
/lib
/mc
/mc.ext
, /usr
/lib
/mc
/mc.hint
,
299 /usr
/lib
/mc
/mc.hlp
, /usr
/lib
/mc
/mc.lib
, /usr
/lib
/mc
/mc.menu.
301 * Fri Apr
18 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
303 - added making packages
: tkmc
, mcserv
(xmc not work yet
),
305 - added
/etc
/pamd.d
/mcserv PAM config file.
306 - added instaling icons
,
307 - added
/etc
/profile.d
/mc.sh
,
308 - in %doc added NEWS README
,
309 - removed
/usr
/lib
/mc
/FAQ
,
310 - added mcserv.init script
for mcserv
(start
/stop on level
86).