Репозиторий Sisyphus
Последнее обновление: 28 ноября 2022 | Пакетов: 17931 | Посещений: 25412229
en ru br
Репозитории ALT
S:4.8.28-alt1
5.1: 4.8.11-alt0.M51.1
4.1: 4.6.2-alt7.pre1
4.0: 4.6.1r-alt9
3.0: 4.6.1r-alt3
www.altlinux.org/Changes

Группа :: Работа с файлами
Пакет: mc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: mc
Version: 4.8.11
Release: alt0.M51.1

License: %gpl3plus
Summary: An user-friendly file manager and visual shell
Group: File tools
Url: http://midnight-commander.org/

Source0: %name-%version.tar
Source1: synce-mcfs.tar
Source2: mc-dnlike.color
Source3: mc-dark.color
Source4: mc-16.png
Source5: mc-32.png
Source6: mc.zsh

%add_findreq_skiplist */lib/mc/ext.d/*
%add_findreq_skiplist */lib/mc/extfs.d/*

Patch0: %name-%version-%release.patch

Patch1: mc-4.7.5-alt-wrapper.patch
Patch2: mc-4.7.5.1-alt-defaults.patch
Patch3: mc-4.7.0.2-alt-menu.patch

# Misc


# a part of http://www.midnight-commander.org/ticket/1480

Patch101: mc-4.7.0.2-savannah-edit-homekey.patch

# http://www.midnight-commander.org/ticket/2496

Patch102: mc-4.8.8-alt-forceexec.patch

# http://www.midnight-commander.org/ticket/34

Patch103: mc-4.8.6-alt-extfs-udar.patch

BuildRequires(pre): rpm-build-licenses

Conflicts: %name-data
Conflicts: %name-locales
Conflicts: %name-doc

Obsoletes: %name-data
Obsoletes: %name-locales
Obsoletes: %name-doc

Obsoletes: mc47

BuildPreReq: glib2-devel libe2fs-devel libgpm-devel
BuildPreReq: groff-base cvs libX11-devel unzip
BuildPreReq: libslang2-devel

%add_findreq_skiplist %_sysconfdir/mc/edit.indent.rc
%add_findreq_skiplist %_sysconfdir/mc/edit.spell.rc
%add_findreq_skiplist %_libexecdir/mc/extfs.d/*

# Polish translations (*.pl) recognized as Perl code

%add_findreq_skiplist %_datadir/mc/mc.hlp*
%add_findreq_skiplist %_datadir/mc/mc.hint*

%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 full
Summary: Meta package for install Midnight Commander with all needed.
Group: File tools
BuildArch: noarch
Obsoletes: %name-complete
Requires: %name
Requires: cdrkit-utils

%description full
This package pulls Midnight Commander with all packages which can be
needed for working all components (some vfs for example)

%prep
%setup -a1
%patch0 -p1

# ALT

%patch1 -p1
%patch2 -p1
%patch3 -p1

# Misc

#patch101 -p1
%patch102 -p1
%patch103 -p1

cat <<EOF > version.h
#ifndef MC_CURRENT_VERSION
#define MC_CURRENT_VERSION " at  at VERSION at  at "
#endif
EOF

subst 's| at  at VERSION at  at |%version-%release|' version.h

#%%autoreconf

./autogen.sh

%build
%configure \
--enable-extcharset \
--enable-vfs-undelfs

%make_build

%install
%makeinstall_std

install -d %buildroot%_sysconfdir/{profile.d,bashrc.d}
mv %buildroot%_libexecdir/mc/mc.csh %buildroot%_sysconfdir/profile.d/
mv %buildroot%_libexecdir/mc/mc.sh %buildroot%_sysconfdir/bashrc.d/
#install -m755 %SOURCE6 %buildroot%_sysconfdir/profile.d/mc.sh
# Install DosNavigator color scheme
install -m644 %SOURCE2 .
# Install Dark color scheme
install -m644 %SOURCE3 .

# Install SynCE VFS ( http://www.midnight-commander.org/ticket/2905 )

install -m755 synce-mcfs/src/synce* %buildroot%_libexecdir/%name/extfs.d/

# .desktop

cat <<__EOF__>%name.desktop
[Desktop Entry]
Type=Application
Name=Midnight Commander
Comment=Visual shell and file manager
Icon=%name
Exec=%name
Terminal=true
Categories=ConsoleOnly;System;FileTools;FileManager;
__EOF__
install -pD -m644 %name.desktop %buildroot%_desktopdir/%name.desktop

# icons

install -pD -m644 %SOURCE4 %buildroot%_miconsdir/%name.png
install -pD -m644 %SOURCE5 %buildroot%_niconsdir/%name.png

%find_lang --with-man %name

%files -f %name.lang
%_bindir/mc
%_bindir/mcedit
%_bindir/mcview
%_bindir/mcdiff
%_libexecdir/mc/
%config(noreplace) %_sysconfdir/bashrc.d/*
%config(noreplace) %_sysconfdir/profile.d/*
%dir %_sysconfdir/mc
%config(noreplace) %_sysconfdir/mc/*edit*
%config(noreplace) %_sysconfdir/mc/filehighlight.ini
%config(noreplace) %_sysconfdir/mc/mc.ext
%config(noreplace) %_sysconfdir/mc/mc.keymap
%config(noreplace) %_sysconfdir/mc/mc.default.keymap
%config(noreplace) %_sysconfdir/mc/mc.emacs.keymap
%config(noreplace) %_sysconfdir/mc/mc.menu
%config(noreplace) %_sysconfdir/mc/mc.menu.sr
%config(noreplace) %_sysconfdir/mc/sfs.ini

%_man1dir/*

%_datadir/mc/
%_desktopdir/%name.desktop
%_niconsdir/%name.png
%_miconsdir/%name.png

%doc AUTHORS doc/FAQ doc/HACKING doc/MAINTAINERS doc/NEWS doc/README
%doc doc/README.QNX doc/TODO doc/filehighlight.txt contrib/README.xterm
%doc mc-dnlike.color mc-dark.color

%files full

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin