Browse Source

resolve conflicts with vendor tools by using the usual 'g' prefix by default

master
parent
commit
57a2d05590
  1. 14
      coreutils/coreutils.spec

14
coreutils/coreutils.spec

@ -33,7 +33,10 @@ Distribution: OpenPKG [BASE]
Group: Utility
License: GPL
Version: 5.0
Release: 20030405
Release: 20030508
# package options
%option with_prefix yes
# list of sources
Source0: ftp://ftp.gnu.org/gnu/coreutils/coreutils-%{version}.tar.bz2
@ -65,7 +68,7 @@ AutoReqProv: no
%prep
%setup -q
%patch0 -p0
%patch -p0
%{l_shtool} subst \
-e 's;^\(install-exec-local:\).*;\1;' \
-e 's;^\(bin_PROGRAMS =\);\1 su;' \
@ -79,6 +82,9 @@ AutoReqProv: no
LDFLAGS="%{l_ldflags}" \
./configure \
--prefix=%{l_prefix} \
%if "%{with_prefix}" == "yes"
--program-prefix=g \
%endif
--disable-nls
chmod a+rx config/install-sh
%{l_make} %{l_mflags -O}
@ -90,7 +96,11 @@ AutoReqProv: no
rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
%if "%{with_prefix}" == "yes"
'%attr(4711,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/gsu'
%else
'%attr(4711,%{l_susr},%{l_mgrp}) %{l_prefix}/bin/su'
%endif
%files -f files

Loading…
Cancel
Save