|
@@ -1,55 +1,31 @@
|
|
# Note that this is NOT a relocatable package
|
|
# Note that this is NOT a relocatable package
|
|
-%define ver 4.5.54
|
|
+%define ver 4.7.4
|
|
-%define rel 0vl4
|
|
+%define rel 1%{?_dist_release}
|
|
|
|
|
|
Summary: A user-friendly file manager and visual shell.
|
|
Summary: A user-friendly file manager and visual shell.
|
|
-Summary(ja): 交□扒’白伊件玉伉□卅白央奶伙’穴生□斥乓云方太申斥亙失伙’扑尼伙
|
|
+Summary(ja): �艾��嗚��𨰻��喋��芥��芥��~��怒��𠺶��潦��������瓐��乓��怒��瑯���
|
|
Name: mc
|
|
Name: mc
|
|
Version: %{ver}
|
|
Version: %{ver}
|
|
Release: %{rel}
|
|
Release: %{rel}
|
|
-Copyright: GPL
|
|
+LICENSE: GPL
|
|
Group: System Environment/Shells
|
|
Group: System Environment/Shells
|
|
-URL: http://www.gnome.org/
|
|
+URL: http://www.midnight-commander.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
|
|
|
|
|
|
|
|
+BuildRequires: bison
|
|
|
|
+BuildRequires: glib2-devel
|
|
|
|
+BuildRequires: slang-devel
|
|
|
|
+BuildRequires: libX11-devel
|
|
BuildRequires: gpm-devel
|
|
BuildRequires: gpm-devel
|
|
-BuildRequires: gnome-libs-devel >= 1.4.2-0vl2
|
|
+BuildRequires: groff
|
|
-
|
|
+
|
|
-Requires: pam >= 0.59
|
|
+Source0: http://www.midnight-commander.org/downloads/%{name}-%{ver}.tar.bz2
|
|
-Requires: vine-logos
|
|
+
|
|
-
|
|
+# patch from fedora
|
|
-Prereq: /sbin/chkconfig
|
|
+Patch0: mc-mcviewsegfault.patch
|
|
-
|
|
+
|
|
-Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/%{name}/%{name}-%{ver}.tar.bz2
|
|
+Obsoletes: mcserv < 4.7.4
|
|
-Source1: gmc-vine.links
|
|
+Obsoletes: gmc < 4.7.4
|
|
-Source2: ldp.xpm
|
|
|
|
-# Source3: mc-4.5.50.ja.po
|
|
|
|
-Source4: mc-extraicons.tar.bz2
|
|
|
|
-
|
|
|
|
-Patch0: mc-4.5.35-xtermcolor.patch
|
|
|
|
-Patch2: mc-4.5.35-fixwarning.patch
|
|
|
|
-Patch3: mc-4.5.52-mimekeys_vine2.patch
|
|
|
|
-Patch10: mc-4.5.35-homedir.patch
|
|
|
|
-Patch17: mc-4.5.52-absoluterm.patch
|
|
|
|
-Patch22: mc-4.5.43-prototype.patch
|
|
|
|
-Patch23: mc-4.5.46-system-auth.patch
|
|
|
|
-Patch25: mc-4.5.51-showagain.patch
|
|
|
|
-Patch26: mc-4.5.51-stderr.patch
|
|
|
|
-Patch27: mc-4.5.51-gnome-editor.patch
|
|
|
|
-Patch28: mc-4.5.51-extention.patch
|
|
|
|
-#
|
|
|
|
-Patch41: mc-4.5.51-kudzu.patch
|
|
|
|
-Patch43: mc-4.5.51-initialdevices.patch
|
|
|
|
-
|
|
|
|
-# for Vine
|
|
|
|
-Patch100: mc-4.5.44-view_fix.patch
|
|
|
|
-Patch101: mc-4.5.44-kterm.patch
|
|
|
|
-Patch102: mc-4.5.44-ftpfs.patch
|
|
|
|
-Patch103: mc-4.5.52-smbfs_url.patch
|
|
|
|
-Patch104: mc-4.5.54-tempnam.patch
|
|
|
|
-Patch105: mc-4.5.52-vine_extend-20000619.patch
|
|
|
|
-Patch106: mc-4.5.52-zsh.patch
|
|
|
|
-Patch107: mc-4.5.54-newterminal.patch
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
Midnight Commander is a visual shell much like a file manager, only
|
|
Midnight Commander is a visual shell much like a file manager, only
|
|
@@ -59,110 +35,24 @@ coolest features are its abilities to FTP, view tar and zip files, and
|
|
to poke into RPMs for specific files.
|
|
to poke into RPMs for specific files.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-Midnight Commander反簽卞聶仁及窗チ毛儅勾﹜引今卞白央奶伙’穴
|
|
+Midnight Commander�臬��怠��譌�璈蠘��埝��扎����𨰻��𨰻��扎��颯�
|
|
-生□斥乓午仄化及申斥亙失伙’扑尼伙匹允﹝仇木反氾平旦玄’乒□
|
|
+�溻��詻��具��艾��瓐��乓��怒��瑯��怒��踺����䎚�����嫘��颯���
|
|
-玉匹⑹仁失皿伉弗□扑亦件匹允互﹜GPM毛⑹井仄化中月樺寧﹜穴它旦
|
|
+�剹��𨰻��U��芥��潦��扼��扼��䎚��PM�鍦��卝��艾��见聦������艾�
|
|
-手扔禾□玄仄化中引允﹝Midnight Commander及瘉手弁□伙卅窗チ反﹜
|
|
+����腈�����艾��整���idnight Commander�格�����潦��芣��賬���
|
|
-FTP﹜Tar支 ZIP﹜云方太RPM〇及冂爛及白央奶伙尺失弁本旦匹五月仇
|
|
+FTP��ar�� ZIP������RPM����孵��柴��~��怒��U��颯��扼��卝�
|
|
-午匹允﹝
|
|
+�具��踺��
|
|
-
|
|
|
|
-%package -n gmc
|
|
|
|
-Summary: The GNOME version of the Midnight Commander file manager.
|
|
|
|
-Summary(ja): Midnight Commander白央奶伙’穴生□斥乓及GNOME田□斥亦件
|
|
|
|
-Requires: mc >= %{PACKAGE_VERSION}
|
|
|
|
-Group: User Interface/Desktops
|
|
|
|
-
|
|
|
|
-%description -n gmc
|
|
|
|
-GMC (GNU Midnight Commander) is a file manager based on the terminal
|
|
|
|
-version of Midnight Commander, with the addition of a GNOME GUI
|
|
|
|
-desktop front-end. GMC can FTP, view TAR and compressed files and look
|
|
|
|
-into RPMs for specific files.
|
|
|
|
-
|
|
|
|
-Install gmc if you're installing GNOME and you'd like to use the
|
|
|
|
-Midnight Commander file manager with it.
|
|
|
|
-
|
|
|
|
-%description -n gmc -l ja
|
|
|
|
-GMC (GNU Midnight Commander)反Midnight Commander及羹坱田□斥亦
|
|
|
|
-件毛矛□旦卞﹜GNOME GUI犯旦弁玄永皿’白伕件玄巨件玉毛馨笛仄凶
|
|
|
|
-白央奶伙穴生□斥乓匹允﹝GMC反FTP支﹜TAR支做諒白央奶伙毛旌厖仄
|
|
|
|
-凶曰RPM〇及冂爛及白央奶伙毛ヅ仁仇午互匹五引允﹝
|
|
|
|
-
|
|
|
|
-手仄GNOME毛奶件旦玄□伙仄化﹜Midnight Commander白央奶伙穴生□
|
|
|
|
-斥乓毛域踝卞厙迕仄凶中樺寧﹜GMC毛奶件旦玄□伙仄化仁分今中﹝
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-%package -n mcserv
|
|
|
|
-Summary: Server for the Midnight Commander network file management system.
|
|
|
|
-Summary(ja): Midnight Commander生永玄伐□弁’白央奶伙棟咥扑旦氾丞迕扔□田
|
|
|
|
-Group: System Environment/Daemons
|
|
|
|
-Requires: portmap
|
|
|
|
-
|
|
|
|
-%description -n mcserv
|
|
|
|
-The Midnight Commander file management system will allow you to
|
|
|
|
-manipulate the files on a remote machine as if they were local. This
|
|
|
|
-is only possible if the remote machine is running the mcserv server
|
|
|
|
-program. Mcserv provides clients running Midnight Commander with
|
|
|
|
-access to the host's file systems.
|
|
|
|
-
|
|
|
|
-Install mcserv on machines if you want to access their file systems
|
|
|
|
-remotely using the Midnight Commander file management system.
|
|
|
|
-
|
|
|
|
-%description -n mcserv -l ja
|
|
|
|
-Midnight Commander白央奶伙棟咥扑旦氾丞匹反﹜伉乒□玄穴扑件曉及
|
|
|
|
-白央奶伙毛伕□市伙’白央奶伙及午⑺羈及普創匹醜綜允月仇午互匹五
|
|
|
|
-引允﹝仇木反伉乒□玄穴扑件曉匹mcserv扔□田互粟⑹仄化中月优邰互
|
|
|
|
-丐曰引允﹝Mcserv反﹜弁仿奶失件玄匹⑹中化中月Midnight Commander
|
|
|
|
-井日仇及石旦玄及白央奶伙扑旦氾丞尺失弁本旦允月仇午互匹五月方丹
|
|
|
|
-卞仄引允﹝
|
|
|
|
-
|
|
|
|
-手仄仇及穴扑件及白央奶伙扑旦氾丞毛﹜Midnight Commander白央奶伙
|
|
|
|
-棟咥扑旦氾丞午仄化伉乒□玄井日失弁本旦匹五月方丹卞仄凶中樺寧﹜
|
|
|
|
-mcserv毛奶件旦玄□伙仄化仁分今中﹝
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch -p1 -b .xtermcolor
|
|
+%patch0 -p1 -b .segfault
|
|
-
|
|
|
|
-%patch2 -p1 -b .fixwarning
|
|
|
|
-%patch3 -p1 -b .mimekeys
|
|
|
|
-
|
|
|
|
-%patch10 -p1 -b .homedir
|
|
|
|
-%patch17 -p1 -b .absoluterm
|
|
|
|
-%patch22 -p1 -b .prototype
|
|
|
|
-%patch23 -p1 -b .system-auth
|
|
|
|
-%patch25 -p1 -b .showagain
|
|
|
|
-%patch26 -p1 -b .stderr
|
|
|
|
-%patch27 -p1 -b .gnome
|
|
|
|
-%patch28 -p1 -b .extention
|
|
|
|
-%patch41 -p1 -b .kudzu
|
|
|
|
-%patch43 -p1 -b .initialdevices
|
|
|
|
-
|
|
|
|
-%patch100 -p1 -b .view_fix
|
|
|
|
-%patch101 -p1 -b .kterm
|
|
|
|
-%patch102 -p1 -b .ftpfs
|
|
|
|
-%patch103 -p1 -b .smbfs_url
|
|
|
|
-%patch104 -p1 -b .tempnam
|
|
|
|
-%patch105 -p1 -b .vine_extend
|
|
|
|
-%patch106 -p1 -b .zsh
|
|
|
|
-%patch107 -p0 -b .newterminal
|
|
|
|
|
|
|
|
|
|
+%build
|
|
%configure \
|
|
%configure \
|
|
--with-samba \
|
|
--with-samba \
|
|
--with-gnome \
|
|
--with-gnome \
|
|
--without-debug \
|
|
--without-debug \
|
|
--with-included-slang
|
|
--with-included-slang
|
|
|
|
|
|
-cd vfs/samba
|
|
|
|
-#CFLAGS="$RPM_OPT_FLAGS" ./configure \
|
|
|
|
-# --prefix=%{_prefix} \
|
|
|
|
-%configure \
|
|
|
|
- --localstatedir=/var/log/samba \
|
|
|
|
- --libdir=/etc \
|
|
|
|
- --with-privatedir=/etc \
|
|
|
|
- --with-lockdir=/var/lock/samba
|
|
|
|
-cd -
|
|
|
|
-
|
|
|
|
-%build
|
|
|
|
make
|
|
make
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -170,95 +60,46 @@ make
|
|
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
|
|
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,profile.d,X11/wmconfig}
|
|
|
|
|
|
%makeinstall
|
|
%makeinstall
|
|
-
|
|
+install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
-(cd icons; make DESTDIR=$RPM_BUILD_ROOT install_icons)
|
|
+install contrib/mc.*sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
-install lib/mcserv.init $RPM_BUILD_ROOT%{_initdir}/mcserv
|
|
|
|
-
|
|
|
|
-install lib/mcserv.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/mcserv
|
|
|
|
-install lib/{mc.sh,mc.csh} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
|
-install lib/mc.global $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
|
-
|
|
|
|
-# clean up this setuid problem for now
|
|
|
|
-chmod 755 $RPM_BUILD_ROOT/%{_libdir}/mc/bin/cons.saver
|
|
|
|
-
|
|
|
|
-# copy vine desktop default icons
|
|
|
|
-mkdir -p $RPM_BUILD_ROOT/%{_libdir}/desktop-links/
|
|
|
|
-install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_libdir}/desktop-links/
|
|
|
|
-
|
|
|
|
-# ldp icon
|
|
|
|
-install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc
|
|
|
|
-
|
|
|
|
-# install home dir and up icons.
|
|
|
|
-tar zxvf %{SOURCE4} -C $RPM_BUILD_ROOT/%{_datadir}/pixmaps/mc
|
|
|
|
|
|
|
|
%find_lang %name
|
|
%find_lang %name
|
|
|
|
|
|
%clean
|
|
%clean
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -n mcserv
|
|
|
|
-/sbin/chkconfig --add mcserv
|
|
|
|
-
|
|
|
|
-%preun -n mcserv
|
|
|
|
-if [ "$1" = "0" ];
|
|
|
|
-then
|
|
|
|
- service mcserv stop > /dev/null 2>&1
|
|
|
|
- /sbin/chkconfig --del mcserv
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-%postun -n mcserv
|
|
|
|
-if [ "$1" -ge "1" ];
|
|
|
|
-then
|
|
|
|
- service mcserv restart > /dev/null 2>&1
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
|
|
|
|
-%doc FAQ COPYING NEWS README
|
|
+%doc COPYING NEWS README
|
|
-%doc README.vineextend
|
|
|
|
%{_bindir}/mc
|
|
%{_bindir}/mc
|
|
%{_bindir}/mcedit
|
|
%{_bindir}/mcedit
|
|
%{_bindir}/mcmfmt
|
|
%{_bindir}/mcmfmt
|
|
-%{_libdir}/mc/mc.ext
|
|
+%{_bindir}/mcdiff
|
|
-%{_libdir}/mc/mc.hint
|
|
+%{_bindir}/mcview
|
|
-%{_libdir}/mc/mc.hlp
|
|
|
|
-%{_libdir}/mc/mc.lib
|
|
|
|
-%{_libdir}/mc/mc.menu
|
|
|
|
-%{_libdir}/mc/bin/cons.saver
|
|
|
|
-%{_libdir}/mc/extfs/*
|
|
|
|
-%{_libdir}/mc/syntax/*
|
|
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man1/*
|
|
-%config %{_sysconfdir}/profile.d/*
|
|
+%{_libexecdir}/mc/*
|
|
-%dir %{_libdir}/mc
|
|
+%{_datadir}/mc/*
|
|
-%dir %{_libdir}/mc/bin
|
|
+%{_sysconfdir}/profile.d/*
|
|
-#%{_datadir}/mime-info/*
|
|
+%config %{_sysconfdir}/mc/Syntax
|
|
-
|
|
+%config %{_sysconfdir}/mc/mc.charsets
|
|
-%files -n mcserv
|
|
+%config %{_sysconfdir}/mc/mc.lib
|
|
-%defattr(-, root, root)
|
|
+%config(noreplace) %{_sysconfdir}/mc/mc.ext
|
|
-
|
|
+%config(noreplace) %{_sysconfdir}/mc/*edit*
|
|
-%attr(0644, root, root) %config /etc/pam.d/mcserv
|
|
+%config(noreplace) %{_sysconfdir}/mc/mc.keymap*
|
|
-%config %{_initdir}/mcserv
|
|
+%config(noreplace) %{_sysconfdir}/mc/mc.menu*
|
|
-%attr(-, root, man) %{_mandir}/man8/mcserv*
|
|
+%config(noreplace) %{_sysconfdir}/mc/*.ini
|
|
-%{_bindir}/mcserv
|
|
|
|
-
|
|
|
|
-%files -n gmc
|
|
|
|
-%defattr(-, root, root)
|
|
|
|
-
|
|
|
|
-%doc lib/README.desktop
|
|
|
|
-%config %{_sysconfdir}/mc.global
|
|
|
|
-%{_bindir}/gmc
|
|
|
|
-%{_bindir}/gmc-client
|
|
|
|
-%{_bindir}/plain-gmc
|
|
|
|
-%{_libdir}/mc/layout
|
|
|
|
-%{_datadir}/pixmaps/mc/*
|
|
|
|
-%{_datadir}/mime-info/mc.keys
|
|
|
|
-%{_datadir}/idl/*.idl
|
|
|
|
-
|
|
|
|
-%config %{_sysconfdir}/CORBA/servers/*
|
|
|
|
-%config %{_libdir}/desktop-links/*
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Nov 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.4-1
|
|
|
|
+- new upstream release
|
|
|
|
+- fix all BuildRequires and Requires
|
|
|
|
+- fix URL
|
|
|
|
+- remove all old patches
|
|
|
|
+- add Patch0(mc-mcviewsegfault.patch)
|
|
|
|
+- remove mcserv and gmc package
|
|
|
|
+- fix %install and %files
|
|
|
|
+
|
|
* Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl4
|
|
* Wed Oct 13 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.5.54-0vl4
|
|
- rebuilt with db4-4.2.52
|
|
- rebuilt with db4-4.2.52
|
|
|
|
|