Bug 39821

Summary: No such file or directory: '/usr/share/spectemplates/gem.spec'
Product: Sisyphus Reporter: Ivan A. Melnikov <iv>
Component: github2specAssignee: obirvalger <obirvalger>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: cas, grenka, obirvalger
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Ivan A. Melnikov 2021-03-19 14:24:00 MSK
Имеем:

$ rpm -qa |grep '^g.*spec-'
genspec-1.3.11-alt1.noarch
github2spec-1.4.12-alt1.noarch

Такая вот ошибка:

$ github2spec -s  'https://github.com/envygeeks/pathutil'
Traceback (most recent call last):
  File "/usr/bin/genspec", line 338, in <module>
    spec = Spec(keys, call, check_call, args.tag, args.date, args.disable_name_translation)
  File "/usr/bin/genspec", line 123, in __init__
    self._apply()
  File "/usr/bin/genspec", line 130, in _apply
    file = open( templates_path + spectype + ".spec", "r" )
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/spectemplates/gem.spec'

Действительно, соответствующий шаблон называется 'ruby', шаблона 'gem' в genspec нет. Команда

github2spec -s  -T ruby 'https://github.com/envygeeks/pathutil'

работает и даже генерирует что-то похожее на то, что нужно.
Comment 1 Repository Robot 2021-03-19 17:19:43 MSK
github2spec-1.4.12-alt2 -> sisyphus:

 Fri Mar 19 2021 Mikhail Gordeev <obirvalger@altlinux> 1.4.12-alt2
 - Switch back to ruby type (ALT #39821)