3 # _with_ncurses - use ncurses
4 # _with_included_slang - use included S-Lang library
5 # _with_charset - enable experimental code for charset conversion
7 # Note that this is NOT a relocatable package
9 %define rhver @RH_VERSION@
11 %define rel
%{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
13 Summary: Midnight Commander visual shell
19 Group: Applications
/File
20 Source0: ftp
://ftp.ibiblio.org
/pub
/Linux
/utils
/file
/managers
/mc
/mc
-%{ver}.tar.gz
21 URL: http
://www.ibiblio.org
/mc
/
22 BuildRoot: /var
/tmp
/mc
-%{PACKAGE_VERSION}-root
23 Prereq
: /sbin
/chkconfig
24 BuildRequires
: glib
-devel
25 %{!?_with_included_slang:BuildRequires: slang-devel}
26 %{?_with_ncurses:BuildRequires: ncurses-devel}
29 GNU Midnight Commander is a visual file manager. It's a feature rich
30 full
-screen text mode application that allows you to copy
, move and
31 delete files and whole directory trees
, search
for files and run
32 commands
in the subshell. Internal viewer and editor are included.
33 Mouse is supported under X Window System and on Linux console. VFS
34 (Virtual Filesystem
) allows you to view archives and files on remote
38 %setup -q
-n mc
-%{ver}
41 CFLAGS
="$RPM_OPT_FLAGS" LDFLAGS
="
-s" .
/configure \
44 %{?_with_ncurses: --with-ncurses} \
45 %{?_with_included_slang: --with-included-slang} \
46 %{?_with_charset: --enable-charset}
52 rm -rf $RPM_BUILD_ROOT
53 make install DESTDIR
=$RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT
/etc
/profile.d
55 install lib
/mc.sh $RPM_BUILD_ROOT
/etc
/profile.d
56 install lib
/mc.csh $RPM_BUILD_ROOT
/etc
/profile.d
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(-, root
, root
)
65 %doc FAQ COPYING NEWS README
70 %{_prefix}/lib
/mc
/cons.saver
74 %config /etc
/profile.d
/*
75 %{_prefix}/share
/mc
/cedit.menu
76 %{_prefix}/share
/mc
/edit.indent.rc
77 %{_prefix}/share
/mc
/edit.spell.rc
78 %{_prefix}/share
/mc
/extfs
/*
79 %{_prefix}/share
/mc
/mc.ext
80 %{_prefix}/share
/mc
/mc.lib
81 %{_prefix}/share
/mc
/mc.menu
82 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
84 %{_prefix}/share
/mc
/mc.hint
*
85 %{_prefix}/share
/mc
/mc.hlp
*
86 %{_prefix}/share
/mc
/syntax
/*
87 %{_prefix}/share
/mc
/term
/*
88 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
90 %dir %{_prefix}/lib
/mc
91 %dir %{_prefix}/share
/mc
92 %dir %{_prefix}/share
/mc
/extfs
93 %dir %{_prefix}/share
/mc
/syntax
94 %dir %{_prefix}/share
/mc
/term
97 * Mon Sep
23 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
98 - Restore
%config for %{_prefix}/share
/mc
/mc.charsets.
99 - Restore
%{_prefix}/share
/mc
/edit.spell.rc.
101 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
102 - Use FHS
-compliant paths.
103 - Drop
%config from files under
/usr
/share
- users are not supposed to
104 edit them. Local copies under ~
/.mc should be used
for that.
106 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
107 - Change description
, update URLs
, allow dash
in the version.
109 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
110 - Support conditional builds.
112 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
113 - Add
/usr
/lib
/mc
/mc.charsets.
114 - Add
%{_mandir}/*/man1
/*.
116 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
119 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
120 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
123 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
124 - Remove gmc. Reunite mc and mc
-common.
126 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
129 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
130 - Remove
/usr
/lib
/mc
/layout.
132 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
133 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
135 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
136 - Change groups. Don't include locale directories. More config files.
138 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
139 - Don't require stylesheets
, since HTML files are now
in the tarball.
141 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
142 - Remove package mcserv. Drop dependency on PAM.
144 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
145 - Remove mc
-gnome.ext.
147 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
150 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
151 - Allow mcserv
.8 to be gzipped.
153 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
154 - New package mc
-common.
155 - Use DESTDIR instead of misusing prefix.
156 - Don't
install old icons
- they don't exist
158 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
159 - Include translations with mc
, not gmc
160 - chkconfig
--del
in %preun, not
%postun
161 - --without
-debug not needed
162 - /etc
/X11
/wmconfig not needed
163 - /etc
/pam.d
/mcserv shouldn't be executable
164 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
166 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
167 - Include .idl files
in the package.
169 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
170 - Added a build prereq so that rpms get built with documentation
;)
172 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
173 - added
help and locale files to
%files
175 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
176 - added syntax files to
%files
178 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
179 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
180 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
182 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
183 - Updated the specfile
, removed some kludges.
185 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
186 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
188 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
189 - made cons.saver not setuid
191 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
194 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
195 - add
/usr
/lib
/mc
/layout to gmc
197 * Tue Dec
23 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
198 - added
--without
-debug to configure
,
199 - modification
in %build and
%install and cosmetic modification
in packages
201 - added %
%{PACKAGE_VERSION} macro to
Buildroot,
202 - removed "
rm -rf $RPM_BUILD_ROOT" from
%prep.
203 - removed
Packager field.
205 * Thu Dec
18 1997 Michele Marziani
<marziani@fe.infn.it
>
206 - Merged spec file with that from RedHat
-5.0 distribution
207 (now a Hurricane
-based distribution is needed
)
208 - Added patch
for RPM script
(didn't always work with rpm
-2.4.10)
209 - Corrected patch
for mcserv init file
(chkconfig init levels
)
210 - Added more documentation files on termcap
, terminfo
, xterm
212 * Thu Oct
30 1997 Michael K. Johnson
<johnsonm@redhat.com
>
214 - Added dependency on portmap
216 * Wed Oct
29 1997 Michael K. Johnson
<johnsonm@redhat.com
>
221 * Sun Oct
26 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
224 - added
%attr macros
in %files,
225 - a few simplification
in %install,
226 - removed glibc patch
,
227 - fixed installing
/etc
/X11
/wmconfig
/tkmc.
229 * Thu Oct
23 1997 Michael K. Johnson
<johnsonm@redhat.com
>
234 * Wed Oct
15 1997 Erik Troan
<ewt@redhat.com
>
236 - chkconfig is
for mcserv package
, not mc one
238 * Tue Oct
14 1997 Erik Troan
<ewt@redhat.com
>
240 - patched init script
for chkconfig
241 - don't turn on the service by default
243 * Fri Oct
10 1997 Michael K. Johnson
<johnsonm@redhat.com
>
245 - Converted to new PAM conventions.
247 - No longer needs glibc patch.
249 * Thu May
22 1997 Michele Marziani
<marziani@fe.infn.it
>
251 - added support
for mc
alias in /etc
/profile.d
/mc.csh
(for csh and tcsh
)
252 - lowered number of SysV init scripts
in /etc
/rc.d
/rc
[0,1,6].d
253 (mcserv needs to be killed before inet
)
254 - removed all references to $RPM_SOURCE_DIR
255 - restored $RPM_OPT_FLAGS when compiling
256 - minor cleanup of spec file
: redundant directives and comments removed
258 * Sun May
18 1997 Michele Marziani
<marziani@fe.infn.it
>
260 - removed all references to non
-existent mc.rpmfs
261 - added mcedit
.1 to the
%files section
262 - reverted to un
-gzipped man pages
(RedHat style
)
263 - removed double
install line
for mcserv.pamd
265 * Tue May
13 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
267 - added new rpmfs script
,
268 - removed mcfn_install from mc
(adding mc
() to bash enviroment is
in
269 /etc
/profile.d
/mc.sh
),
270 - /etc
/profile.d
/mc.sh changed to
%config,
271 - removed
/usr
/lib
/mc
/bin
/create_vcs
,
272 - removed
/usr
/lib
/mc
/term.
274 * Wed May
9 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
276 - changed
source url
,
277 - fixed link mcedit to mc
,
279 * Tue May
7 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
281 - new version
3.5.27,
282 - %dir /usr
/lib
/mc
/icons and icons removed from tkmc
,
283 - added commented xmc part.
285 * Tue Apr
22 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
289 - in mc added missing
/usr
/lib
/mc
/mc.ext
, /usr
/lib
/mc
/mc.hint
,
290 /usr
/lib
/mc
/mc.hlp
, /usr
/lib
/mc
/mc.lib
, /usr
/lib
/mc
/mc.menu.
292 * Fri Apr
18 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
294 - added making packages
: tkmc
, mcserv
(xmc not work yet
),
296 - added
/etc
/pamd.d
/mcserv PAM config file.
297 - added instaling icons
,
298 - added
/etc
/profile.d
/mc.sh
,
299 - in %doc added NEWS README
,
300 - removed
/usr
/lib
/mc
/FAQ
,
301 - added mcserv.init script
for mcserv
(start
/stop on level
86).