]> git.ipfire.org Git - ipfire-3.x.git/blame - mc/mc.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / mc / mc.nm
CommitLineData
3961710f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
3961710f
MT
4###############################################################################
5
802ea3af 6name = mc
82b6c2cb 7version = 4.8.29
28792af2 8release = 3
3961710f 9
802ea3af 10groups = Applications/System
82b6c2cb 11url = https://midnight-commander.org
802ea3af
MT
12license = GPLv2+
13summary = User-friendly text console file manager and visual shell.
0371d2c8 14
802ea3af 15description
1f9bc2f0 16 Midnight Commander is a visual shell much like a file manager, only
802ea3af
MT
17 with many more features. It is a text mode application, but it also
18 includes mouse support. Midnight Commander's best features are its
19 ability to FTP, view tar and zip files, and to poke into RPMs for
3961710f 20 specific files.
802ea3af
MT
21end
22
82b6c2cb 23source_dl = https://www.midnight-commander.org/downloads/
270879ec 24sources = %{thisapp}.tar.xz
802ea3af
MT
25
26build
27 requires
28 e2fsprogs-devel
29 glib2-devel
30 pkg-config
31 samba-devel
32 slang-devel
33 end
34
802ea3af 35 configure_options += \
802ea3af
MT
36 --libexecdir=/usr/lib \
37 --with-screen=slang \
38 --with-samba \
39 --without-x \
40 --enable-charset \
41 --disable-rpath
42
28792af2
SS
43 configure_cmds
44 # Add some additional CFLAGS to the consaver Makefile to proper
45 # harden the binary.
46 sed -i '/^CFLAGS =/ s/$/ -fno-builtin-exit -D__noreturn__=/' \
47 src/consaver/Makefile
48 end
49
802ea3af 50 install_cmds
0dc9b793 51 # Fix permissions
802ea3af 52 chmod 1755 %{BUILDROOT}/usr/lib/mc/cons.saver
0dc9b793
SS
53
54 # Remove python2 based helper script for amazon S3.
55 rm -rvf %{BUILDROOT}/usr/lib/mc/extfs.d/s3+
802ea3af
MT
56 end
57end
58
59packages
60 package %{name}
82b6c2cb
MT
61 # This awkward dependency is found and cannot be resolved
62 filter_requires = perl\(pieces\)
01a0e3cd 63 end
1f9bc2f0
MT
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
802ea3af 68end