my homework was late :-)
[midnight-commander.git] / mc.spec.in
blobf9bd143cbe46a2f61c5ad82720c4da7ca354845c
1 # Note that this is NOT a relocatable package
2 %define ver @VERSION@
3 %define RELEASE 1
4 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5 %define prefix /usr
7 Summary: Midnight Commander visual shell
8 Name: mc
9 Version: %ver
10 Release: %rel
11 Copyright: GPL
12 Group: Applications/File
13 Source0: ftp://ftp.gnome.org/mirror/gnome.org/stable/sources/mc/mc-%{PACKAGE_VERSION}.tar.gz
14 URL: http://www.gnome.org/mc/
15 BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
16 Requires: mc-common >= %{PACKAGE_VERSION}
17 Prereq: /sbin/chkconfig
19 %description
20 Midnight Commander is a visual shell much like a file manager, only with way
21 more features. It is text mode, but also includes mouse support if you are
22 running GPM. Its coolest feature is the ability to ftp, view tar, zip
23 files, and poke into RPMs for specific files. :-)
25 %package -n mc-common
26 Summary: Midnight Commander visual shell (common files)
27 Group: Applications/File
29 %description -n mc-common
30 Midnight Commander is a visual shell much like a file manager, only with
31 way more features. This file contains files common for both the text and
32 the GNOME editions.
34 %package -n gmc
35 Summary: Midnight Commander visual shell (GNOME version)
36 Requires: mc-common >= %{PACKAGE_VERSION}
37 Group: User Interface/Desktops
39 %description -n gmc
40 Midnight Commander is a visual shell much like a file manager, only with
41 way more features. This is the GNOME version. It's coolest feature is the
42 ability to ftp, view tar, zip files and poke into RPMs for specific files.
43 The GNOME version of Midnight Commander is not yet finished though. :-(
45 %prep
46 %setup -q
48 %build
49 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
50 --prefix=%{prefix} --with-included-slang \
51 --with-gnome \
52 --sysconfdir=/etc
54 if [ "$SMP" != "" ]; then
55 (make "MAKE=make -k -j $SMP"; exit 0)
56 make
57 else
58 make
61 %install
62 echo $RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
64 make install DESTDIR=$RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT/etc/profile.d
66 install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/profile.d
69 %clean
70 rm -rf $RPM_BUILD_ROOT
72 %files
73 %defattr(-, root, root)
75 %doc FAQ COPYING NEWS README
76 %{prefix}/bin/mc
77 %{prefix}/bin/mcedit
78 %{prefix}/bin/mcview
79 %{prefix}/lib/mc/bin/cons.saver
80 %{prefix}/lib/mc/term/*
81 %{prefix}/man/man1/*
82 %config /etc/profile.d/*
83 %dir %{prefix}/lib/mc/bin
84 %dir %{prefix}/lib/mc/term
86 %files -n mc-common
87 %defattr(-, root, root)
88 %{prefix}/bin/mcmfmt
89 %config %{prefix}/lib/mc/cedit.menu
90 %config %{prefix}/lib/mc/edit.indent.rc
91 %config %{prefix}/lib/mc/extfs/*
92 %config %{prefix}/lib/mc/mc.ext
93 %config %{prefix}/lib/mc/mc.lib
94 %config %{prefix}/lib/mc/mc.menu
95 %{prefix}/lib/mc/mc.hint*
96 %{prefix}/lib/mc/mc.hlp*
97 %{prefix}/lib/mc/syntax/*
98 %{prefix}/share/locale/*/LC_MESSAGES/*
99 %config /etc/mc.global
100 %dir %{prefix}/lib/mc
101 %dir %{prefix}/lib/mc/extfs
102 %dir %{prefix}/lib/mc/syntax
104 %files -n gmc
105 %defattr(-, root, root)
106 %{prefix}/bin/gmc
107 %{prefix}/bin/plain-gmc
108 # %{prefix}/bin/gmc-client ?
109 %{prefix}/lib/mc/layout
110 %{prefix}/share/gnome/help/gmc/*
111 %{prefix}/share/idl/*
112 %{prefix}/share/mime-info/mc.keys
113 %{prefix}/share/pixmaps/mc/*
114 %config /etc/CORBA/servers/*
115 %dir %{prefix}/lib/mc/desktop-scripts
116 %dir %{prefix}/share/gnome/help/gmc
117 # %dir %{prefix}/share/mc/templates ?
118 %dir %{prefix}/share/pixmaps/mc
120 %changelog
121 * Fri May 25 2001 Pavel Roskin <proski@gnu.org>
122 - Change groups. Don't include locale directories. More config files.
124 * Sun May 20 2001 Pavel Roskin <proski@gnu.org>
125 - Don't require stylesheets, since HTML files are now in the tarball.
127 * Thu Apr 19 2001 Pavel Roskin <proski@gnu.org>
128 - Remove package mcserv. Drop dependency on PAM.
130 * Mon Feb 26 2001 Pavel Roskin <proski@gnu.org>
131 - Remove mc-gnome.ext.
133 * Thu Jan 11 2001 Pavel Roskin <proski@gnu.org>
134 - Include mcview.
136 * Mon Oct 23 2000 Pavel Roskin <proski@gnu.org>
137 - Allow mcserv.8 to be gzipped.
139 * Sat Sep 30 2000 Pavel Roskin <proski@gnu.org>
140 - New package mc-common.
141 - Use DESTDIR instead of misusing prefix.
142 - Don't install old icons - they don't exist
144 * Sat Sep 23 2000 Pavel Roskin <proski@gnu.org>
145 - Include translations with mc, not gmc
146 - chkconfig --del in %preun, not %postun
147 - --without-debug not needed
148 - /etc/X11/wmconfig not needed
149 - /etc/pam.d/mcserv shouldn't be executable
150 - New files in %{prefix}/lib/mc/ - translated hints, editor files
152 * Thu Sep 09 1999 Elliot Lee <sopwith@redhat.com>
153 - Include .idl files in the package.
155 * Sat Sep 04 1999 Gregory McLean <gregm@comstar.net>
156 - Added a build prereq so that rpms get built with documentation ;)
158 * Mon Jul 12 1999 Kjartan Maraas <kmaraas@online.no>
159 - added help and locale files to %files
161 * Tue Jun 22 1999 Vladimir Kondratiev <vkondra@iil.intel.com>
162 - added syntax files to %files
164 * Wed May 26 1999 Cody Russell <bratsche@dfw.net>
165 - chmod cons.saver at $RPM_BUILD_ROOT%{prefix}/lib rather than at
166 $RPM_BUILD_ROOT/usr/lib. We can now install to somewhere other than /usr.
168 * Sun Apr 18 1999 Gregory McLean <gregm@comstar.net>
169 - Updated the specfile, removed some kludges.
171 * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
172 - rebuilt against gnome-libs 0.27 and gtk+-1.1
174 * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
175 - made cons.saver not setuid
177 * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
178 - removed tkmc
180 * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
181 - add /usr/lib/mc/layout to gmc
183 * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
184 - added --without-debug to configure,
185 - modification in %build and %install and cosmetic modification in packages
186 headers,
187 - added %%{PACKAGE_VERSION} macro to Buildroot,
188 - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
189 - removed Packager field.
191 * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
192 - Merged spec file with that from RedHat-5.0 distribution
193 (now a Hurricane-based distribution is needed)
194 - Added patch for RPM script (didn't always work with rpm-2.4.10)
195 - Corrected patch for mcserv init file (chkconfig init levels)
196 - Added more documentation files on termcap, terminfo, xterm
198 * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
200 - Added dependency on portmap
202 * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
204 - fixed spec file.
205 - Updated to 4.1.8
207 * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
209 - updated to 4.1.6
210 - added %attr macros in %files,
211 - a few simplification in %install,
212 - removed glibc patch,
213 - fixed installing /etc/X11/wmconfig/tkmc.
215 * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
217 - updated to 4.1.5
218 - added wmconfig
220 * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
222 - chkconfig is for mcserv package, not mc one
224 * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
226 - patched init script for chkconfig
227 - don't turn on the service by default
229 * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
231 - Converted to new PAM conventions.
232 - Updated to 4.1.3
233 - No longer needs glibc patch.
235 * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
237 - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
238 - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
239 (mcserv needs to be killed before inet)
240 - removed all references to $RPM_SOURCE_DIR
241 - restored $RPM_OPT_FLAGS when compiling
242 - minor cleanup of spec file: redundant directives and comments removed
244 * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
246 - removed all references to non-existent mc.rpmfs
247 - added mcedit.1 to the %files section
248 - reverted to un-gzipped man pages (RedHat style)
249 - removed double install line for mcserv.pamd
251 * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
253 - added new rpmfs script,
254 - removed mcfn_install from mc (adding mc() to bash enviroment is in
255 /etc/profile.d/mc.sh),
256 - /etc/profile.d/mc.sh changed to %config,
257 - removed /usr/lib/mc/bin/create_vcs,
258 - removed /usr/lib/mc/term.
260 * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
262 - changed source url,
263 - fixed link mcedit to mc,
265 * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
267 - new version 3.5.27,
268 - %dir /usr/lib/mc/icons and icons removed from tkmc,
269 - added commented xmc part.
271 * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
273 - FIX spec:
274 - added URL field,
275 - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
276 /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
278 * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
280 - added making packages: tkmc, mcserv (xmc not work yet),
281 - gziped man pages,
282 - added /etc/pamd.d/mcserv PAM config file.
283 - added instaling icons,
284 - added /etc/profile.d/mc.sh,
285 - in %doc added NEWS README,
286 - removed /usr/lib/mc/FAQ,
287 - added mcserv.init script for mcserv (start/stop on level 86).