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