<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39821</bug_id>
          
          <creation_ts>2021-03-19 14:24:00 +0300</creation_ts>
          <short_desc>No such file or directory: &apos;/usr/share/spectemplates/gem.spec&apos;</short_desc>
          <delta_ts>2021-03-19 17:19:43 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>github2spec</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="obirvalger@altlinux.org">obirvalger</assigned_to>
          <cc>cas</cc>
    
    <cc>grenka</cc>
    
    <cc>obirvalger</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>197090</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-03-19 14:24:00 +0300</bug_when>
    <thetext>Имеем:

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

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

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

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

github2spec -s  -T ruby &apos;https://github.com/envygeeks/pathutil&apos;

работает и даже генерирует что-то похожее на то, что нужно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197098</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-03-19 17:19:43 +0300</bug_when>
    <thetext>github2spec-1.4.12-alt2 -&gt; sisyphus:

 Fri Mar 19 2021 Mikhail Gordeev &lt;obirvalger@altlinux&gt; 1.4.12-alt2
 - Switch back to ruby type (ALT #39821)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>