#!/bin/sh files_exist() { [ -e "$1" ] } STATUS=ok MESSAGE= if ! files_exist $REPOCOP_PKG_ROOT{,/usr}/lib{,64}/lib*.{so*,a} ; then exec repocop-test-skip fi if 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." fi fi if 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." fi fi if 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." fi fi exec repocop-test-$STATUS $MESSAGE