]> git.pld-linux.org Git - packages/coreutils.git/blame - coreutils.spec
- rel 2; avoid hangs in stty
[packages/coreutils.git] / coreutils.spec
CommitLineData
313fe0a8 1%bcond_without tests
4ffc960b 2Summary: GNU Core-utils - basic command line utilities
4084ee99 3Summary(pl.UTF-8): GNU Core-utils - podstawowe narzędzia działające z linii poleceń
81355144 4Name: coreutils
a37c2acb 5Version: 7.4
cdcff531 6Release: 2
0b50f0be 7License: GPL v3+
dcb7e8f6 8Group: Applications/System
20a87759 9Source0: http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz
a37c2acb 10# Source0-md5: e8d906c153f271430e3efb2b9a35a35f
243fb6f8
JB
11Source1: %{name}-non-english-man-pages.tar.bz2
12# Source1-md5: f7c986ebc74ccb8d08ed70141063f14c
13Source2: DIR_COLORS
14Source3: fileutils.sh
15Source4: fileutils.csh
16Source5: su.pamd
493afad7
JR
17Source6: su-l.pamd
18Source7: runuser.pamd
19Source8: runuser-l.pamd
0b50f0be 20Source9: mktemp.1.pl
e64b53ed 21Patch0: %{name}-info.patch
493afad7
JR
22Patch1: %{name}-pam.patch
23Patch2: %{name}-getgid.patch
24Patch3: %{name}-su-paths.patch
25Patch4: %{name}-uname-cpuinfo.patch
26Patch5: %{name}-date-man.patch
27Patch6: %{name}-mem.patch
cdcff531 28Patch7: %{name}-7.4-sttytcsadrain.patch
20a87759 29
0b50f0be
JB
30Patch9: %{name}-fmt-wchars.patch
31Patch10: %{name}-runuser.patch
32Patch11: %{name}-split-pam.patch
84fc46dc 33Patch12: %{name}-sparc64.patch
fcb16f48 34Patch13: %{name}-pl.po-update.patch
20a87759 35
50f5ccac 36URL: http://www.gnu.org/software/coreutils/
1ce69a5d 37BuildRequires: acl-devel
20a87759 38BuildRequires: attr-devel
0b50f0be 39BuildRequires: autoconf >= 2.61
a37c2acb 40BuildRequires: automake >= 1:1.11
0b50f0be 41BuildRequires: gcc >= 5:3.2
e17d0bfe 42BuildRequires: gettext-devel >= 0.16-2
20a87759 43BuildRequires: gmp-devel
40ce7301 44BuildRequires: help2man
20a87759 45BuildRequires: libcap-devel
0b50f0be 46BuildRequires: libselinux-devel
20a87759 47BuildRequires: xz
bfbde10a 48BuildRequires: pam-devel
2f60f5c2 49BuildRequires: rpmbuild(find_lang) >= 1.24
8d2b1b9b 50BuildRequires: texinfo >= 4.2
84b5037b 51Requires: pam >= 0.77.3
0c33a40d 52Requires: setup >= 2.4.6-2
84b5037b 53Provides: coreutils-su
dcb7e8f6 54Provides: fileutils
926e0028 55Provides: mktemp = %{version}-%{release}
7196cb9c 56Provides: sh-utils
4ffc960b 57Provides: stat
dcb7e8f6 58Provides: textutils
84b5037b 59Obsoletes: coreutils-su
7196cb9c 60Obsoletes: fileutils
0b50f0be 61Obsoletes: mktemp
7196cb9c
JB
62Obsoletes: sh-utils
63Obsoletes: stat
64Obsoletes: textutils
f6e410c4 65Conflicts: shadow < 1:4.0.3-6
3c610654 66Conflicts: tetex < 1:2.0.2
0b50f0be 67Conflicts: util-linux < 2.13-0.pre7
4ffc960b 68BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81355144 69
70%description
140f38a7
ER
71These are the GNU core utilities. This package is the union of the GNU
72fileutils, sh-utils, and textutils packages.
dcb7e8f6
MM
73
74Most of these programs have significant advantages over their Unix
75counterparts, such as greater speed, additional options, and fewer
76arbitrary limits.
77
78The programs that can be built with this package are:
79
8547cbe7
JB
80 [ basename cat chgrp chmod chown chroot cksum comm cp csplit cut date
81 dd df dir dircolors dirname du echo env expand expr factor false fmt
82 fold install groups head hostid id join link ln logname ls md5sum
83 mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr printenv
84b5037b
PZ
84 printf ptx pwd rm rmdir runuser seq sha1sum shred sleep sort split
85 stat stty su sum sync tac tail tee test touch tr true tsort tty uname
86 unexpand uniq unlink users vdir wc who whoami yes
81355144 87
45adcfd2
JR
88%description -l pl.UTF-8
89Narzędzia podstawowe (core utilities) GNU to połączone paczki GNU
7196cb9c 90fileutils, sh-utils i textutils.
dcb7e8f6 91
45adcfd2
JR
92Większość z zawartych programów jest znacznie ulepszona w porównaniu
93z ich uniksowymi odpowiednikami, np. szybciej działają, mają dodatkowe
94opcje i mniej ograniczeń.
dcb7e8f6 95
f6e410c4 96Programy zawarte w tym pakiecie to:
dcb7e8f6 97
8547cbe7
JB
98 [ basename cat chgrp chmod chown chroot cksum comm cp csplit cut date
99 dd df dir dircolors dirname du echo env expand expr factor false fmt
100 fold ginstall groups head hostid id join link ln logname ls md5sum
101 mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr printenv
84b5037b
PZ
102 printf ptx pwd rm rmdir runuser seq sha1sum shred sleep sort split
103 stat stty su sum sync tac tail tee test touch tr true tsort tty uname
104 unexpand uniq unlink users vdir wc who whoami yes
5a8935ee 105
81355144 106%prep
0b50f0be
JB
107%setup -q -c -T -a1
108lzma -dc %{SOURCE0} | tar xf - -C ..
20a87759
AM
109# currently obsolete
110# %patch13 -p1
111# ?
112# %patch0 -p1
493afad7 113%patch1 -p1
5f693aa7
JB
114%patch2 -p1
115%patch3 -p1
def34e12 116%patch4 -p1
fe5dd171 117%patch5 -p1
40ce7301 118%patch6 -p1
cdcff531 119%patch7 -p1
10e505b6 120%patch9 -p1
def34e12 121%patch10 -p1
493afad7 122%patch11 -p1
84fc46dc 123%ifarch sparc64
124%patch12 -p1
125%endif
81355144 126
8cd4570b 127%{__perl} -pi -e 's@GNU/Linux@PLD Linux@' m4/host-os.m4
686db19c 128
48a3261c
JB
129# allow rebuilding *.gmo
130rm -f po/stamp-po
9d6d8d09 131
20a87759
AM
132# drop when our automake supports dist-xz
133sed -i -e 's#1.10a dist-xz#1.10#g' configure.ac
134
81355144 135%build
10c3bf7d 136%{__gettextize}
10c3bf7d
MM
137%{__aclocal} -I m4
138%{__autoconf}
139%{__autoheader}
140%{__automake}
7881e534 141%configure \
5077bae6 142 CFLAGS="%{rpmcflags} -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT" \
242215ed 143 DEFAULT_POSIX2_VERSION=199209 \
0b50f0be
JB
144 --enable-install-program=arch \
145 --enable-no-install-program=hostname,kill,uptime \
10c3bf7d 146 --enable-pam
7196cb9c
JB
147
148%{__make}
81355144 149
313fe0a8
AM
150%{?with_tests:%{__make} tests}
151
81355144 152%install
153rm -rf $RPM_BUILD_ROOT
4c290e7d 154install -d $RPM_BUILD_ROOT{/bin,/sbin,%{_bindir},%{_sbindir},/etc/pam.d,/etc/shrc.d}
62566ec7 155
465f2f49
JB
156%{__make} install \
157 DESTDIR=$RPM_BUILD_ROOT
0fb84c10 158
6459e920
JR
159mv -f $RPM_BUILD_ROOT%{_bindir}/{arch,basename,cat,chgrp,chmod,chown,cp,date,dd,\
160df,echo,false,id,link,ln,ls,mkdir,mknod,mktemp,mv,nice,printf,pwd,rm,rmdir,\
161sleep,sort,stat,stty,sync,touch,true,unlink,uname} $RPM_BUILD_ROOT/bin
465f2f49
JB
162
163mv -f $RPM_BUILD_ROOT%{_bindir}/chroot $RPM_BUILD_ROOT%{_sbindir}
ff326dc7 164
0b50f0be 165# su is missed by "make install" called by non-root
465f2f49 166install src/su $RPM_BUILD_ROOT/bin
4c290e7d 167install src/runuser $RPM_BUILD_ROOT/sbin
81355144 168
243fb6f8 169install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
716fe1d2 170install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/shrc.d
243fb6f8 171install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/su
493afad7
JR
172install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/su-l
173install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/runuser
174install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/runuser-l
4ffc960b 175
60d5b96a 176cp -a man/pt_BR man/pt
243fb6f8 177for d in cs da de es fi fr hu id it ja ko nl pl pt ru zh_CN ; do
4ffc960b
JB
178 install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
179 install man/$d/*.1 $RPM_BUILD_ROOT%{_mandir}/$d/man1
180done
0b50f0be
JB
181install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/pl/man1/mktemp.1
182# unwanted
243fb6f8 183rm -f $RPM_BUILD_ROOT%{_mandir}/*/man1/{hostname,kill,uptime}.1
4ffc960b 184
7196cb9c 185%find_lang %{name}
81355144 186
187%clean
188rm -rf $RPM_BUILD_ROOT
189
0b50f0be 190%post -p /sbin/postshell
f21f2252 191-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 192
0b50f0be 193%postun -p /sbin/postshell
f21f2252 194-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 195
ff326dc7 196%files -f %{name}.lang
81355144 197%defattr(644,root,root,755)
4ffc960b 198%doc AUTHORS ChangeLog NEWS README THANKS THANKS-to-translators TODO
e64b53ed
JB
199%attr(755,root,root) /bin/[!s]*
200%attr(755,root,root) /bin/s[!u]*
84b5037b
PZ
201%attr(4755,root,root) /bin/su
202%attr(755,root,root) /sbin/runuser
62566ec7 203%attr(755,root,root) %{_bindir}/*
0b50f0be 204%attr(755,root,root) %{_sbindir}/chroot
140f38a7 205%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/DIR_COLORS
84b5037b
PZ
206%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su
207%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su-l
208%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser
209%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser-l
9904133a 210%config(noreplace) /etc/shrc.d/fileutils.*sh
7196cb9c 211%{_mandir}/man1/*
4ffc960b
JB
212%lang(cs) %{_mandir}/cs/man1/*
213%lang(da) %{_mandir}/da/man1/*
214%lang(de) %{_mandir}/de/man1/*
215%lang(es) %{_mandir}/es/man1/*
216%lang(fi) %{_mandir}/fi/man1/*
217%lang(fr) %{_mandir}/fr/man1/*
218%lang(hu) %{_mandir}/hu/man1/*
219%lang(id) %{_mandir}/id/man1/*
220%lang(it) %{_mandir}/it/man1/*
221%lang(ja) %{_mandir}/ja/man1/*
222%lang(ko) %{_mandir}/ko/man1/*
223%lang(nl) %{_mandir}/nl/man1/*
224%lang(pl) %{_mandir}/pl/man1/*
225%lang(pt) %{_mandir}/pt/man1/*
226%lang(ru) %{_mandir}/ru/man1/*
243fb6f8 227%lang(zh_CN) %{_mandir}/zh_CN/man1/*
4ffc960b 228%{_infodir}/coreutils.info*
This page took 0.065389 seconds and 4 git commands to generate.