spec-create: fix regexp to detect names starting with 'lib' (sample failing case: lilv)

This commit is contained in:
Silvan Calarco 2013-01-31 06:20:06 +01:00
parent 636e7f8495
commit ef3b9277ae
2 changed files with 5 additions and 2 deletions

View File

@ -13,11 +13,14 @@ Changes in version 1.16.3 - Christmas Release
Fix initialization of SPEC_SOURCE0 and SPEC_SOURCE0_VERBATIM. Fix initialization of SPEC_SOURCE0 and SPEC_SOURCE0_VERBATIM.
* lib/libspec.lib - Silvan Calarco: * lib/libspec.lib - Silvan Calarco:
Reworked sed expressions to get SPEC_SOURCE0_PCKNAME from SPEC_SOURCE0 Reworked sed expressions to get SPEC_SOURCE0_PCKNAME from SPEC_SOURCE0.
* lib/libspec.lib - Silvan Calarco: * lib/libspec.lib - Silvan Calarco:
Also support "=" relation when assigning SPEC_OBSOLETES. Also support "=" relation when assigning SPEC_OBSOLETES.
* plugins/spec-create - Silvan Calarco:
Fix regexp to detect names starting with 'lib' (sample failing case: lilv)
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Changes in version 1.16.2 - Christmas Release Changes in version 1.16.2 - Christmas Release

View File

@ -868,7 +868,7 @@ $spec_cmd_configure_autotools --enable-gtk-doc"
local pck_library="0" local pck_library="0"
local pck_tools="1" local pck_tools="1"
case "$spec_type" in library) case "$spec_type" in library)
[[ "$pck_name" =~ ^lib* ]] || [[ "$pck_name" =~ ^lib.* ]] ||
{ pck_library="1"; pck_tools="0"; } { pck_library="1"; pck_tools="0"; }
esac esac