summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/spec2yocto.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index 6ef97f579..95da15a05 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -1631,17 +1631,21 @@ class MetaSpec:
if pkg_f.startswith( _license ):
pass
else:
- file_d.write( "%s_files += \"%s\"\n" % ( package, pkg_f ) )
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "%s_files += \"%s\"\n" % ( pkg_yocto_name, pkg_f ) )
file_d.write( "\n" )
for package in self.__packages_dico.keys():
p_parse = package.replace( package_name, "${PN}" )
- file_d.write( "FILES_%s = \"${%s_files}\"\n" % ( p_parse, package ) )
+ p_parse = p_parse.replace("-devel","-dev")
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "FILES_%s = \"${%s_files}\"\n" % ( p_parse, pkg_yocto_name ) )
file_d.write( "\n" )
for package in self.__packages_dico.keys():
- file_d.write( "PKG_%s= \"%s\"\n" % (package,package) )
+ pkg_yocto_name = package.replace("-devel","-dev")
+ file_d.write( "PKG_%s= \"%s\"\n" % (pkg_yocto_name,pkg_yocto_name) )
file_d.write( "\n" )
def __create_patch( self ,file_d):