provide /bin/touch to satisfy old specs
[platform/upstream/coreutils.git] / packaging / coreutils.spec
index 65f3f9c..afc8137 100644 (file)
@@ -9,6 +9,7 @@ BuildRequires:  libacl-devel
 BuildRequires:  libcap-devel
 BuildRequires:  pam-devel
 BuildRequires:  xz
+BuildRequires: gettext-tools
 Url:            http://www.gnu.org/software/coreutils/
 Version:        8.20
 Release:        0
@@ -24,10 +25,8 @@ Obsoletes:      stat < %version}
 Obsoletes:      textutils < %{version}
 Requires:       pam >= 1.1.1.90
 Source:         coreutils-%{version}.tar.xz
-Source1:        su.pamd
-Source2:        su.default
 Source3:        baselibs.conf
-Source4:        coreutils-%{version}.de.po.xz
+Provides:       /bin/chmod, /bin/chown, /bin/ls, /bin/touch, /bin/mkdir
 
 %description
 Basic file, shell, and text manipulation utilities.  The package
@@ -39,7 +38,7 @@ factor false fmt fold groups head id install join kill link ln logname
 ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup od paste pathchk
 pinky pr printenv printf ptx pwd readlink rm rmdir runcon seq sha1sum
 sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split
-stat stty su sum sync tac tail tee test timeout touch tr true tsort tty
+stat stty sum sync tac tail tee test timeout touch tr true tsort tty
 uname unexpand uniq unlink uptime users vdir wc who whoami yes
 
 %lang_package
@@ -51,7 +50,7 @@ uname unexpand uniq unlink uptime users vdir wc who whoami yes
 AUTOPOINT=true autoreconf -fi
 export CFLAGS="%optflags -Wall"
 %configure --libexecdir=%{_libdir} --without-included-regex \
-           --enable-install-program=arch,su \
+           --enable-install-program=arch \
            gl_cv_func_printf_directive_n=yes \
            gl_cv_func_isnanl_works=yes \
            DEFAULT_POSIX2_VERSION=199209
@@ -61,13 +60,6 @@ make %{?_smp_mflags} V=1
 
 %install
 %make_install pkglibexecdir=%{_libdir}/%{name}
-test -f %{buildroot}%{_bindir}/su || \
-  install src/su %{buildroot}%{_bindir}/su || :
-install -d -m 755 %{buildroot}/etc/pam.d
-install -m 644 %{S:1} %{buildroot}/etc/pam.d/su
-install -m 644 %{S:1} %{buildroot}/etc/pam.d/su-l
-install -d -m 755 %{buildroot}/etc/default
-install -m 644 %{S:2} %{buildroot}/etc/default/su
 echo '.so man1/test.1' > %{buildroot}/%{_mandir}/man1/\[.1
 
 %find_lang %name
@@ -82,15 +74,12 @@ echo '.so man1/test.1' > %{buildroot}/%{_mandir}/man1/\[.1
 %files
 %defattr(-,root,root)
 %doc README NEWS
-%config %{_sysconfdir}/pam.d/su
-%config %{_sysconfdir}/pam.d/su-l
-%config(noreplace) %{_sysconfdir}/default/su
-%attr(4755,root,root) %{_bindir}/su
 %{_bindir}/*
 %{_libdir}/%{name}
 %doc %{_infodir}/coreutils.info*.gz
-%doc %{_mandir}/man1/*.1.gz
 %dir %{_prefix}/share/locale/*/LC_TIME
 
+%docs_package
+
 
 %changelog