]> git.pld-linux.org Git - packages/coreutils.git/blame - coreutils.spec
- updated to 8.23
[packages/coreutils.git] / coreutils.spec
CommitLineData
f1d1c680
JB
1#
2# Conditional build:
34c283ca
JB
3%bcond_with advcopy # progress bar in cp (orphaned patch)
4%bcond_without tests # do not perform "make test check"
25dc5310 5#
4ffc960b 6Summary: GNU Core-utils - basic command line utilities
4084ee99 7Summary(pl.UTF-8): GNU Core-utils - podstawowe narzędzia działające z linii poleceń
81355144 8Name: coreutils
8127c87d
JB
9Version: 8.23
10Release: 1
0b50f0be 11License: GPL v3+
dcb7e8f6 12Group: Applications/System
20a87759 13Source0: http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz
8127c87d 14# Source0-md5: abed135279f87ad6762ce57ff6d89c41
243fb6f8
JB
15Source1: %{name}-non-english-man-pages.tar.bz2
16# Source1-md5: f7c986ebc74ccb8d08ed70141063f14c
17Source2: DIR_COLORS
11c938d2 18Source3: DIR_COLORS.256color
9dce2d86
JR
19Source4: colorls.sh
20Source5: colorls.csh
21Source6: mktemp.1.pl
e64b53ed 22Patch0: %{name}-info.patch
703a6c3b
JB
23Patch1: %{name}-getgid.patch
24Patch2: %{name}-uname-cpuinfo.patch
25Patch3: %{name}-date-man.patch
703a6c3b
JB
26Patch5: %{name}-7.4-sttytcsadrain.patch
27Patch6: %{name}-fmt-wchars.patch
28Patch7: %{name}-sparc64.patch
0d2793d8 29# http://translationproject.org/latest/coreutils/pl.po (pass through msgcat to generate shorter diff)
703a6c3b 30Patch8: %{name}-pl.po-update.patch
ea6cb9bd 31# from http://www.beatex.org/web/advancedcopy.html, edited by shadzik
703a6c3b 32Patch9: %{name}-advcopy.patch
74811ba6 33Patch10: tests.patch
50f5ccac 34URL: http://www.gnu.org/software/coreutils/
1ce69a5d 35BuildRequires: acl-devel
20a87759 36BuildRequires: attr-devel
c9201ab0 37BuildRequires: autoconf >= 2.64
d51def31 38BuildRequires: automake >= 1:1.11.2
0b50f0be 39BuildRequires: gcc >= 5:3.2
c9201ab0 40BuildRequires: gettext-devel >= 0.18.1
20a87759 41BuildRequires: gmp-devel
40ce7301 42BuildRequires: help2man
20a87759 43BuildRequires: libcap-devel
0b50f0be 44BuildRequires: libselinux-devel
2f60f5c2 45BuildRequires: rpmbuild(find_lang) >= 1.24
68ae8889 46BuildRequires: tar >= 1:1.22
8d2b1b9b 47BuildRequires: texinfo >= 4.2
af34019f 48BuildRequires: xz
7476896b
JB
49%if %{with tests}
50BuildRequires: strace
51%endif
0c33a40d 52Requires: setup >= 2.4.6-2
dcb7e8f6 53Provides: fileutils
926e0028 54Provides: mktemp = %{version}-%{release}
7196cb9c 55Provides: sh-utils
4ffc960b 56Provides: stat
dcb7e8f6 57Provides: textutils
7196cb9c 58Obsoletes: fileutils
0b50f0be 59Obsoletes: mktemp
7196cb9c
JB
60Obsoletes: sh-utils
61Obsoletes: stat
62Obsoletes: textutils
f6e410c4 63Conflicts: shadow < 1:4.0.3-6
3c610654 64Conflicts: tetex < 1:2.0.2
49a49f4c
JB
65# ensure util-linux has su included
66Conflicts: util-linux < 2.22
4ffc960b 67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81355144 68
69%description
140f38a7
ER
70These are the GNU core utilities. This package is the union of the GNU
71fileutils, sh-utils, and textutils packages.
dcb7e8f6
MM
72
73Most of these programs have significant advantages over their Unix
74counterparts, such as greater speed, additional options, and fewer
75arbitrary limits.
76
77The programs that can be built with this package are:
78
8547cbe7
JB
79 [ basename cat chgrp chmod chown chroot cksum comm cp csplit cut date
80 dd df dir dircolors dirname du echo env expand expr factor false fmt
81 fold install groups head hostid id join link ln logname ls md5sum
82 mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr printenv
703a6c3b
JB
83 printf ptx pwd realpath rm rmdir seq sha1sum shred sleep sort split
84 stat stty sum sync tac tail tee test touch tr true tsort tty uname
85 unexpand uniq unlink users vdir wc who whoami yes
81355144 86
45adcfd2
JR
87%description -l pl.UTF-8
88Narzędzia podstawowe (core utilities) GNU to połączone paczki GNU
7196cb9c 89fileutils, sh-utils i textutils.
dcb7e8f6 90
45adcfd2
JR
91Większość z zawartych programów jest znacznie ulepszona w porównaniu
92z ich uniksowymi odpowiednikami, np. szybciej działają, mają dodatkowe
93opcje i mniej ograniczeń.
dcb7e8f6 94
f6e410c4 95Programy zawarte w tym pakiecie to:
dcb7e8f6 96
8547cbe7
JB
97 [ basename cat chgrp chmod chown chroot cksum comm cp csplit cut date
98 dd df dir dircolors dirname du echo env expand expr factor false fmt
99 fold ginstall groups head hostid id join link ln logname ls md5sum
100 mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr printenv
703a6c3b
JB
101 printf ptx pwd realpath rm rmdir seq sha1sum shred sleep sort split
102 stat stty sum sync tac tail tee test touch tr true tsort tty uname
103 unexpand uniq unlink users vdir wc who whoami yes
5a8935ee 104
81355144 105%prep
68ae8889 106%setup -q -a1
d51def31 107#patch8 -p1
f1d1c680 108%patch0 -p1
493afad7 109%patch1 -p1
5f693aa7 110%patch2 -p1
703a6c3b 111%patch3 -p1
fe5dd171 112%patch5 -p1
40ce7301 113%patch6 -p1
84fc46dc 114%ifarch sparc64
703a6c3b 115%patch7 -p1
84fc46dc 116%endif
973a2339 117%if %{with advcopy}
ea6cb9bd 118# progress-bar patch, -g,--progress-bar //if in doubt, comment it out
703a6c3b 119%patch9 -p1
973a2339 120%endif
5b496f54 121%patch10 -p1
81355144 122
8cd4570b 123%{__perl} -pi -e 's@GNU/Linux@PLD Linux@' m4/host-os.m4
686db19c 124
48a3261c 125# allow rebuilding *.gmo
34c283ca 126%{__rm} po/stamp-po
9d6d8d09 127
fd7af4a7 128# 8-bit-pfx test fails under C locale:
b33fa43c
ER
129# LC_ALL=C echo -e "ça\nçb\n"|LC_ALL=C fmt -p 'ç'
130# fmt: memory exhausted
fd7af4a7 131%{__sed} -i -e 25,27d tests/fmt/base.pl
e447242d
ER
132
133# /etc/resolv.conf is blocked in pld builders, try some other file
134%{__sed} -i -e 's,/etc/resolv.conf,/etc/hosts,' gnulib-tests/test-read-file.c
b33fa43c
ER
135
136# getgid needs to be fixed:
137# getgid: missing operand
138# Try `getgid --help' for more information.
fd7af4a7
JB
139%{__rm} tests/misc/help-version.sh
140%{__sed} -i -e '/misc\/help-version/d' tests/local.mk
b33fa43c 141
2cd07788 142# fails on some filesystems (like XFS), where readdir returns d_type=DT_UNKNOWN
fd7af4a7
JB
143%{__rm} tests/ls/stat-free-color.sh
144%{__sed} -i -e '/ls\/stat-free-color/d' tests/local.mk
6e4fe008 145
389abdcd
JR
146# filesystem layout dependant (fails on some xfs fs)
147%{__rm} tests/dd/sparse.sh
148%{__sed} -i -e '/dd\/sparse/d' tests/local.mk
149
150# mksh is too smart for those, won't let programs fail on ulimit
151# would need bash here
152%{__rm} tests/misc/sort-merge-fdlimit.sh
153%{__sed} -i -e '/misc\/sort-merge-fdlimit/d' tests/local.mk
154%{__rm} tests/split/r-chunk.sh
155%{__sed} -i -e '/split\/r-chunk/d' tests/local.mk
156
81355144 157%build
fd7af4a7
JB
158build-aux/gen-lists-of-programs.sh --autoconf > m4/cu-progs.m4
159build-aux/gen-lists-of-programs.sh --automake > src/cu-progs.mk
10c3bf7d 160%{__gettextize}
10c3bf7d
MM
161%{__aclocal} -I m4
162%{__autoconf}
163%{__autoheader}
164%{__automake}
7881e534 165%configure \
5077bae6 166 CFLAGS="%{rpmcflags} -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT" \
242215ed 167 DEFAULT_POSIX2_VERSION=199209 \
f1d1c680 168 --disable-silent-rules \
e3b5fe3f 169 --enable-install-program=arch \
703a6c3b 170 --enable-no-install-program=hostname,kill,uptime
7196cb9c
JB
171
172%{__make}
81355144 173
36278e0e
AM
174%if %{with tests}
175sed -i -e 's#COLUMNS##g' tests/envvar-check
389abdcd 176LC_ALL=C LANG=C %{__make} -j1 tests check
36278e0e 177%endif
313fe0a8 178
81355144 179%install
180rm -rf $RPM_BUILD_ROOT
703a6c3b 181install -d $RPM_BUILD_ROOT{/bin,/sbin,%{_bindir},%{_sbindir},/etc/shrc.d}
62566ec7 182
465f2f49
JB
183%{__make} install \
184 DESTDIR=$RPM_BUILD_ROOT
0fb84c10 185
6459e920 186mv -f $RPM_BUILD_ROOT%{_bindir}/{arch,basename,cat,chgrp,chmod,chown,cp,date,dd,\
459419cb 187df,echo,false,id,link,ln,ls,mkdir,mknod,mktemp,mv,nice,printf,pwd,readlink,rm,rmdir,\
6459e920 188sleep,sort,stat,stty,sync,touch,true,unlink,uname} $RPM_BUILD_ROOT/bin
465f2f49
JB
189
190mv -f $RPM_BUILD_ROOT%{_bindir}/chroot $RPM_BUILD_ROOT%{_sbindir}
ff326dc7 191
b33fa43c 192cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
9dce2d86
JR
193cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
194cp -p %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT/etc/shrc.d
e3b5fe3f 195
60d5b96a 196cp -a man/pt_BR man/pt
b33fa43c 197for d in cs da de es fi fr hu id it ja ko nl pl pt ru zh_CN; do
4ffc960b 198 install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
b33fa43c 199 cp -p man/$d/*.1 $RPM_BUILD_ROOT%{_mandir}/$d/man1
4ffc960b 200done
9dce2d86 201install %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/pl/man1/mktemp.1
34c283ca 202# unwanted (-f left intentionally - some manuals could have no translations)
49a49f4c 203rm -f $RPM_BUILD_ROOT%{_mandir}/*/man1/{hostname,kill,su,uptime}.1
f73f969d
ER
204# always remove, never packaged but sometimes installed
205rm -f $RPM_BUILD_ROOT%{_infodir}/dir
b33fa43c 206
7196cb9c 207%find_lang %{name}
81355144 208
209%clean
210rm -rf $RPM_BUILD_ROOT
211
0b50f0be 212%post -p /sbin/postshell
f21f2252 213-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 214
0b50f0be 215%postun -p /sbin/postshell
f21f2252 216-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 217
ff326dc7 218%files -f %{name}.lang
81355144 219%defattr(644,root,root,755)
4ffc960b 220%doc AUTHORS ChangeLog NEWS README THANKS THANKS-to-translators TODO
49a49f4c
JB
221%attr(755,root,root) /bin/arch
222%attr(755,root,root) /bin/basename
223%attr(755,root,root) /bin/cat
224%attr(755,root,root) /bin/chgrp
225%attr(755,root,root) /bin/chmod
226%attr(755,root,root) /bin/chown
227%attr(755,root,root) /bin/cp
228%attr(755,root,root) /bin/date
229%attr(755,root,root) /bin/dd
230%attr(755,root,root) /bin/df
231%attr(755,root,root) /bin/echo
232%attr(755,root,root) /bin/false
233%attr(755,root,root) /bin/id
234%attr(755,root,root) /bin/link
235%attr(755,root,root) /bin/ln
236%attr(755,root,root) /bin/ls
237%attr(755,root,root) /bin/mkdir
238%attr(755,root,root) /bin/mknod
239%attr(755,root,root) /bin/mktemp
240%attr(755,root,root) /bin/mv
241%attr(755,root,root) /bin/nice
242%attr(755,root,root) /bin/printf
243%attr(755,root,root) /bin/pwd
459419cb 244%attr(755,root,root) /bin/readlink
49a49f4c
JB
245%attr(755,root,root) /bin/rm
246%attr(755,root,root) /bin/rmdir
247%attr(755,root,root) /bin/sleep
248%attr(755,root,root) /bin/sort
249%attr(755,root,root) /bin/stat
250%attr(755,root,root) /bin/stty
251%attr(755,root,root) /bin/sync
252%attr(755,root,root) /bin/touch
253%attr(755,root,root) /bin/true
254%attr(755,root,root) /bin/uname
255%attr(755,root,root) /bin/unlink
256%attr(755,root,root) %{_bindir}/[
257%attr(755,root,root) %{_bindir}/base64
258%attr(755,root,root) %{_bindir}/chcon
259%attr(755,root,root) %{_bindir}/cksum
260%attr(755,root,root) %{_bindir}/comm
261%attr(755,root,root) %{_bindir}/csplit
262%attr(755,root,root) %{_bindir}/cut
263%attr(755,root,root) %{_bindir}/dir
264%attr(755,root,root) %{_bindir}/dircolors
265%attr(755,root,root) %{_bindir}/dirname
266%attr(755,root,root) %{_bindir}/du
267%attr(755,root,root) %{_bindir}/env
268%attr(755,root,root) %{_bindir}/expand
269%attr(755,root,root) %{_bindir}/expr
270%attr(755,root,root) %{_bindir}/factor
271%attr(755,root,root) %{_bindir}/fmt
272%attr(755,root,root) %{_bindir}/fold
273%attr(755,root,root) %{_bindir}/getgid
274%attr(755,root,root) %{_bindir}/groups
275%attr(755,root,root) %{_bindir}/head
276%attr(755,root,root) %{_bindir}/hostid
277%attr(755,root,root) %{_bindir}/install
278%attr(755,root,root) %{_bindir}/join
279%attr(755,root,root) %{_bindir}/logname
280%attr(755,root,root) %{_bindir}/md5sum
281%attr(755,root,root) %{_bindir}/mkfifo
282%attr(755,root,root) %{_bindir}/nl
283%attr(755,root,root) %{_bindir}/nohup
284%attr(755,root,root) %{_bindir}/nproc
d51def31 285%attr(755,root,root) %{_bindir}/numfmt
49a49f4c
JB
286%attr(755,root,root) %{_bindir}/od
287%attr(755,root,root) %{_bindir}/paste
288%attr(755,root,root) %{_bindir}/pathchk
289%attr(755,root,root) %{_bindir}/pinky
290%attr(755,root,root) %{_bindir}/pr
291%attr(755,root,root) %{_bindir}/printenv
292%attr(755,root,root) %{_bindir}/ptx
49a49f4c
JB
293%attr(755,root,root) %{_bindir}/realpath
294%attr(755,root,root) %{_bindir}/runcon
295%attr(755,root,root) %{_bindir}/seq
296%attr(755,root,root) %{_bindir}/sha1sum
297%attr(755,root,root) %{_bindir}/sha224sum
298%attr(755,root,root) %{_bindir}/sha256sum
299%attr(755,root,root) %{_bindir}/sha384sum
300%attr(755,root,root) %{_bindir}/sha512sum
301%attr(755,root,root) %{_bindir}/shred
302%attr(755,root,root) %{_bindir}/shuf
303%attr(755,root,root) %{_bindir}/split
304%attr(755,root,root) %{_bindir}/stdbuf
305%attr(755,root,root) %{_bindir}/sum
306%attr(755,root,root) %{_bindir}/tac
307%attr(755,root,root) %{_bindir}/tail
308%attr(755,root,root) %{_bindir}/tee
309%attr(755,root,root) %{_bindir}/test
310%attr(755,root,root) %{_bindir}/timeout
311%attr(755,root,root) %{_bindir}/tr
312%attr(755,root,root) %{_bindir}/truncate
313%attr(755,root,root) %{_bindir}/tsort
314%attr(755,root,root) %{_bindir}/tty
315%attr(755,root,root) %{_bindir}/unexpand
316%attr(755,root,root) %{_bindir}/uniq
317%attr(755,root,root) %{_bindir}/users
318%attr(755,root,root) %{_bindir}/vdir
319%attr(755,root,root) %{_bindir}/wc
320%attr(755,root,root) %{_bindir}/who
321%attr(755,root,root) %{_bindir}/whoami
322%attr(755,root,root) %{_bindir}/yes
0b50f0be 323%attr(755,root,root) %{_sbindir}/chroot
140f38a7 324%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/DIR_COLORS
5a317c5d 325%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/DIR_COLORS.256color
893d466a
JR
326%config(noreplace) /etc/shrc.d/colorls.csh
327%config(noreplace) /etc/shrc.d/colorls.sh
f1d1c680
JB
328%dir %{_libdir}/coreutils
329%attr(755,root,root) %{_libdir}/coreutils/libstdbuf.so
49a49f4c
JB
330%{_mandir}/man1/arch.1*
331%{_mandir}/man1/base64.1*
332%{_mandir}/man1/basename.1*
333%{_mandir}/man1/cat.1*
334%{_mandir}/man1/chcon.1*
335%{_mandir}/man1/chgrp.1*
336%{_mandir}/man1/chmod.1*
337%{_mandir}/man1/chown.1*
338%{_mandir}/man1/chroot.1*
339%{_mandir}/man1/cksum.1*
340%{_mandir}/man1/comm.1*
341%{_mandir}/man1/cp.1*
342%{_mandir}/man1/csplit.1*
343%{_mandir}/man1/cut.1*
344%{_mandir}/man1/date.1*
345%{_mandir}/man1/dd.1*
346%{_mandir}/man1/df.1*
347%{_mandir}/man1/dir.1*
348%{_mandir}/man1/dircolors.1*
349%{_mandir}/man1/dirname.1*
350%{_mandir}/man1/du.1*
351%{_mandir}/man1/echo.1*
352%{_mandir}/man1/env.1*
353%{_mandir}/man1/expand.1*
354%{_mandir}/man1/expr.1*
355%{_mandir}/man1/factor.1*
356%{_mandir}/man1/false.1*
357%{_mandir}/man1/fmt.1*
358%{_mandir}/man1/fold.1*
359%{_mandir}/man1/getgid.1*
360%{_mandir}/man1/groups.1*
361%{_mandir}/man1/head.1*
362%{_mandir}/man1/hostid.1*
363%{_mandir}/man1/id.1*
364%{_mandir}/man1/install.1*
365%{_mandir}/man1/join.1*
366%{_mandir}/man1/link.1*
367%{_mandir}/man1/ln.1*
368%{_mandir}/man1/logname.1*
369%{_mandir}/man1/ls.1*
370%{_mandir}/man1/md5sum.1*
371%{_mandir}/man1/mkdir.1*
372%{_mandir}/man1/mkfifo.1*
373%{_mandir}/man1/mknod.1*
374%{_mandir}/man1/mktemp.1*
375%{_mandir}/man1/mv.1*
376%{_mandir}/man1/nice.1*
377%{_mandir}/man1/nl.1*
378%{_mandir}/man1/nohup.1*
379%{_mandir}/man1/nproc.1*
d51def31 380%{_mandir}/man1/numfmt.1*
49a49f4c
JB
381%{_mandir}/man1/od.1*
382%{_mandir}/man1/paste.1*
383%{_mandir}/man1/pathchk.1*
384%{_mandir}/man1/pinky.1*
385%{_mandir}/man1/pr.1*
386%{_mandir}/man1/printenv.1*
387%{_mandir}/man1/printf.1*
388%{_mandir}/man1/ptx.1*
389%{_mandir}/man1/pwd.1*
390%{_mandir}/man1/readlink.1*
391%{_mandir}/man1/realpath.1*
392%{_mandir}/man1/rm.1*
393%{_mandir}/man1/rmdir.1*
394%{_mandir}/man1/runcon.1*
395%{_mandir}/man1/seq.1*
396%{_mandir}/man1/sha1sum.1*
397%{_mandir}/man1/sha224sum.1*
398%{_mandir}/man1/sha256sum.1*
399%{_mandir}/man1/sha384sum.1*
400%{_mandir}/man1/sha512sum.1*
401%{_mandir}/man1/shred.1*
402%{_mandir}/man1/shuf.1*
403%{_mandir}/man1/sleep.1*
404%{_mandir}/man1/sort.1*
405%{_mandir}/man1/split.1*
406%{_mandir}/man1/stat.1*
407%{_mandir}/man1/stdbuf.1*
408%{_mandir}/man1/stty.1*
409%{_mandir}/man1/sum.1*
410%{_mandir}/man1/sync.1*
411%{_mandir}/man1/tac.1*
412%{_mandir}/man1/tail.1*
413%{_mandir}/man1/tee.1*
414%{_mandir}/man1/test.1*
415%{_mandir}/man1/timeout.1*
416%{_mandir}/man1/touch.1*
417%{_mandir}/man1/tr.1*
418%{_mandir}/man1/true.1*
419%{_mandir}/man1/truncate.1*
420%{_mandir}/man1/tsort.1*
421%{_mandir}/man1/tty.1*
422%{_mandir}/man1/uname.1*
423%{_mandir}/man1/unexpand.1*
424%{_mandir}/man1/uniq.1*
425%{_mandir}/man1/unlink.1*
426%{_mandir}/man1/users.1*
427%{_mandir}/man1/vdir.1*
428%{_mandir}/man1/wc.1*
429%{_mandir}/man1/who.1*
430%{_mandir}/man1/whoami.1*
431%{_mandir}/man1/yes.1*
4ffc960b
JB
432%lang(cs) %{_mandir}/cs/man1/*
433%lang(da) %{_mandir}/da/man1/*
434%lang(de) %{_mandir}/de/man1/*
435%lang(es) %{_mandir}/es/man1/*
436%lang(fi) %{_mandir}/fi/man1/*
437%lang(fr) %{_mandir}/fr/man1/*
438%lang(hu) %{_mandir}/hu/man1/*
439%lang(id) %{_mandir}/id/man1/*
440%lang(it) %{_mandir}/it/man1/*
441%lang(ja) %{_mandir}/ja/man1/*
442%lang(ko) %{_mandir}/ko/man1/*
443%lang(nl) %{_mandir}/nl/man1/*
444%lang(pl) %{_mandir}/pl/man1/*
445%lang(pt) %{_mandir}/pt/man1/*
446%lang(ru) %{_mandir}/ru/man1/*
243fb6f8 447%lang(zh_CN) %{_mandir}/zh_CN/man1/*
4ffc960b 448%{_infodir}/coreutils.info*
This page took 0.158213 seconds and 4 git commands to generate.