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