Guillaume Rousse <[EMAIL PROTECTED]> writes:
> I just packaged dopewars, a great non-politically-correct games, and found
> that rpmlint make extensive check against binaries in /usr/bin, but not in
> /usr/games/bin (and maybe also in other directories).
> My first spec followed the install script to put the binary in /usr/bin, and
> rpmlint sent a warning as it was setgid. Then i moved it to /usr/share/bin,
> and the warning disappeared...
Are you sure ? With the following spec I got the warning:
E: test arch-dependent-file-in-usr-share /usr/share/bin/a.out
E: test setuid-binary /usr/share/bin/a.out games 04777
%define name test
%define version 1
%define release 1mdk
Summary: test
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: test
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
%description
test
%prep
%build
rm -f a.c
cat > a.c << EOF
main() {}
EOF
gcc a.c
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/bin
cp a.out $RPM_BUILD_ROOT/usr/share/bin
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%attr(4777, games, games) /usr/share/bin/*
%changelog
* Wed Mar 28 2001 Frederic Lepied <[EMAIL PROTECTED]> 1-1mdk
- 1
# test.spec ends here
--
Fred - May the source be with you