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