Warning fix: defined but not used
[midnight-commander.git] / mc.spec.in
blobfe21a7e0924a2d815e794aa9f8472f0ab6671084
1 # Conditional build (replace "#" with "%" to enable):
3 #define _with_ncurses 1 # use ncurses
4 #define _with_charset 1 # enable code for charset conversion
5 #define _with_samba 1 # enable SMB/CIFS virtual file system
6 #define _with_ext2undel 1 # compile with ext2 undelete code
7 #define _without_x 1 # avoid dependency on X11 libraries
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 License: GPL/LGPL
21 Group: Applications/File
22 Source0: ftp://ftp.gnu.org/gnu/mc/mc-%{ver}.tar.gz
23 URL: http://www.midnight-commander.org/
24 BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
26 # Names of those packages are distribution specific
27 #BuildRequires: glib-devel
28 #%{!?_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_charset: --enable-charset} \
49 %{?_with_samba: --with-samba} \
50 %{?_with_ext2undel: --with-ext2undel} \
51 %{?_without_x: --without-x}
53 make
55 %install
56 echo $RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
58 make install DESTDIR=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
60 cp -f $RPM_BUILD_ROOT/%{_datadir}/mc/bin/mc.*sh \
61 $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
64 %clean
65 rm -rf $RPM_BUILD_ROOT
67 %files
68 %defattr(-, root, root)
70 %doc FAQ COPYING NEWS README
71 %{_bindir}/mc
72 %{_bindir}/mcedit
73 %{_bindir}/mcview
74 %{_bindir}/mcmfmt
75 %attr(4755, vcsa, tty) %{_libexecdir}/mc/cons.saver
76 %{_mandir}/man1/*
77 %{_mandir}/*/man1/*
79 %config %{_sysconfdir}/profile.d/*
80 %{_datadir}/mc/cedit.menu
81 %{_datadir}/mc/edit.indent.rc
82 %{_datadir}/mc/edit.spell.rc
83 %{_datadir}/mc/bin/*
84 %{_datadir}/mc/extfs/*
85 %{_datadir}/mc/mc.ext
86 %{_datadir}/mc/mc.lib
87 %{_datadir}/mc/mc.menu*
88 %{?_with_charset:%config %{_datadir}/mc/mc.charsets}
90 %{_datadir}/mc/mc.hint*
91 %{_datadir}/mc/mc.hlp*
92 %{_datadir}/mc/syntax/*
93 %{_datadir}/locale/*/LC_MESSAGES/*
95 %dir %{_libexecdir}/mc
96 %dir %{_datadir}/mc
97 %dir %{_datadir}/mc/extfs
98 %dir %{_datadir}/mc/syntax
100 %changelog
101 * Fri Jun 22 2007 Pavel Roskin <proski@gnu.org>
102 - Make cons.saver suid vcsa, it's needed for Fedora 7
104 * Thu Dec 21 2006 Pavel Roskin <proski@gnu.org>
105 - Don't rely on brace expansion, it may be disabled
107 * Mon Jan 30 2006 Pavel Roskin <proski@gnu.org>
108 - Avoid using %{_prefix} where more specialized macros are available.
110 * Tue Aug 02 2005 Pavel Roskin <proski@gnu.org>
111 - Replace obsolete "Copyright" with "License".
113 * Thu Mar 31 2005 Pavel Roskin <proski@gnu.org>
114 - Comment out build dependencies - they are too distribution specific.
116 * Tue Sep 23 2003 Pavel Roskin <proski@gnu.org>
117 - Remove term directory, it's obsolete and irrelevant on modern systems.
118 - Include translated menu files.
120 * Sun Feb 16 2003 Pavel Roskin <proski@gnu.org>
121 - Remove obsolete dependency on /sbin/chkconfig.
123 * Tue Dec 24 2002 Pavel Roskin <proski@gnu.org>
124 - Work around bug in rpm 4.1 that expands defines in comments.
125 - Handle --without-x.
127 * Mon Nov 04 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
128 - Handle --with ext2undel.
130 * Fri Nov 01 2002 Pavel Roskin <proski@gnu.org>
131 - Add wrappers to support setting last directory on exit. Keep all
132 scripts in their original directory, just copy them.
134 * Tue Oct 22 2002 Pavel Roskin <proski@gnu.org>
135 - Don't use the included S-Lang, there is a workaround for Red Hat 8.0
136 S-Lang, and binary compatibility with Red Hat 7.x doesn't work anyway.
138 * Tue Oct 08 2002 Pavel Roskin <proski@gnu.org>
139 - Use the included S-Lang again, since we include a better version now.
140 This should avoid incompatibility with Red Hat 7.x.
141 - Add _with_glib2 option.
143 * Mon Oct 07 2002 Pavel Roskin <proski@gnu.org>
144 - Remove installed mc.sh and mc.csh from %{_prefix}/share/mc/bin to
145 suppress a warning about installed but unpackaged files.
147 * Mon Sep 30 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
148 - Don't require slang-devel if _with_ncurses.
149 - Handle --with samba.
151 * Sun Sep 29 2002 Pavel Roskin <proski@gnu.org>
152 - Use --with-screen instead of --with-ncurses and --with-included-slang.
154 * Mon Sep 23 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
155 - Restore %config for %{_prefix}/share/mc/mc.charsets.
156 - Restore %{_prefix}/share/mc/edit.spell.rc.
158 * Sat Sep 21 2002 Pavel Roskin <proski@gnu.org>
159 - Use FHS-compliant paths.
160 - Drop %config from files under /usr/share - users are not supposed to
161 edit them. Local copies under ~/.mc should be used for that.
163 * Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
164 - Change description, update URLs, allow dash in the version.
166 * Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
167 - Support conditional builds.
169 * Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
170 - Add /usr/lib/mc/mc.charsets.
171 - Add %{_mandir}/*/man1/*.
173 * Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
174 - Remove mc.global.
176 * Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
177 - Remove --with-gnome and --with-included-slang from configure options.
178 - Add BuildPrereq.
180 * Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
181 - Remove gmc. Reunite mc and mc-common.
183 * Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
184 - Set epoch.
186 * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
187 - Remove /usr/lib/mc/layout.
189 * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
190 - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
192 * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
193 - Change groups. Don't include locale directories. More config files.
195 * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
196 - Don't require stylesheets, since HTML files are now in the tarball.
198 * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
199 - Remove package mcserv. Drop dependency on PAM.
201 * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
202 - Remove mc-gnome.ext.
204 * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
205 - Include mcview.
207 * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
208 - Allow mcserv.8 to be gzipped.
210 * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
211 - New package mc-common.
212 - Use DESTDIR instead of misusing prefix.
213 - Don't install old icons - they don't exist
215 * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
216 - Include translations with mc, not gmc
217 - chkconfig --del in %preun, not %postun
218 - --without-debug not needed
219 - /etc/X11/wmconfig not needed
220 - /etc/pam.d/mcserv shouldn't be executable
221 - New files in %{prefix}/lib/mc/ - translated hints, editor files
223 * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
224 - Include .idl files in the package.
226 * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
227 - Added a build prereq so that rpms get built with documentation ;)
229 * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
230 - added help and locale files to %files
232 * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
233 - added syntax files to %files
235 * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
236 - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
237 $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
239 * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
240 - Updated the specfile, removed some kludges.
242 * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
243 - rebuilt against gnome-libs 0.27 and gtk+-1.1
245 * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
246 - made cons.saver not setuid
248 * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
249 - removed tkmc
251 * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
252 - add /usr/lib/mc/layout to gmc