Left & Right Menu page updated...
[midnight-commander.git] / mc.spec.in
blobbaa219302ca4a8c0a7f5a4755bb59ace03bd4003
1 # Conditional build:
3 #%define _with_ncurses 1 # use ncurses
4 #%define _with_included_slang 1 # use included S-Lang library
5 #%define _with_charset 1 # enable experimental code for charset conversion
6 #%define _with_samba 1 # enable SMB/CIFS virtual file system
7 #%define _with_ext2undel 1 # compile with ext2 undelete code [if available]
9 # Note that this is NOT a relocatable package
10 %define ver @VERSION@
11 %define rpmver @RPM_VERSION@
12 %define RELEASE 1
13 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
15 Summary: Midnight Commander visual shell
16 Name: mc
17 Version: %rpmver
18 Release: %rel
19 Epoch: 1
20 Copyright: GPL
21 Group: Applications/File
22 Source0: ftp://ftp.ibiblio.org/pub/Linux/utils/file/managers/mc/mc-%{ver}.tar.gz
23 URL: http://www.ibiblio.org/mc/
24 BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
25 Prereq: /sbin/chkconfig
26 BuildRequires: glib-devel
27 %{!?_with_included_slang:%{!?_with_ncurses:BuildRequires: slang-devel}}
28 %{?_with_ncurses:BuildRequires: ncurses-devel}
30 %description
31 GNU Midnight Commander is a visual file manager. It's a feature rich
32 full-screen text mode application that allows you to copy, move and
33 delete files and whole directory trees, search for files and run
34 commands in the subshell. Internal viewer and editor are included.
35 Mouse is supported under X Window System and on Linux console. VFS
36 (Virtual Filesystem) allows you to view archives and files on remote
37 servers.
39 %prep
40 %setup -q -n mc-%{ver}
42 %build
43 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
44 --prefix=%{_prefix} \
45 --mandir=%{_mandir} \
46 %{?_with_ncurses: --with-screen=ncurses} \
47 %{?_with_included_slang: --with-screen=mcslang} \
48 %{?_with_charset: --enable-charset} \
49 %{?_with_samba: --with-samba} \
50 %{?_with_ext2undel: --with-ext2undel}
52 make
54 %install
55 echo $RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
57 make install DESTDIR=$RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT/etc/profile.d
59 cp -f $RPM_BUILD_ROOT%{_prefix}/share/mc/bin/mc.{csh,sh} \
60 $RPM_BUILD_ROOT/etc/profile.d
63 %clean
64 rm -rf $RPM_BUILD_ROOT
66 %files
67 %defattr(-, root, root)
69 %doc FAQ COPYING NEWS README
70 %{_prefix}/bin/mc
71 %{_prefix}/bin/mcedit
72 %{_prefix}/bin/mcview
73 %{_prefix}/bin/mcmfmt
74 %{_prefix}/lib/mc/cons.saver
75 %{_mandir}/man1/*
76 %{_mandir}/*/man1/*
78 %config /etc/profile.d/*
79 %{_prefix}/share/mc/cedit.menu
80 %{_prefix}/share/mc/edit.indent.rc
81 %{_prefix}/share/mc/edit.spell.rc
82 %{_prefix}/share/mc/bin/*
83 %{_prefix}/share/mc/extfs/*
84 %{_prefix}/share/mc/mc.ext
85 %{_prefix}/share/mc/mc.lib
86 %{_prefix}/share/mc/mc.menu
87 %{?_with_charset:%config %{_prefix}/share/mc/mc.charsets}
89 %{_prefix}/share/mc/mc.hint*
90 %{_prefix}/share/mc/mc.hlp*
91 %{_prefix}/share/mc/syntax/*
92 %{_prefix}/share/mc/term/*
93 %{_prefix}/share/locale/*/LC_MESSAGES/*
95 %dir %{_prefix}/lib/mc
96 %dir %{_prefix}/share/mc
97 %dir %{_prefix}/share/mc/extfs
98 %dir %{_prefix}/share/mc/syntax
99 %dir %{_prefix}/share/mc/term
101 %changelog
102 * Mon Nov 04 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
103 - Handle --with ext2undel.
105 * Fri Nov 01 2002 Pavel Roskin <proski@gnu.org>
106 - Add wrappers to support setting last directory on exit. Keep all
107 scripts in their original directory, just copy them.
109 * Tue Oct 22 2002 Pavel Roskin <proski@gnu.org>
110 - Don't use the included S-Lang, there is a workaround for Red Hat 8.0
111 S-Lang, and binary compatibility with Red Hat 7.x doesn't work anyway.
113 * Tue Oct 08 2002 Pavel Roskin <proski@gnu.org>
114 - Use the included S-Lang again, since we include a better version now.
115 This should avoid incompatibility with Red Hat 7.x.
116 - Add _with_glib2 option.
118 * Mon Oct 07 2002 Pavel Roskin <proski@gnu.org>
119 - Remove installed mc.sh and mc.csh from %{_prefix}/share/mc/bin to
120 suppress a warning about installed but unpackaged files.
122 * Mon Sep 30 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
123 - Don't require slang-devel if _with_ncurses.
124 - Handle --with samba.
126 * Sun Sep 29 2002 Pavel Roskin <proski@gnu.org>
127 - Use --with-screen instead of --with-ncurses and --with-included-slang.
129 * Mon Sep 23 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
130 - Restore %config for %{_prefix}/share/mc/mc.charsets.
131 - Restore %{_prefix}/share/mc/edit.spell.rc.
133 * Sat Sep 21 2002 Pavel Roskin <proski@gnu.org>
134 - Use FHS-compliant paths.
135 - Drop %config from files under /usr/share - users are not supposed to
136 edit them. Local copies under ~/.mc should be used for that.
138 * Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
139 - Change description, update URLs, allow dash in the version.
141 * Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
142 - Support conditional builds.
144 * Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
145 - Add /usr/lib/mc/mc.charsets.
146 - Add %{_mandir}/*/man1/*.
148 * Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
149 - Remove mc.global.
151 * Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
152 - Remove --with-gnome and --with-included-slang from configure options.
153 - Add BuildPrereq.
155 * Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
156 - Remove gmc. Reunite mc and mc-common.
158 * Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
159 - Set epoch.
161 * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
162 - Remove /usr/lib/mc/layout.
164 * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
165 - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
167 * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
168 - Change groups. Don't include locale directories. More config files.
170 * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
171 - Don't require stylesheets, since HTML files are now in the tarball.
173 * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
174 - Remove package mcserv. Drop dependency on PAM.
176 * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
177 - Remove mc-gnome.ext.
179 * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
180 - Include mcview.
182 * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
183 - Allow mcserv.8 to be gzipped.
185 * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
186 - New package mc-common.
187 - Use DESTDIR instead of misusing prefix.
188 - Don't install old icons - they don't exist
190 * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
191 - Include translations with mc, not gmc
192 - chkconfig --del in %preun, not %postun
193 - --without-debug not needed
194 - /etc/X11/wmconfig not needed
195 - /etc/pam.d/mcserv shouldn't be executable
196 - New files in %{prefix}/lib/mc/ - translated hints, editor files
198 * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
199 - Include .idl files in the package.
201 * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
202 - Added a build prereq so that rpms get built with documentation ;)
204 * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
205 - added help and locale files to %files
207 * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
208 - added syntax files to %files
210 * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
211 - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
212 $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
214 * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
215 - Updated the specfile, removed some kludges.
217 * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
218 - rebuilt against gnome-libs 0.27 and gtk+-1.1
220 * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
221 - made cons.saver not setuid
223 * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
224 - removed tkmc
226 * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
227 - add /usr/lib/mc/layout to gmc
229 * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
230 - added --without-debug to configure,
231 - modification in %build and %install and cosmetic modification in packages
232 headers,
233 - added %%{PACKAGE_VERSION} macro to Buildroot,
234 - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
235 - removed Packager field.
237 * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
238 - Merged spec file with that from RedHat-5.0 distribution
239 (now a Hurricane-based distribution is needed)
240 - Added patch for RPM script (didn't always work with rpm-2.4.10)
241 - Corrected patch for mcserv init file (chkconfig init levels)
242 - Added more documentation files on termcap, terminfo, xterm
244 * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
246 - Added dependency on portmap
248 * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
250 - fixed spec file.
251 - Updated to 4.1.8
253 * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
255 - updated to 4.1.6
256 - added %attr macros in %files,
257 - a few simplification in %install,
258 - removed glibc patch,
259 - fixed installing /etc/X11/wmconfig/tkmc.
261 * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
263 - updated to 4.1.5
264 - added wmconfig
266 * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
268 - chkconfig is for mcserv package, not mc one
270 * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
272 - patched init script for chkconfig
273 - don't turn on the service by default
275 * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
277 - Converted to new PAM conventions.
278 - Updated to 4.1.3
279 - No longer needs glibc patch.
281 * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
283 - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
284 - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
285 (mcserv needs to be killed before inet)
286 - removed all references to $RPM_SOURCE_DIR
287 - restored $RPM_OPT_FLAGS when compiling
288 - minor cleanup of spec file: redundant directives and comments removed
290 * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
292 - removed all references to non-existent mc.rpmfs
293 - added mcedit.1 to the %files section
294 - reverted to un-gzipped man pages (RedHat style)
295 - removed double install line for mcserv.pamd
297 * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
299 - added new rpmfs script,
300 - removed mcfn_install from mc (adding mc() to bash enviroment is in
301 /etc/profile.d/mc.sh),
302 - /etc/profile.d/mc.sh changed to %config,
303 - removed /usr/lib/mc/bin/create_vcs,
304 - removed /usr/lib/mc/term.
306 * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
308 - changed source url,
309 - fixed link mcedit to mc,
311 * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
313 - new version 3.5.27,
314 - %dir /usr/lib/mc/icons and icons removed from tkmc,
315 - added commented xmc part.
317 * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
319 - FIX spec:
320 - added URL field,
321 - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
322 /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
324 * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
326 - added making packages: tkmc, mcserv (xmc not work yet),
327 - gziped man pages,
328 - added /etc/pamd.d/mcserv PAM config file.
329 - added instaling icons,
330 - added /etc/profile.d/mc.sh,
331 - in %doc added NEWS README,
332 - removed /usr/lib/mc/FAQ,
333 - added mcserv.init script for mcserv (start/stop on level 86).