Bug 39821 - No such file or directory: '/usr/share/spectemplates/gem.spec'
Summary: No such file or directory: '/usr/share/spectemplates/gem.spec'
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: github2spec (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: obirvalger@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-19 14:24 MSK by Ivan A. Melnikov
Modified: 2021-03-19 17:19 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)