]> git.pld-linux.org Git - packages/coreutils.git/blob - coreutils.spec
- aye.. thinko
[packages/coreutils.git] / coreutils.spec
1
2 # TODO: check patches in {sh-,file,text}utils packages
3
4 Summary:        Coreutils
5 Summary(pl):    Coreutils
6 Name:           coreutils
7 Version:        4.5.3
8 Release:        0.8
9 License:        GPL
10 Group:          Applications/System
11 Source0:        ftp://alpha.gnu.org/gnu/fetish/%{name}-%{version}.tar.bz2
12 Source10:       su.pamd
13 Patch0:         %{name}-ac_fix.patch
14 Patch1:         %{name}-pam.patch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BuildRequires:  gettext-devel
17 BuildRequires:  autoconf >= 2.54
18 BuildRequires:  automake >= 1.7
19 # when no spec requires sh/file/text utils Provides can be removed
20 Provides:       fileutils
21 Provides:       sh-utils
22 Provides:       textutils
23 Obsoletes:      fileutils
24 Obsoletes:      sh-utils
25 Obsoletes:      stat
26 Obsoletes:      textutils
27
28 %description
29 These are the GNU core utilities.  This package is the union of
30 the GNU fileutils, sh-utils, and textutils packages.
31
32 Most of these programs have significant advantages over their Unix
33 counterparts, such as greater speed, additional options, and fewer
34 arbitrary limits.
35
36 The programs that can be built with this package are:
37
38   basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
39   df dir dircolors dirname du echo env expand expr factor false fmt fold
40   ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
41   mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
42   pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
43   tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
44   users vdir wc who whoami yes
45
46 %description -l pl
47 Narzêdzia podstawowe (core utilities) GNU to po³±czone paczki GNU
48 fileutils, sh-utils i textutils.
49
50 Wiêkszo¶æ z zawartych programów jest znacznie ulepszona w porównaniu
51 z ich Uniksowymi odpowiednikami, np. szybciej dzia³aj±, maj± dodatkowe
52 opcje i mniej ograniczeñ.
53
54 Programy zawarte w tej paczce to:
55
56   basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
57   df dir dircolors dirname du echo env expand expr factor false fmt fold
58   ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
59   mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
60   pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
61   tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
62   users vdir wc who whoami yes
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %{__gettextize}
71 # don't ask:
72 mv -f m4/inttypes.m4~ m4/inttypes.m4
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78         --enable-pam
79
80 %{__make}
81
82 cd src
83 ln -s test [
84 ln -s ginstall install 
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
89 %{__make} -C man install DESTDIR=$RPM_BUILD_ROOT mandir="%{_mandir}"
90 %{__make} -C doc install DESTDIR=$RPM_BUILD_ROOT prefix="%{_datadir}"
91
92 (cd $RPM_BUILD_ROOT%{_mandir}/man1
93 rm -f uptime* hostname* groups*
94 )
95
96 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_infodir},%{_mandir}/man1,/bin,%{_sysconfdir}/pam.d}
97
98 install src/{dir,dircolors,dirname,du,env,expr,factor,hostid,logname,mkfifo,\
99 pathchk,pinky,printenv,printf,seq,shred,stat,tee,tty,users,vdir,who,whoami,\
100 yes,cksum,comm,csplit,cut,expand,fmt,fold,head,join,md5sum,nohup,nl,od,paste,\
101 pr,ptx,sha1sum,split,sum,tac,tail,test,tr,tsort,unexpand,uniq,wc,ginstall,\
102 install,[} $RPM_BUILD_ROOT%{_bindir}
103
104 install src/{basename,cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,id,link,\
105 ln,ls,mkdir,mknod,mv,nice,pwd,rm,rmdir,sleep,sort,stty,su,sync,touch,true,\
106 unlink,uname} $RPM_BUILD_ROOT/bin
107
108 install src/chroot $RPM_BUILD_ROOT%{_sbindir}
109
110 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/su
111 %find_lang %{name}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
118
119 %postun
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc
125
126 %attr(755,root,root) /bin/[^s]*
127 %attr(755,root,root) /bin/s[^u]*
128 %attr(4755,root,root) /bin/su
129
130 %attr(755,root,root) %{_bindir}/*
131 %attr(755,root,root) %{_sbindir}/*
132 %{_sysconfdir}/pam.d/*
133 %{_mandir}/man1/*
134 %{_infodir}/*
This page took 0.080245 seconds and 4 git commands to generate.