###############################################################################
name = mc
-version = 4.8.3
-release = 1
+version = 4.8.29
+release = 3
groups = Applications/System
-url = http://www.ibiblio.org/mc/
+url = https://midnight-commander.org
license = GPLv2+
summary = User-friendly text console file manager and visual shell.
specific files.
end
+source_dl = https://www.midnight-commander.org/downloads/
sources = %{thisapp}.tar.xz
-source_dl = http://www.midnight-commander.org/downloads/
build
requires
end
configure_options += \
- --sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-screen=slang \
--with-samba \
--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
+ # This awkward dependency is found and cannot be resolved
+ filter_requires = perl\(pieces\)
end
package %{name}-debuginfo