* gcustom-layout.c, gprefs.c: Make the preferences dialog
[midnight-commander.git] / mc.spec.in
blob333d2f3d95fe36303f040e7497f96cfe218e629d
1 # Note that this is NOT a relocatable package
2 %define ver @VERSION@
3 %define rel 1
4 %define prefix /usr
6 Summary: Midnight Commander visual shell
7 Name: mc
8 Version: %ver
9 Release: %rel
10 Copyright: GPL
11 Group: Shells
12 Source0: ftp://ftp.nuclecu.unam.mx/linux/local/devel/mc-%{PACKAGE_VERSION}.tar.gz
13 URL: http://www.gnome.org/mc/
14 BuildRoot: /var/tmp/mc-%{PACKAGE_VERSION}-root
15 Requires: pam >= 0.59
16 Prereq: /sbin/chkconfig
18 %description
19 Midnight Commander is a visual shell much like a file manager, only with way
20 more features. It is text mode, but also includes mouse support if you are
21 running GPM. Its coolest feature is the ability to ftp, view tar, zip
22 files, and poke into RPMs for specific files. :-)
24 %package -n gmc
25 Summary: Midnight Commander visual shell (GNOME version)
26 Requires: mc >= %{PACKAGE_VERSION}
27 Group: X11/Shells
28 %description -n gmc
29 Midnight Commander is a visual shell much like a file manager, only with
30 way more features. This is the GNOME version. It's coolest feature is the
31 ability to ftp, view tar, zip files and poke into RPMs for specific files.
32 The GNOME version of Midnight Commander is not yet finished though. :-(
34 %package -n mcserv
35 Summary: Midnight Commander file server
36 Group: X11/Shells
37 Requires: portmap
38 %description -n mcserv
39 mcserv is the server program for the Midnight Commander networking file
40 system. It provides access to the host file system to clients running the
41 Midnight file system (currently, only the Midnight Commander file manager).
43 %prep
44 %setup
46 %build
47 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \
48 --prefix=%{prefix} \
49 --with-gnome \
50 --without-debug \
51 --sysconfdir=/etc
53 if [ "$SMP" != "" ]; then
54 (make "MAKE=make -k -j $SMP"; exit 0)
55 make
56 else
57 make
60 %install
61 echo $RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
65 mkdir -p $RPM_BUILD_ROOT/etc/CORBA/servers
67 make prefix=$RPM_BUILD_ROOT%{prefix} install
68 (cd icons; make prefix=$RPM_BUILD_ROOT%{prefix} install_icons)
69 install lib/mcserv.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mcserv
71 install lib/mcserv.pamd $RPM_BUILD_ROOT/etc/pam.d/mcserv
72 install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT/etc/profile.d
74 #musta's kludge
75 install gnome/gmc.gnorba $RPM_BUILD_ROOT/etc/CORBA/servers/gmc.gnorba
78 # clean up this setuid problem for now
79 chmod 755 $RPM_BUILD_ROOT/usr/lib/mc/bin/cons.saver
81 %clean
82 rm -rf $RPM_BUILD_ROOT
84 %post -n mcserv
85 /sbin/chkconfig --add mcserv
87 %postun -n mcserv
88 /sbin/chkconfig --del mcserv
90 %files
91 %defattr(-, root, root)
93 %doc FAQ COPYING NEWS README
94 %{prefix}/bin/mc
95 %{prefix}/bin/mcedit
96 %{prefix}/bin/mcmfmt
97 %{prefix}/lib/mc/mc.ext
98 %{prefix}/lib/mc/mc.hint
99 %{prefix}/lib/mc/mc.hlp
100 %{prefix}/lib/mc/mc.lib
101 %{prefix}/lib/mc/mc.menu
102 %{prefix}/lib/mc/bin/cons.saver
103 %{prefix}/lib/mc/extfs/*
104 %{prefix}/man/man1/*
105 %config /etc/profile.d/*
106 %dir %{prefix}/lib/mc
107 %dir %{prefix}/lib/mc/bin
109 %files -n mcserv
110 %defattr(-, root, root)
112 %config /etc/pam.d/mcserv
113 %config /etc/rc.d/init.d/mcserv
114 %attr(-, root, man) %{prefix}/man/man8/mcserv.8
115 %{prefix}/bin/mcserv
117 %files -n gmc
118 %defattr(-, root, root)
119 %{prefix}/bin/gmc
120 %{prefix}/bin/plain-gmc
121 %{prefix}/lib/mc/layout
122 %{prefix}/lib/mc/mc-gnome.ext
123 %{prefix}/share/pixmaps/mc/*
124 %{prefix}/share/mime-info/mc.keys
125 %config %{prefix}/../etc/CORBA/servers/gmc.gnorba
127 %changelog
128 * Thu Aug 20 1998 Michael Fulbright <msf@redhat.com>
129 - rebuilt against gnome-libs 0.27 and gtk+-1.1
131 * Thu Jul 09 1998 Michael Fulbright <msf@redhat.com>
132 - made cons.saver not setuid
134 * Sun Apr 19 1998 Marc Ewing <marc@redhat.com>
135 - removed tkmc
137 * Wed Apr 8 1998 Marc Ewing <marc@redhat.com>
138 - add /usr/lib/mc/layout to gmc
140 * Tue Dec 23 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
141 - added --without-debug to configure,
142 - modification in %build and %install and cosmetic modification in packages
143 headers,
144 - added %%{PACKAGE_VERSION} macro to Buildroot,
145 - removed "rm -rf $RPM_BUILD_ROOT" from %prep.
146 - removed Packager field.
148 * Thu Dec 18 1997 Michele Marziani <marziani@fe.infn.it>
149 - Merged spec file with that from RedHat-5.0 distribution
150 (now a Hurricane-based distribution is needed)
151 - Added patch for RPM script (didn't always work with rpm-2.4.10)
152 - Corrected patch for mcserv init file (chkconfig init levels)
153 - Added more documentation files on termcap, terminfo, xterm
155 * Thu Oct 30 1997 Michael K. Johnson <johnsonm@redhat.com>
157 - Added dependency on portmap
159 * Wed Oct 29 1997 Michael K. Johnson <johnsonm@redhat.com>
161 - fixed spec file.
162 - Updated to 4.1.8
164 * Sun Oct 26 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
166 - updated to 4.1.6
167 - added %attr macros in %files,
168 - a few simplification in %install,
169 - removed glibc patch,
170 - fixed installing /etc/X11/wmconfig/tkmc.
172 * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
174 - updated to 4.1.5
175 - added wmconfig
177 * Wed Oct 15 1997 Erik Troan <ewt@redhat.com>
179 - chkconfig is for mcserv package, not mc one
181 * Tue Oct 14 1997 Erik Troan <ewt@redhat.com>
183 - patched init script for chkconfig
184 - don't turn on the service by default
186 * Fri Oct 10 1997 Michael K. Johnson <johnsonm@redhat.com>
188 - Converted to new PAM conventions.
189 - Updated to 4.1.3
190 - No longer needs glibc patch.
192 * Thu May 22 1997 Michele Marziani <marziani@fe.infn.it>
194 - added support for mc alias in /etc/profile.d/mc.csh (for csh and tcsh)
195 - lowered number of SysV init scripts in /etc/rc.d/rc[0,1,6].d
196 (mcserv needs to be killed before inet)
197 - removed all references to $RPM_SOURCE_DIR
198 - restored $RPM_OPT_FLAGS when compiling
199 - minor cleanup of spec file: redundant directives and comments removed
201 * Sun May 18 1997 Michele Marziani <marziani@fe.infn.it>
203 - removed all references to non-existent mc.rpmfs
204 - added mcedit.1 to the %files section
205 - reverted to un-gzipped man pages (RedHat style)
206 - removed double install line for mcserv.pamd
208 * Tue May 13 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
210 - added new rpmfs script,
211 - removed mcfn_install from mc (adding mc() to bash enviroment is in
212 /etc/profile.d/mc.sh),
213 - /etc/profile.d/mc.sh changed to %config,
214 - removed /usr/lib/mc/bin/create_vcs,
215 - removed /usr/lib/mc/term.
217 * Wed May 9 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
219 - changed source url,
220 - fixed link mcedit to mc,
222 * Tue May 7 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
224 - new version 3.5.27,
225 - %dir /usr/lib/mc/icons and icons removed from tkmc,
226 - added commented xmc part.
228 * Tue Apr 22 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
230 - FIX spec:
231 - added URL field,
232 - in mc added missing /usr/lib/mc/mc.ext, /usr/lib/mc/mc.hint,
233 /usr/lib/mc/mc.hlp, /usr/lib/mc/mc.lib, /usr/lib/mc/mc.menu.
235 * Fri Apr 18 1997 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
237 - added making packages: tkmc, mcserv (xmc not work yet),
238 - gziped man pages,
239 - added /etc/pamd.d/mcserv PAM config file.
240 - added instaling icons,
241 - added /etc/profile.d/mc.sh,
242 - in %doc added NEWS README,
243 - removed /usr/lib/mc/FAQ,
244 - added mcserv.init script for mcserv (start/stop on level 86).