############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = mc version = 4.8.29 release = 3 groups = Applications/System url = https://midnight-commander.org license = GPLv2+ summary = User-friendly text console file manager and visual shell. description Midnight Commander is a visual shell much like a file manager, only with many more features. It is a text mode application, but it also includes mouse support. Midnight Commander's best features are its ability to FTP, view tar and zip files, and to poke into RPMs for specific files. end source_dl = https://www.midnight-commander.org/downloads/ sources = %{thisapp}.tar.xz build requires e2fsprogs-devel glib2-devel pkg-config samba-devel slang-devel end configure_options += \ --libexecdir=/usr/lib \ --with-screen=slang \ --with-samba \ --without-x \ --enable-charset \ --disable-rpath configure_cmds # Add some additional CFLAGS to the consaver Makefile to proper # harden the binary. sed -i '/^CFLAGS =/ s/$/ -fno-builtin-exit -D__noreturn__=/' \ src/consaver/Makefile end install_cmds # Fix permissions chmod 1755 %{BUILDROOT}/usr/lib/mc/cons.saver # Remove python2 based helper script for amazon S3. rm -rvf %{BUILDROOT}/usr/lib/mc/extfs.d/s3+ end end packages package %{name} # This awkward dependency is found and cannot be resolved filter_requires = perl\(pieces\) end package %{name}-debuginfo template DEBUGINFO end end