* syntax/sql.syntax: Only recognize non-standard MySQL comments
[midnight-commander.git] / mc.spec.in
blobd1e3c4e6543250fc52fe70cc7d86ac1257a2bc49
1 # Conditional build:
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
8 %define ver @VERSION@
9 %define rhver @RH_VERSION@
10 %define RELEASE 1
11 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
13 Summary: Midnight Commander visual shell
14 Name: mc
15 Version: %rhver
16 Release: %rel
17 Epoch: 1
18 Copyright: GPL
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}
28 %description
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
35 servers.
37 %prep
38 %setup -q -n mc-%{ver}
40 %build
41 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
42 --prefix=%{_prefix} \
43 --mandir=%{_mandir} \
44 %{?_with_ncurses: --with-ncurses} \
45 %{?_with_included_slang: --with-included-slang} \
46 %{?_with_charset: --enable-charset}
48 make
50 %install
51 echo $RPM_BUILD_ROOT
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
59 %clean
60 rm -rf $RPM_BUILD_ROOT
62 %files
63 %defattr(-, root, root)
65 %doc FAQ COPYING NEWS README
66 %{_prefix}/bin/mc
67 %{_prefix}/bin/mcedit
68 %{_prefix}/bin/mcview
69 %{_prefix}/lib/mc/bin/cons.saver
70 %{_prefix}/lib/mc/term/*
71 %{_mandir}/man1/*
72 %{_mandir}/*/man1/*
73 %config /etc/profile.d/*
74 %dir %{_prefix}/lib/mc/bin
75 %dir %{_prefix}/lib/mc/term
77 %defattr(-, root, root)
78 %{_prefix}/bin/mcmfmt
79 %config %{_prefix}/lib/mc/cedit.menu
80 %config %{_prefix}/lib/mc/edit.indent.rc
81 %config %{_prefix}/lib/mc/extfs/*
82 %config %{_prefix}/lib/mc/mc.ext
83 %config %{_prefix}/lib/mc/mc.lib
84 %config %{_prefix}/lib/mc/mc.menu
85 %{?_with_charset: %config %{_prefix}/lib/mc/mc.charsets}
86 %{_prefix}/lib/mc/mc.hint*
87 %{_prefix}/lib/mc/mc.hlp*
88 %{_prefix}/lib/mc/syntax/*
89 %{_prefix}/share/locale/*/LC_MESSAGES/*
90 %dir %{_prefix}/lib/mc
91 %dir %{_prefix}/lib/mc/extfs
92 %dir %{_prefix}/lib/mc/syntax
94 %changelog
95 * Wed Aug 21 2002 Pavel Roskin <proski@gnu.org>
96 - Change description, update URLs, allow dash in the version.
98 * Tue Aug 20 2002 Pavel Roskin <proski@gnu.org>
99 - Support conditional builds.
101 * Tue Aug 20 2002 Andrew V. Samoilov <sav@bcs.zp.ua>
102 - Add /usr/lib/mc/mc.charsets.
103 - Add %{_mandir}/*/man1/*.
105 * Fri Aug 16 2002 Pavel Roskin <proski@gnu.org>
106 - Remove mc.global.
108 * Mon Jan 21 2002 Pavel Roskin <proski@gnu.org>
109 - Remove --with-gnome and --with-included-slang from configure options.
110 - Add BuildPrereq.
112 * Fri Aug 24 2001 Pavel Roskin <proski@gnu.org>
113 - Remove gmc. Reunite mc and mc-common.
115 * Sun Aug 05 2001 Pavel Roskin <proski@gnu.org>
116 - Set epoch.
118 * Sun Jul 15 2001 Pavel Roskin <proski@gnu.org>
119 - Remove /usr/lib/mc/layout.
121 * Sat Jun 09 2001 Pavel Roskin <proski@gnu.org>
122 - Use %{_prefix} and %{_mandir}. Specify --mandir to configure.
124 * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
125 - Change groups. Don't include locale directories. More config files.
127 * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
128 - Don't require stylesheets, since HTML files are now in the tarball.
130 * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
131 - Remove package mcserv. Drop dependency on PAM.
133 * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
134 - Remove mc-gnome.ext.
136 * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
137 - Include mcview.
139 * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
140 - Allow mcserv.8 to be gzipped.
142 * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
143 - New package mc-common.
144 - Use DESTDIR instead of misusing prefix.
145 - Don't install old icons - they don't exist
147 * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
148 - Include translations with mc, not gmc
149 - chkconfig --del in %preun, not %postun
150 - --without-debug not needed
151 - /etc/X11/wmconfig not needed
152 - /etc/pam.d/mcserv shouldn't be executable
153 - New files in %{prefix}/lib/mc/ - translated hints, editor files
155 * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
156 - Include .idl files in the package.
158 * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
159 - Added a build prereq so that rpms get built with documentation ;)
161 * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
162 - added help and locale files to %files
164 * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
165 - added syntax files to %files
167 * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
168 - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
169 $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
171 * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
172 - Updated the specfile, removed some kludges.
174 * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
175 - rebuilt against gnome-libs 0.27 and gtk+-1.1
177 * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
178 - made cons.saver not setuid
180 * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
181 - removed tkmc
183 * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
184 - add /usr/lib/mc/layout to gmc
186 * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
187 - added --without-debug to configure,
188 - modification in %build and %install and cosmetic modification in packages
189 headers,
190 - added %%{PACKAGE_VERSION} macro to Buildroot,
191 - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
192 - removed Packager field.
194 * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
195 - Merged spec file with that from RedHat-5.0 distribution
196 (now a Hurricane-based distribution is needed)
197 - Added patch for RPM script (didn't always work with rpm-2.4.10)
198 - Corrected patch for mcserv init file (chkconfig init levels)
199 - Added more documentation files on termcap, terminfo, xterm
201 * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
203 - Added dependency on portmap
205 * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
207 - fixed spec file.
208 - Updated to 4.1.8
210 * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
212 - updated to 4.1.6
213 - added %attr macros in %files,
214 - a few simplification in %install,
215 - removed glibc patch,
216 - fixed installing /etc/X11/wmconfig/tkmc.
218 * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
220 - updated to 4.1.5
221 - added wmconfig
223 * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
225 - chkconfig is for mcserv package, not mc one
227 * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
229 - patched init script for chkconfig
230 - don't turn on the service by default
232 * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
234 - Converted to new PAM conventions.
235 - Updated to 4.1.3
236 - No longer needs glibc patch.
238 * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
240 - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
241 - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
242 (mcserv needs to be killed before inet)
243 - removed all references to $RPM_SOURCE_DIR
244 - restored $RPM_OPT_FLAGS when compiling
245 - minor cleanup of spec file: redundant directives and comments removed
247 * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
249 - removed all references to non-existent mc.rpmfs
250 - added mcedit.1 to the %files section
251 - reverted to un-gzipped man pages (RedHat style)
252 - removed double install line for mcserv.pamd
254 * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
256 - added new rpmfs script,
257 - removed mcfn_install from mc (adding mc() to bash enviroment is in
258 /etc/profile.d/mc.sh),
259 - /etc/profile.d/mc.sh changed to %config,
260 - removed /usr/lib/mc/bin/create_vcs,
261 - removed /usr/lib/mc/term.
263 * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
265 - changed source url,
266 - fixed link mcedit to mc,
268 * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
270 - new version 3.5.27,
271 - %dir /usr/lib/mc/icons and icons removed from tkmc,
272 - added commented xmc part.
274 * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
276 - FIX spec:
277 - added URL field,
278 - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
279 /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
281 * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
283 - added making packages: tkmc, mcserv (xmc not work yet),
284 - gziped man pages,
285 - added /etc/pamd.d/mcserv PAM config file.
286 - added instaling icons,
287 - added /etc/profile.d/mc.sh,
288 - in %doc added NEWS README,
289 - removed /usr/lib/mc/FAQ,
290 - added mcserv.init script for mcserv (start/stop on level 86).