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