]> git.ipfire.org Git - ipfire-3.x.git/blob - mc/mc.nm
systemd: Build manpages again
[ipfire-3.x.git] / mc / mc.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = mc
7 version = 4.8.29
8 release = 3
9
10 groups = Applications/System
11 url = https://midnight-commander.org
12 license = GPLv2+
13 summary = User-friendly text console file manager and visual shell.
14
15 description
16 Midnight Commander is a visual shell much like a file manager, only
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
20 specific files.
21 end
22
23 source_dl = https://www.midnight-commander.org/downloads/
24 sources = %{thisapp}.tar.xz
25
26 build
27 requires
28 e2fsprogs-devel
29 glib2-devel
30 pkg-config
31 samba-devel
32 slang-devel
33 end
34
35 configure_options += \
36 --libexecdir=/usr/lib \
37 --with-screen=slang \
38 --with-samba \
39 --without-x \
40 --enable-charset \
41 --disable-rpath
42
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
50 install_cmds
51 # Fix permissions
52 chmod 1755 %{BUILDROOT}/usr/lib/mc/cons.saver
53
54 # Remove python2 based helper script for amazon S3.
55 rm -rvf %{BUILDROOT}/usr/lib/mc/extfs.d/s3+
56 end
57 end
58
59 packages
60 package %{name}
61 # This awkward dependency is found and cannot be resolved
62 filter_requires = perl\(pieces\)
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68 end