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

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

    <bug>
          <bug_id>3311</bug_id>
          
          <creation_ts>2003-11-24 13:11:48 +0300</creation_ts>
          <short_desc>%__python_version expands to nothing if puthon is not installed</short_desc>
          <delta_ts>2008-06-13 12:15:56 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm</component>
          <version>unstable</version>
          <rep_platform>all</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>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sir Raorn">raorn</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10718</commentid>
    <comment_count>0</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2003-11-24 13:11:48 +0300</bug_when>
    <thetext>GLobal macro %__python_version expands to empty string if puthon is not
installed. This causes parse errors in sandman while doing it&apos;s pre-commit check
on specfiles containing something like:

Requires: python &gt;= %__python_version

This macro should look like this:

%__python_version %((%__python -c &apos;import sys; print sys.version&apos; 2&gt;/dev/null ||
echo &quot;unknown&quot;) |head -1 |cut -d&apos; &apos; -f1 |cut -d. -f1,2)

This will not cause any errors in build process since python-devel package is
often BuildRequire&apos;d in such packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10724</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-11-24 18:09:16 +0300</bug_when>
    <thetext>Applied in upcoming rpm-4.0.4-alt28 </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>