#!/bin/sh files_exist() { [ -e "$1" ] } STATUS=ok MESSAGE= if ! files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.{so*,a} ; then exec repocop-test-skip fi if files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/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*" fi fi if files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.so ; then if ! test -z ${REPOCOP_PKG_NAME##lib*-devel} && \ STATUS=fail MESSAGE="${MESSAGE}Package containing shared libs in the public places should be named lib*-devel" fi fi if files_exist $REPOCOP_PKG_ROOT{,/usr}/lib/lib*.a ; then if ! test -z ${REPOCOP_PKG_NAME##lib*-devel-static} && \ STATUS=fail MESSAGE="${MESSAGE}Package containing static libs in the public places should be named lib*-devel-static" fi fi exec repocop-test-$STATUS $MESSAGE