#!/bin/shfiles_exist(){ local file for file in "$@" do [ -e "$file" ] && return 1 done return 0}STATUS=okMESSAGE=if ! files_exist $REPOCOP_PKG_ROOT{,/usr}/lib{,64}/lib*.{so*,a} ; then exec repocop-test-skipfiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib{,64}/lib*.so.* ; then if ! test -z ${REPOCOP_PKG_NAME##lib*} && \ test -z ${REPOCOP_PKG_NAME##lib*-devel*} ; then STATUS=fail MESSAGE="${MESSAGE}Package containing shared libs in the public places should be named lib*. See http://freesource.info/wiki/AltLinux/Policy/SharedLibs." fifiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib{,64}/lib*.so ; then if ! test -z ${REPOCOP_PKG_NAME##lib*-devel} ; then STATUS=fail MESSAGE="${MESSAGE}Package containing shared libs in the public places should be named lib*-devel. See http://freesource.info/wiki/AltLinux/Policy/SharedLibs." fifiif files_exist $REPOCOP_PKG_ROOT{,/usr}/lib{,64}/lib*.a ; then if ! test -z ${REPOCOP_PKG_NAME##lib*-devel-static} ; then STATUS=fail MESSAGE="${MESSAGE}Package containing static libs in the public places should be named lib*-devel-static. See http://freesource.info/wiki/AltLinux/Policy/SharedLibs." fifiexec repocop-test-$STATUS $MESSAGE