1 | # Note that this is NOT a relocatable package |
---|
2 | %define ver 4.5.54 |
---|
3 | %define rel 0vl4 |
---|
4 | |
---|
5 | Summary: A user-friendly file manager and visual shell. |
---|
6 | Summary(ja): ¥æ¡¼¥¶¡¦¥Õ¥ì¥ó¥É¥ê¡¼¤Ê¥Õ¥¡¥¤¥ë¡¦¥Þ¥Í¡¼¥¸¥ã¤ª¤è¤Ó¥Ó¥¸¥å¥¢¥ë¡¦¥·¥§¥ë |
---|
7 | Name: mc |
---|
8 | Version: %{ver} |
---|
9 | Release: %{rel} |
---|
10 | Copyright: GPL |
---|
11 | Group: System Environment/Shells |
---|
12 | URL: http://www.gnome.org/ |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root |
---|
14 | |
---|
15 | BuildRequires: gpm-devel |
---|
16 | BuildRequires: gnome-libs-devel >= 1.4.2-0vl2 |
---|
17 | |
---|
18 | Requires: pam >= 0.59 |
---|
19 | Requires: vine-logos |
---|
20 | |
---|
21 | Prereq: /sbin/chkconfig |
---|
22 | |
---|
23 | Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{ver}.tar.bz2 |
---|
24 | Source1: gmc-vine.links |
---|
25 | Source2: ldp.xpm |
---|
26 | # Source3: mc-4.5.50.ja.po |
---|
27 | Source4: mc-extraicons.tar.bz2 |
---|
28 | |
---|
29 | Patch0: mc-4.5.35-xtermcolor.patch |
---|
30 | Patch2: mc-4.5.35-fixwarning.patch |
---|
31 | Patch3: mc-4.5.52-mimekeys_vine2.patch |
---|
32 | Patch10: mc-4.5.35-homedir.patch |
---|
33 | Patch17: mc-4.5.52-absoluterm.patch |
---|
34 | Patch22: mc-4.5.43-prototype.patch |
---|
35 | Patch23: mc-4.5.46-system-auth.patch |
---|
36 | Patch25: mc-4.5.51-showagain.patch |
---|
37 | Patch26: mc-4.5.51-stderr.patch |
---|
38 | Patch27: mc-4.5.51-gnome-editor.patch |
---|
39 | Patch28: mc-4.5.51-extention.patch |
---|
40 | # |
---|
41 | Patch41: mc-4.5.51-kudzu.patch |
---|
42 | Patch43: mc-4.5.51-initialdevices.patch |
---|
43 | |
---|
44 | # for Vine |
---|
45 | Patch100: mc-4.5.44-view_fix.patch |
---|
46 | Patch101: mc-4.5.44-kterm.patch |
---|
47 | Patch102: mc-4.5.44-ftpfs.patch |
---|
48 | Patch103: mc-4.5.52-smbfs_url.patch |
---|
49 | Patch104: mc-4.5.54-tempnam.patch |
---|
50 | Patch105: mc-4.5.52-vine_extend-20000619.patch |
---|
51 | Patch106: mc-4.5.52-zsh.patch |
---|
52 | Patch107: mc-4.5.54-newterminal.patch |
---|
53 | |
---|
54 | %description |
---|
55 | Midnight Commander is a visual shell much like a file manager, only |
---|
56 | with many more features. It is a text mode application, but it also |
---|
57 | includes mouse support if you are running GPM. Midnight Commander's |
---|
58 | coolest features are its abilities to FTP, view tar and zip files, and |
---|
59 | to poke into RPMs for specific files. |
---|
60 | |
---|
61 | %description -l ja |
---|
62 | Midnight Commander¤Ïñ¤Ë¿¤¯¤Îµ¡Ç½¤ò»ý¤Ä¡¢¤Þ¤µ¤Ë¥Õ¥¡¥¤¥ë¡¦¥Þ |
---|
63 | ¥Í¡¼¥¸¥ã¤È¤·¤Æ¤Î¥Ó¥¸¥å¥¢¥ë¡¦¥·¥§¥ë¤Ç¤¹¡£¤³¤ì¤Ï¥Æ¥¥¹¥È¡¦¥â¡¼ |
---|
64 | ¥É¤ÇÆ°¤¯¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤¹¤¬¡¢GPM¤òÆ°¤«¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥Þ¥¦¥¹ |
---|
65 | ¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£Midnight Commander¤ÎºÇ¤â¥¯¡¼¥ë¤Êµ¡Ç½¤Ï¡¢ |
---|
66 | FTP¡¢Tar¤ä ZIP¡¢¤ª¤è¤ÓRPMÆâ¤ÎÆÃÄê¤Î¥Õ¥¡¥¤¥ë¤Ø¥¢¥¯¥»¥¹¤Ç¤¤ë¤³ |
---|
67 | ¤È¤Ç¤¹¡£ |
---|
68 | |
---|
69 | %package -n gmc |
---|
70 | Summary: The GNOME version of the Midnight Commander file manager. |
---|
71 | Summary(ja): Midnight Commander¥Õ¥¡¥¤¥ë¡¦¥Þ¥Í¡¼¥¸¥ã¤ÎGNOME¥Ð¡¼¥¸¥ç¥ó |
---|
72 | Requires: mc >= %{PACKAGE_VERSION} |
---|
73 | Group: User Interface/Desktops |
---|
74 | |
---|
75 | %description -n gmc |
---|
76 | GMC (GNU Midnight Commander) is a file manager based on the terminal |
---|
77 | version of Midnight Commander, with the addition of a GNOME GUI |
---|
78 | desktop front-end. GMC can FTP, view TAR and compressed files and look |
---|
79 | into RPMs for specific files. |
---|
80 | |
---|
81 | Install gmc if you're installing GNOME and you'd like to use the |
---|
82 | Midnight Commander file manager with it. |
---|
83 | |
---|
84 | %description -n gmc -l ja |
---|
85 | GMC (GNU Midnight Commander)¤ÏMidnight Commander¤ÎüËö¥Ð¡¼¥¸¥ç |
---|
86 | ¥ó¤ò¥Ù¡¼¥¹¤Ë¡¢GNOME GUI¥Ç¥¹¥¯¥È¥Ã¥×¡¦¥Õ¥í¥ó¥È¥¨¥ó¥É¤òÄɲä·¤¿ |
---|
87 | ¥Õ¥¡¥¤¥ë¥Þ¥Í¡¼¥¸¥ã¤Ç¤¹¡£GMC¤ÏFTP¤ä¡¢TAR¤ä°µ½Ì¥Õ¥¡¥¤¥ë¤ò±ÜÍ÷¤· |
---|
88 | ¤¿¤êRPMÆâ¤ÎÆÃÄê¤Î¥Õ¥¡¥¤¥ë¤òÇÁ¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ |
---|
89 | |
---|
90 | ¤â¤·GNOME¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢Midnight Commander¥Õ¥¡¥¤¥ë¥Þ¥Í¡¼ |
---|
91 | ¥¸¥ã¤ò°ì½ï¤ËÍøÍѤ·¤¿¤¤¾ì¹ç¡¢GMC¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£ |
---|
92 | |
---|
93 | |
---|
94 | %package -n mcserv |
---|
95 | Summary: Server for the Midnight Commander network file management system. |
---|
96 | Summary(ja): Midnight Commander¥Í¥Ã¥È¥ï¡¼¥¯¡¦¥Õ¥¡¥¤¥ë´ÉÍý¥·¥¹¥Æ¥àÍÑ¥µ¡¼¥Ð |
---|
97 | Group: System Environment/Daemons |
---|
98 | Requires: portmap |
---|
99 | |
---|
100 | %description -n mcserv |
---|
101 | The Midnight Commander file management system will allow you to |
---|
102 | manipulate the files on a remote machine as if they were local. This |
---|
103 | is only possible if the remote machine is running the mcserv server |
---|
104 | program. Mcserv provides clients running Midnight Commander with |
---|
105 | access to the host's file systems. |
---|
106 | |
---|
107 | Install mcserv on machines if you want to access their file systems |
---|
108 | remotely using the Midnight Commander file management system. |
---|
109 | |
---|
110 | %description -n mcserv -l ja |
---|
111 | Midnight Commander¥Õ¥¡¥¤¥ë´ÉÍý¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î |
---|
112 | ¥Õ¥¡¥¤¥ë¤ò¥í¡¼¥«¥ë¡¦¥Õ¥¡¥¤¥ë¤Î¤ÈƱÅù¤Î´¶³Ð¤ÇÁàºî¤¹¤ë¤³¤È¤¬¤Ç¤ |
---|
113 | ¤Þ¤¹¡£¤³¤ì¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Çmcserv¥µ¡¼¥Ð¤¬µ¯Æ°¤·¤Æ¤¤¤ëɬÍפ¬ |
---|
114 | ¤¢¤ê¤Þ¤¹¡£Mcserv¤Ï¡¢¥¯¥é¥¤¥¢¥ó¥È¤ÇÆ°¤¤¤Æ¤¤¤ëMidnight Commander |
---|
115 | ¤«¤é¤³¤Î¥Û¥¹¥È¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ø¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¤è¤¦ |
---|
116 | ¤Ë¤·¤Þ¤¹¡£ |
---|
117 | |
---|
118 | ¤â¤·¤³¤Î¥Þ¥·¥ó¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¡¢Midnight Commander¥Õ¥¡¥¤¥ë |
---|
119 | ´ÉÍý¥·¥¹¥Æ¥à¤È¤·¤Æ¥ê¥â¡¼¥È¤«¤é¥¢¥¯¥»¥¹¤Ç¤¤ë¤è¤¦¤Ë¤·¤¿¤¤¾ì¹ç¡¢ |
---|
120 | mcserv¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£ |
---|
121 | |
---|
122 | %prep |
---|
123 | %setup -q |
---|
124 | %patch -p1 -b .xtermcolor |
---|
125 | |
---|
126 | %patch2 -p1 -b .fixwarning |
---|
127 | %patch3 -p1 -b .mimekeys |
---|
128 | |
---|
129 | %patch10 -p1 -b .homedir |
---|
130 | %patch17 -p1 -b .absoluterm |
---|
131 | %patch22 -p1 -b .prototype |
---|
132 | %patch23 -p1 -b .system-auth |
---|
133 | %patch25 -p1 -b .showagain |
---|
134 | %patch26 -p1 -b .stderr |
---|
135 | %patch27 -p1 -b .gnome |
---|
136 | %patch28 -p1 -b .extention |
---|
137 | %patch41 -p1 -b .kudzu |
---|
138 | %patch43 -p1 -b .initialdevices |
---|
139 | |
---|
140 | %patch100 -p1 -b .view_fix |
---|
141 | %patch101 -p1 -b .kterm |
---|
142 | %patch102 -p1 -b .ftpfs |
---|
143 | %patch103 -p1 -b .smbfs_url |
---|
144 | %patch104 -p1 -b .tempnam |
---|
145 | %patch105 -p1 -b .vine_extend |
---|
146 | %patch106 -p1 -b .zsh |
---|
147 | %patch107 -p0 -b .newterminal |
---|
148 | |
---|
149 | %configure \ |
---|
150 | --with-samba \ |
---|
151 | --with-gnome \ |
---|
152 | --without-debug \ |
---|
153 | --with-included-slang |
---|
154 | |
---|
155 | cd vfs/samba |
---|
156 | #CFLAGS="$RPM_OPT_FLAGS" ./configure \ |
---|
157 | # --prefix=%{_prefix} \ |
---|
158 | %configure \ |
---|
159 | --localstatedir=/var/log/samba \ |
---|
160 | --libdir=/etc \ |
---|
161 | --with-privatedir=/etc \ |
---|
162 | --with-lockdir=/var/lock/samba |
---|
163 | cd - |
---|
164 | |
---|
165 | %build |
---|
166 | make |
---|
167 | |
---|
168 | %install |
---|
169 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
170 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig} |
---|
171 | |
---|
172 | %makeinstall |
---|
173 | |
---|
174 | (cd icons; make DESTDIR=$RPM_BUILD_ROOT install_icons) |
---|
175 | install lib/mcserv.init $RPM_BUILD_ROOT%{_initdir}/mcserv |
---|
176 | |
---|
177 | install lib/mcserv.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/mcserv |
---|
178 | install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d |
---|
179 | install lib/mc.global $RPM_BUILD_ROOT%{_sysconfdir} |
---|
180 | |
---|
181 | # clean up this setuid problem for now |
---|
182 | chmod 755 $RPM_BUILD_ROOT/%{_libdir}/mc/bin/cons.saver |
---|
183 | |
---|
184 | # copy vine desktop default icons |
---|
185 | mkdir -p $RPM_BUILD_ROOT/%{_libdir}/desktop-links/ |
---|
186 | install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_libdir}/desktop-links/ |
---|
187 | |
---|
188 | # ldp icon |
---|
189 | install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc |
---|
190 | |
---|
191 | # install home dir and up icons. |
---|
192 | tar zxvf %{SOURCE4} -C $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc |
---|
193 | |
---|
194 | %find_lang %name |
---|
195 | |
---|
196 | %clean |
---|
197 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
198 | |
---|
199 | %post -n mcserv |
---|
200 | /sbin/chkconfig --add mcserv |
---|
201 | |
---|
202 | %preun -n mcserv |
---|
203 | if [ "$1" = "0" ]; |
---|
204 | then |
---|
205 | service mcserv stop > /dev/null 2>&1 |
---|
206 | /sbin/chkconfig --del mcserv |
---|
207 | fi |
---|
208 | |
---|
209 | %postun -n mcserv |
---|
210 | if [ "$1" -ge "1" ]; |
---|
211 | then |
---|
212 | service mcserv restart > /dev/null 2>&1 |
---|
213 | fi |
---|
214 | |
---|
215 | %files -f %{name}.lang |
---|
216 | %defattr(-, root, root) |
---|
217 | |
---|
218 | %doc FAQ COPYING NEWS README |
---|
219 | %doc README.vineextend |
---|
220 | %{_bindir}/mc |
---|
221 | %{_bindir}/mcedit |
---|
222 | %{_bindir}/mcmfmt |
---|
223 | %{_libdir}/mc/mc.ext |
---|
224 | %{_libdir}/mc/mc.hint |
---|
225 | %{_libdir}/mc/mc.hlp |
---|
226 | %{_libdir}/mc/mc.lib |
---|
227 | %{_libdir}/mc/mc.menu |
---|
228 | %{_libdir}/mc/bin/cons.saver |
---|
229 | %{_libdir}/mc/extfs/* |
---|
230 | %{_libdir}/mc/syntax/* |
---|
231 | %{_mandir}/man1/* |
---|
232 | %config %{_sysconfdir}/profile.d/* |
---|
233 | %dir %{_libdir}/mc |
---|
234 | %dir %{_libdir}/mc/bin |
---|
235 | #%{_datadir}/mime-info/* |
---|
236 | |
---|
237 | %files -n mcserv |
---|
238 | %defattr(-, root, root) |
---|
239 | |
---|
240 | %attr(0644, root, root) %config /etc/pam.d/mcserv |
---|
241 | %config %{_initdir}/mcserv |
---|
242 | %attr(-, root, man) %{_mandir}/man8/mcserv* |
---|
243 | %{_bindir}/mcserv |
---|
244 | |
---|
245 | %files -n gmc |
---|
246 | %defattr(-, root, root) |
---|
247 | |
---|
248 | %doc lib/README.desktop |
---|
249 | %config %{_sysconfdir}/mc.global |
---|
250 | %{_bindir}/gmc |
---|
251 | %{_bindir}/gmc-client |
---|
252 | %{_bindir}/plain-gmc |
---|
253 | %{_libdir}/mc/layout |
---|
254 | %{_datadir}/pixmaps/mc/* |
---|
255 | %{_datadir}/mime-info/mc.keys |
---|
256 | %{_datadir}/idl/*.idl |
---|
257 | |
---|
258 | %config %{_sysconfdir}/CORBA/servers/* |
---|
259 | %config %{_libdir}/desktop-links/* |
---|
260 | |
---|
261 | %changelog |
---|
262 | * Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl4 |
---|
263 | - rebuilt with db4-4.2.52 |
---|
264 | |
---|
265 | * Sun Jul 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.54-0vl3 |
---|
266 | - merged with Vine26 package. |
---|
267 | * Wed Nov 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.54-0vl2 |
---|
268 | - add Patch107 to fix open_new_terminal on desktop |
---|
269 | |
---|
270 | * Wed Jan 15 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl2 |
---|
271 | - rebuilt against gnome-libs-1.4.2-0vl2 (for db1/db4 matters) |
---|
272 | - modified Patch104 to meet glibc-devel >= 2.2.x |
---|
273 | |
---|
274 | * Tue May 8 2001 Akira TAGOH <tagoh@gnome.gr.jp> 4.5.54-0vl1 |
---|
275 | - New upstream release. |
---|
276 | |
---|
277 | * Fri Mar 23 2001 Akira TAGOH <tagoh@gnome.gr.jp> 4.5.52-0vl1 |
---|
278 | - New upstream release. |
---|
279 | - Use rpmmacros. |
---|
280 | - Added some RH bug fix patch. |
---|
281 | |
---|
282 | * Sun Dec 24 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
283 | - 4.5.50-0vl4 |
---|
284 | - rebuilt with ncurses5 |
---|
285 | - use better macros |
---|
286 | |
---|
287 | * Thu Oct 12 2000 Yoshihiro Kajiki <kajiki@ylug.org> [0vl3] |
---|
288 | - add 8bit_clean patch to view/edit Japanese chars |
---|
289 | |
---|
290 | * Fri Jun 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
291 | - clean up vine-extend patch. |
---|
292 | - modified ja.po for 4.5.50 |
---|
293 | |
---|
294 | * Fri Jun 9 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
295 | - modified vine-extend patch about icon layout. |
---|
296 | |
---|
297 | * Wed Jun 7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
298 | - updated to 4.5.50 |
---|
299 | |
---|
300 | * Tue May 23 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
301 | - updated to 4.5.46 |
---|
302 | |
---|
303 | * Wed May 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
304 | - fixed vine-extend patch for some stability. |
---|
305 | |
---|
306 | * Sat Apr 22 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
307 | - fixed vine-extend patch for timer initialization for busy coursor. |
---|
308 | |
---|
309 | * Wed Apr 19 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
310 | - modified tempnam patch for stability. |
---|
311 | |
---|
312 | * Mon Apr 17 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
313 | - modified vine_extend patch to fix URL DnD action again, sorry... |
---|
314 | |
---|
315 | * Sat Apr 15 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
316 | - modified vine_extend patch to fix URL DnD action and clean up a little. |
---|
317 | - added the special up directory pixmap. |
---|
318 | - added ftpfs patch to reconnecte after idle timeout. |
---|
319 | - added --with-smbfs option to configure. |
---|
320 | |
---|
321 | * Tue Apr 11 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
322 | - modified vine_extend patch to snap and aoto-put icons to better position. |
---|
323 | - added gme-client for Gnome 1.1.x |
---|
324 | |
---|
325 | * Sat Apr 8 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
326 | - modified vine_extend patch to customize desktop icon appearance and fix dnd. |
---|
327 | - added the special home directory pixmap. |
---|
328 | |
---|
329 | * Thu Apr 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
330 | - updated to 4.5.44 |
---|
331 | - removed kondara's patch |
---|
332 | - add fixsh patch from RH6.2 |
---|
333 | - add kterm and vine_extend and view_fix patch instead of kondara's patch. |
---|
334 | |
---|
335 | * Wed Feb 23 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
336 | - added absoluterm.patch from RH6.2beta SRPM. |
---|
337 | - added japo patch |
---|
338 | |
---|
339 | * Tue Dec 21 1999 Jun Nishii <jun@vinelinux.org> |
---|
340 | - merge kondara patch, thanks kondara |
---|
341 | |
---|
342 | * Wed Dec 8 1999 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp> |
---|
343 | - updated to 4.5.42 |
---|
344 | |
---|
345 | * Sat Sep 18 1999 Kazuhito Nishi <nishi@imasy.or.jp> |
---|
346 | - First try at a spec file for Vine |
---|
347 | |
---|