Revert to slang per BZ 1442842, FESCO #1703.
This commit is contained in:
parent
589373c36d
commit
3635e44fcc
67
mc.spec
67
mc.spec
@ -1,10 +1,11 @@
|
|||||||
|
%bcond_without slang
|
||||||
|
|
||||||
Summary: User-friendly text console file manager and visual shell
|
Summary: User-friendly text console file manager and visual shell
|
||||||
Name: mc
|
Name: mc
|
||||||
Version: 4.8.19
|
Version: 4.8.19
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Shells
|
|
||||||
URL: http://www.midnight-commander.org/
|
URL: http://www.midnight-commander.org/
|
||||||
Source0: http://www.midnight-commander.org/downloads/mc-%{version}.tar.xz
|
Source0: http://www.midnight-commander.org/downloads/mc-%{version}.tar.xz
|
||||||
# Downstream-only patch to make mc use /var/tmp for large temporary
|
# Downstream-only patch to make mc use /var/tmp for large temporary
|
||||||
@ -16,16 +17,15 @@ BuildRequires: glib2-devel
|
|||||||
BuildRequires: gpm-devel
|
BuildRequires: gpm-devel
|
||||||
BuildRequires: groff-base
|
BuildRequires: groff-base
|
||||||
BuildRequires: libssh2-devel >= 1.2.5
|
BuildRequires: libssh2-devel >= 1.2.5
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: %{?with_slang:slang-devel}%{!?with_slang:slang-devel}
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
%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 with
|
||||||
with many more features. It is a text mode application, but it also
|
many more features. It is a text mode application, but it also includes
|
||||||
includes mouse support. Midnight Commander's best features are its
|
mouse support. Midnight Commander's best features are its ability to FTP,
|
||||||
ability to FTP, view tar and zip files, and to poke into RPMs for
|
view tar and zip files, and to poke into RPMs for specific files.
|
||||||
specific files.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p0
|
%autosetup -p0
|
||||||
@ -45,49 +45,54 @@ specific files.
|
|||||||
--enable-vfs-sftp \
|
--enable-vfs-sftp \
|
||||||
--enable-vfs-smb \
|
--enable-vfs-smb \
|
||||||
--enable-vfs-tar \
|
--enable-vfs-tar \
|
||||||
--without-x \
|
--with-x \
|
||||||
--with-gpm-mouse \
|
--with-gpm-mouse \
|
||||||
--with-screen=ncurses \
|
--with-screen=%{?with_slang:slang}%{!?with_slang:ncurses} \
|
||||||
%{nil}
|
%{nil}
|
||||||
%{make_build}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -d %{buildroot}%{_sysconfdir}/profile.d
|
||||||
|
|
||||||
%{make_install}
|
%{make_install}
|
||||||
|
|
||||||
install contrib/mc.{sh,csh} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install contrib/mc.{sh,csh} %{buildroot}%{_sysconfdir}/profile.d
|
||||||
|
|
||||||
%find_lang %{name} --with-man
|
%find_lang %{name} --with-man
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-, root, root)
|
%license doc/COPYING
|
||||||
%doc doc/FAQ doc/COPYING doc/NEWS doc/README
|
%doc doc/FAQ doc/NEWS doc/README
|
||||||
%{_bindir}/mc
|
/etc/profile.d/*
|
||||||
%{_bindir}/mcedit
|
%dir %{_sysconfdir}/mc
|
||||||
%{_bindir}/mcview
|
|
||||||
%{_bindir}/mcdiff
|
|
||||||
%{_datadir}/mc/*
|
|
||||||
%attr(711, root, root) %{_libexecdir}/mc/cons.saver
|
|
||||||
%{_libexecdir}/mc/mc*
|
|
||||||
%{_libexecdir}/mc/extfs.d/*
|
|
||||||
%{_libexecdir}/mc/ext.d/*
|
|
||||||
%{_libexecdir}/mc/fish/*
|
|
||||||
%{_mandir}/man1/*
|
|
||||||
%{_sysconfdir}/profile.d/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/mc/mc.ext
|
%config(noreplace) %{_sysconfdir}/mc/mc.ext
|
||||||
%config(noreplace) %{_sysconfdir}/mc/*edit*
|
%config(noreplace) %{_sysconfdir}/mc/*edit*
|
||||||
%config(noreplace) %{_sysconfdir}/mc/mc*.keymap
|
%config(noreplace) %{_sysconfdir}/mc/mc*.keymap
|
||||||
%config(noreplace) %{_sysconfdir}/mc/mc.menu*
|
%config(noreplace) %{_sysconfdir}/mc/mc.menu*
|
||||||
%config(noreplace) %{_sysconfdir}/mc/*.ini
|
%config(noreplace) %{_sysconfdir}/mc/*.ini
|
||||||
%dir %{_datadir}/mc
|
%{_bindir}/*
|
||||||
%dir %{_sysconfdir}/mc
|
|
||||||
%dir %{_libexecdir}/mc
|
%dir %{_libexecdir}/mc
|
||||||
%dir %{_libexecdir}/mc/fish
|
%attr(755,root,root) %{_libexecdir}/mc/cons.saver
|
||||||
%dir %{_libexecdir}/mc/extfs.d
|
%{_libexecdir}/mc/mc*
|
||||||
%dir %{_libexecdir}/mc/ext.d
|
%{_libexecdir}/mc/extfs.d
|
||||||
|
%{_libexecdir}/mc/ext.d
|
||||||
|
%{_libexecdir}/mc/fish
|
||||||
|
%{_datadir}/mc
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 04 2017 Tomasz Kłoczko <kloczek@fedoraproject.org> - 1:4.8.19-2
|
||||||
|
- go back to slang as it is serious issue with shift-f6 when ncurses is used
|
||||||
|
displaying "Delete" instead "Move As" dialog (#1436394)
|
||||||
|
- added slang %%bcond to simplify experiments with switching to ncurses
|
||||||
|
- reformat %%description to 80 cols
|
||||||
|
- really remove Group
|
||||||
|
- %%defattr() is no longer needed
|
||||||
|
- simplifications in %%files
|
||||||
|
- use %%{buildroot} macro
|
||||||
|
- build --with-x (it does not add X11 libraries dependencies)
|
||||||
|
- cons.saver no longer need to be 711 (changed to 755)
|
||||||
|
|
||||||
* Mon Mar 27 2017 Tomasz Kłoczko <kloczek@fedoraproject.org> - 1:4.8.19-1
|
* Mon Mar 27 2017 Tomasz Kłoczko <kloczek@fedoraproject.org> - 1:4.8.19-1
|
||||||
- updated to 4.8.19
|
- updated to 4.8.19
|
||||||
- drop use slang and use ncurses. There are only few packages which are using
|
- drop use slang and use ncurses. There are only few packages which are using
|
||||||
|
Loading…
Reference in New Issue
Block a user