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