]> git.pld-linux.org Git - packages/coreutils.git/blame - coreutils.spec
- up to 7.1 (stable)
[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
20a87759
AM
5Version: 7.1
6Release: 1
0b50f0be 7License: GPL v3+
dcb7e8f6 8Group: Applications/System
20a87759
AM
9Source0: http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz
10# Source0-md5: 36f37073aefb63195519819b486a7643
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
20a87759
AM
28
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
JB
39BuildRequires: autoconf >= 2.61
40BuildRequires: automake >= 1:1.10
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
10e505b6 119%patch9 -p1
def34e12 120%patch10 -p1
493afad7 121%patch11 -p1
84fc46dc 122%ifarch sparc64
123%patch12 -p1
124%endif
81355144 125
8cd4570b 126%{__perl} -pi -e 's@GNU/Linux@PLD Linux@' m4/host-os.m4
686db19c 127
48a3261c
JB
128# allow rebuilding *.gmo
129rm -f po/stamp-po
9d6d8d09 130
20a87759
AM
131# drop when our automake supports dist-xz
132sed -i -e 's#1.10a dist-xz#1.10#g' configure.ac
133
81355144 134%build
10c3bf7d 135%{__gettextize}
10c3bf7d
MM
136%{__aclocal} -I m4
137%{__autoconf}
138%{__autoheader}
139%{__automake}
7881e534 140%configure \
5077bae6 141 CFLAGS="%{rpmcflags} -DSYSLOG_SUCCESS -DSYSLOG_FAILURE -DSYSLOG_NON_ROOT" \
242215ed 142 DEFAULT_POSIX2_VERSION=199209 \
0b50f0be
JB
143 --enable-install-program=arch \
144 --enable-no-install-program=hostname,kill,uptime \
10c3bf7d 145 --enable-pam
7196cb9c
JB
146
147%{__make}
81355144 148
313fe0a8
AM
149%{?with_tests:%{__make} tests}
150
81355144 151%install
152rm -rf $RPM_BUILD_ROOT
4c290e7d 153install -d $RPM_BUILD_ROOT{/bin,/sbin,%{_bindir},%{_sbindir},/etc/pam.d,/etc/shrc.d}
62566ec7 154
465f2f49
JB
155%{__make} install \
156 DESTDIR=$RPM_BUILD_ROOT
0fb84c10 157
0b50f0be 158mv -f $RPM_BUILD_ROOT%{_bindir}/{arch,basename,cat,chgrp,chmod,chown,cp,date,dd,df,\
c7602ae6
JB
159echo,false,id,link,ln,ls,mkdir,mknod,mktemp,mv,nice,printf,pwd,rm,rmdir,sleep,sort,\
160stty,sync,touch,true,unlink,uname} $RPM_BUILD_ROOT/bin
465f2f49
JB
161
162mv -f $RPM_BUILD_ROOT%{_bindir}/chroot $RPM_BUILD_ROOT%{_sbindir}
ff326dc7 163
0b50f0be 164# su is missed by "make install" called by non-root
465f2f49 165install src/su $RPM_BUILD_ROOT/bin
4c290e7d 166install src/runuser $RPM_BUILD_ROOT/sbin
81355144 167
243fb6f8 168install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
716fe1d2 169install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/shrc.d
243fb6f8 170install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/su
493afad7
JR
171install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/su-l
172install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/runuser
173install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/runuser-l
4ffc960b 174
60d5b96a 175cp -a man/pt_BR man/pt
243fb6f8 176for d in cs da de es fi fr hu id it ja ko nl pl pt ru zh_CN ; do
4ffc960b
JB
177 install -d $RPM_BUILD_ROOT%{_mandir}/$d/man1
178 install man/$d/*.1 $RPM_BUILD_ROOT%{_mandir}/$d/man1
179done
0b50f0be
JB
180install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/pl/man1/mktemp.1
181# unwanted
243fb6f8 182rm -f $RPM_BUILD_ROOT%{_mandir}/*/man1/{hostname,kill,uptime}.1
4ffc960b 183
7196cb9c 184%find_lang %{name}
81355144 185
186%clean
187rm -rf $RPM_BUILD_ROOT
188
0b50f0be 189%post -p /sbin/postshell
f21f2252 190-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 191
0b50f0be 192%postun -p /sbin/postshell
f21f2252 193-/usr/sbin/fix-info-dir -c %{_infodir}
7196cb9c 194
ff326dc7 195%files -f %{name}.lang
81355144 196%defattr(644,root,root,755)
4ffc960b 197%doc AUTHORS ChangeLog NEWS README THANKS THANKS-to-translators TODO
e64b53ed
JB
198%attr(755,root,root) /bin/[!s]*
199%attr(755,root,root) /bin/s[!u]*
84b5037b
PZ
200%attr(4755,root,root) /bin/su
201%attr(755,root,root) /sbin/runuser
62566ec7 202%attr(755,root,root) %{_bindir}/*
0b50f0be 203%attr(755,root,root) %{_sbindir}/chroot
140f38a7 204%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/DIR_COLORS
84b5037b
PZ
205%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su
206%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/su-l
207%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser
208%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/runuser-l
0b50f0be
JB
209/etc/shrc.d/fileutils.csh
210/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.136424 seconds and 4 git commands to generate.