]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - coreutils/coreutils.nm
elfutils: Correctly configure debuginfod
[people/pmueller/ipfire-3.x.git] / coreutils / coreutils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = coreutils
7 version = 9.1
8 release = 1
9
10 groups = System/Base
11 url = https://www.gnu.org/software/coreutils/
12 license = GPLv3+
13 summary = A set of basic GNU tools commonly used in shell scripts.
14
15 description
16 These are the GNU core utilities. This package is the combination of
17 the old GNU fileutils, sh-utils, and textutils packages.
18 end
19
20 source_dl = https://ftp.gnu.org/gnu/coreutils/
21 sources = %{thisapp}.tar.xz
22
23 build
24 requires
25 autoconf
26 automake >= 1.15
27 e2fsprogs-devel
28 gettext-devel
29 gmp-devel
30 libacl-devel
31 libattr-devel
32 libcap-devel
33 ncurses-devel
34 texinfo
35 end
36
37 configure_options += \
38 FORCE_UNSAFE_CONFIGURE=1 \
39 --enable-dependency-tracking \
40 --libexecdir=%{libdir} \
41 --enable-largefile \
42 --enable-install-program=arch \
43 --enable-no-install-program=hostname,kill,uptime \
44 --with-tty-group
45
46 prepare_cmds
47 autoreconf -vfi
48 end
49
50 test
51 make check RUN_VERY_EXPENSIVE_TESTS=yes || true
52 end
53
54 install_cmds
55 mkdir -pv %{BUILDROOT}%{sbindir}
56 mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}%{sbindir}
57
58 # Dump /etc/DIR_COLORS
59 mkdir -pv %{BUILDROOT}%{sysconfdir}
60 for i in DIR_COLORS DIR_COLORS.256color DIR_COLORS.lightbgcolor; do
61 install -m 644 %{DIR_SOURCE}/${i} %{BUILDROOT}%{sysconfdir}
62 done
63
64 # Install profile.d.
65 mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d/
66 cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
67 end
68 end
69
70 packages
71 package %{name}
72 groups += Base Build
73
74 provides
75 /bin/basename
76 /bin/cat
77 /bin/chgrp
78 /bin/chmod
79 /bin/chown
80 /bin/cp
81 /bin/cut
82 /bin/date
83 /bin/dd
84 /bin/df
85 /bin/echo
86 /bin/env
87 /bin/false
88 /bin/ln
89 /bin/ls
90 /bin/mkdir
91 /bin/mknod
92 /bin/mktemp
93 /bin/mv
94 /bin/nice
95 /bin/pwd
96 /bin/readlink
97 /bin/rm
98 /bin/rmdir
99 /bin/sleep
100 /bin/sort
101 /bin/stty
102 /bin/sync
103 /bin/touch
104 /bin/true
105 /bin/uname
106 end
107
108 conflicts
109 filesystem < 002
110 end
111 end
112
113 package %{name}-debuginfo
114 template DEBUGINFO
115 end
116 end