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
/extfs
/*
78 %{_prefix}/share
/mc
/mc.ext
79 %{_prefix}/share
/mc
/mc.lib
80 %{_prefix}/share
/mc
/mc.menu
81 %{?_with_charset: %{_prefix}/share/mc/mc.charsets}
83 %{_prefix}/share
/mc
/mc.hint
*
84 %{_prefix}/share
/mc
/mc.hlp
*
85 %{_prefix}/share
/mc
/syntax
/*
86 %{_prefix}/share
/mc
/term
/*
87 %{_prefix}/share
/locale
/*/LC_MESSAGES
/*
89 %dir %{_prefix}/lib
/mc
90 %dir %{_prefix}/share
/mc
91 %dir %{_prefix}/share
/mc
/extfs
92 %dir %{_prefix}/share
/mc
/syntax
93 %dir %{_prefix}/share
/mc
/term
96 * Sat Sep
21 2002 Pavel Roskin
<proski@gnu.org
>
97 - Use FHS
-compliant paths.
98 - Drop
%config from files under
/usr
/share
- users are not supposed to
99 edit them. Local copies under ~
/.mc should be used
for that.
101 * Wed Aug
21 2002 Pavel Roskin
<proski@gnu.org
>
102 - Change description
, update URLs
, allow dash
in the version.
104 * Tue Aug
20 2002 Pavel Roskin
<proski@gnu.org
>
105 - Support conditional builds.
107 * Tue Aug
20 2002 Andrew V. Samoilov
<sav@bcs.zp.ua
>
108 - Add
/usr
/lib
/mc
/mc.charsets.
109 - Add
%{_mandir}/*/man1
/*.
111 * Fri Aug
16 2002 Pavel Roskin
<proski@gnu.org
>
114 * Mon Jan
21 2002 Pavel Roskin
<proski@gnu.org
>
115 - Remove
--with
-gnome and
--with
-included
-slang from configure options.
118 * Fri Aug
24 2001 Pavel Roskin
<proski@gnu.org
>
119 - Remove gmc. Reunite mc and mc
-common.
121 * Sun Aug
05 2001 Pavel Roskin
<proski@gnu.org
>
124 * Sun Jul
15 2001 Pavel Roskin
<proski@gnu.org
>
125 - Remove
/usr
/lib
/mc
/layout.
127 * Sat Jun
09 2001 Pavel Roskin
<proski@gnu.org
>
128 - Use
%{_prefix} and %{_mandir}. Specify
--mandir to configure.
130 * Fri May
25 2001 Pavel Roskin
<proski@gnu.org
>
131 - Change groups. Don't include locale directories. More config files.
133 * Sun May
20 2001 Pavel Roskin
<proski@gnu.org
>
134 - Don't require stylesheets
, since HTML files are now
in the tarball.
136 * Thu Apr
19 2001 Pavel Roskin
<proski@gnu.org
>
137 - Remove package mcserv. Drop dependency on PAM.
139 * Mon Feb
26 2001 Pavel Roskin
<proski@gnu.org
>
140 - Remove mc
-gnome.ext.
142 * Thu Jan
11 2001 Pavel Roskin
<proski@gnu.org
>
145 * Mon Oct
23 2000 Pavel Roskin
<proski@gnu.org
>
146 - Allow mcserv
.8 to be gzipped.
148 * Sat Sep
30 2000 Pavel Roskin
<proski@gnu.org
>
149 - New package mc
-common.
150 - Use DESTDIR instead of misusing prefix.
151 - Don't
install old icons
- they don't exist
153 * Sat Sep
23 2000 Pavel Roskin
<proski@gnu.org
>
154 - Include translations with mc
, not gmc
155 - chkconfig
--del
in %preun, not
%postun
156 - --without
-debug not needed
157 - /etc
/X11
/wmconfig not needed
158 - /etc
/pam.d
/mcserv shouldn't be executable
159 - New files
in %{prefix}/lib
/mc
/ - translated hints
, editor files
161 * Thu Sep
09 1999 Elliot Lee
<sopwith@redhat.com
>
162 - Include .idl files
in the package.
164 * Sat Sep
04 1999 Gregory McLean
<gregm@comstar.net
>
165 - Added a build prereq so that rpms get built with documentation
;)
167 * Mon Jul
12 1999 Kjartan Maraas
<kmaraas@online.no
>
168 - added
help and locale files to
%files
170 * Tue Jun
22 1999 Vladimir Kondratiev
<vkondra@iil.intel.com
>
171 - added syntax files to
%files
173 * Wed May
26 1999 Cody Russell
<bratsche@dfw.net
>
174 - chmod cons.saver at $RPM_BUILD_ROOT
%{prefix}/lib rather than at
175 $RPM_BUILD_ROOT
/usr
/lib. We can now
install to somewhere other than
/usr.
177 * Sun Apr
18 1999 Gregory McLean
<gregm@comstar.net
>
178 - Updated the specfile
, removed some kludges.
180 * Thu Aug
20 1998 Michael Fulbright
<msf@redhat.com
>
181 - rebuilt against gnome
-libs
0.27 and gtk
+-1.1
183 * Thu Jul
09 1998 Michael Fulbright
<msf@redhat.com
>
184 - made cons.saver not setuid
186 * Sun Apr
19 1998 Marc Ewing
<marc@redhat.com
>
189 * Wed Apr
8 1998 Marc Ewing
<marc@redhat.com
>
190 - add
/usr
/lib
/mc
/layout to gmc
192 * Tue Dec
23 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
193 - added
--without
-debug to configure
,
194 - modification
in %build and
%install and cosmetic modification
in packages
196 - added %
%{PACKAGE_VERSION} macro to
Buildroot,
197 - removed "
rm -rf $RPM_BUILD_ROOT" from
%prep.
198 - removed
Packager field.
200 * Thu Dec
18 1997 Michele Marziani
<marziani@fe.infn.it
>
201 - Merged spec file with that from RedHat
-5.0 distribution
202 (now a Hurricane
-based distribution is needed
)
203 - Added patch
for RPM script
(didn't always work with rpm
-2.4.10)
204 - Corrected patch
for mcserv init file
(chkconfig init levels
)
205 - Added more documentation files on termcap
, terminfo
, xterm
207 * Thu Oct
30 1997 Michael K. Johnson
<johnsonm@redhat.com
>
209 - Added dependency on portmap
211 * Wed Oct
29 1997 Michael K. Johnson
<johnsonm@redhat.com
>
216 * Sun Oct
26 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
219 - added
%attr macros
in %files,
220 - a few simplification
in %install,
221 - removed glibc patch
,
222 - fixed installing
/etc
/X11
/wmconfig
/tkmc.
224 * Thu Oct
23 1997 Michael K. Johnson
<johnsonm@redhat.com
>
229 * Wed Oct
15 1997 Erik Troan
<ewt@redhat.com
>
231 - chkconfig is
for mcserv package
, not mc one
233 * Tue Oct
14 1997 Erik Troan
<ewt@redhat.com
>
235 - patched init script
for chkconfig
236 - don't turn on the service by default
238 * Fri Oct
10 1997 Michael K. Johnson
<johnsonm@redhat.com
>
240 - Converted to new PAM conventions.
242 - No longer needs glibc patch.
244 * Thu May
22 1997 Michele Marziani
<marziani@fe.infn.it
>
246 - added support
for mc
alias in /etc
/profile.d
/mc.csh
(for csh and tcsh
)
247 - lowered number of SysV init scripts
in /etc
/rc.d
/rc
[0,1,6].d
248 (mcserv needs to be killed before inet
)
249 - removed all references to $RPM_SOURCE_DIR
250 - restored $RPM_OPT_FLAGS when compiling
251 - minor cleanup of spec file
: redundant directives and comments removed
253 * Sun May
18 1997 Michele Marziani
<marziani@fe.infn.it
>
255 - removed all references to non
-existent mc.rpmfs
256 - added mcedit
.1 to the
%files section
257 - reverted to un
-gzipped man pages
(RedHat style
)
258 - removed double
install line
for mcserv.pamd
260 * Tue May
13 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
262 - added new rpmfs script
,
263 - removed mcfn_install from mc
(adding mc
() to bash enviroment is
in
264 /etc
/profile.d
/mc.sh
),
265 - /etc
/profile.d
/mc.sh changed to
%config,
266 - removed
/usr
/lib
/mc
/bin
/create_vcs
,
267 - removed
/usr
/lib
/mc
/term.
269 * Wed May
9 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
271 - changed
source url
,
272 - fixed link mcedit to mc
,
274 * Tue May
7 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
276 - new version
3.5.27,
277 - %dir /usr
/lib
/mc
/icons and icons removed from tkmc
,
278 - added commented xmc part.
280 * Tue Apr
22 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
284 - in mc added missing
/usr
/lib
/mc
/mc.ext
, /usr
/lib
/mc
/mc.hint
,
285 /usr
/lib
/mc
/mc.hlp
, /usr
/lib
/mc
/mc.lib
, /usr
/lib
/mc
/mc.menu.
287 * Fri Apr
18 1997 Tomasz K³oczko
<kloczek@rudy.mif.pg.gda.pl
>
289 - added making packages
: tkmc
, mcserv
(xmc not work yet
),
291 - added
/etc
/pamd.d
/mcserv PAM config file.
292 - added instaling icons
,
293 - added
/etc
/profile.d
/mc.sh
,
294 - in %doc added NEWS README
,
295 - removed
/usr
/lib
/mc
/FAQ
,
296 - added mcserv.init script
for mcserv
(start
/stop on level
86).