================================================================================
$Id: 3-Python_MODULE.txt 2 2005-01-10 15:19:27Z cray $
--------------------------------------------------------------------------------
       python

    1.    python    python-module-;
    
    2.        pythonX.Y   
        pythonX.Y-module-;
        
    3.          ,
           ,    
          :
        
            python = %__python_version

            python-devel = %__python_version
            
            : -    apt, 
                  ,       
                python-devel     python-dev,   
                     python-dev
                ____ .     
                 ,    .   
                  FAQ Q20.   ,   
                ,     -  -  -
                   .
        
    4.    GROUP     Development/Python/Modules;
        
    5.       ,  
             python-module-serial,   
         .   , .  ,   ,
             ;
        
    6.    - python  ,  
              
         (   ),    ( 
         "    /home/vasya/petya.py,    
        ").    ( ,  );
        
    7.       rpm-build-python;
    
    8.          
        :
        
            python setup.py bdist-altrpm --spec-only,
            
        ,  setup.py     . ,
        .   distutils  bdist_altrpm (  rpm-build-python).
        
          :
    
        1.   :

                rpmbuild -ba python-module-serial.spec

               python-module-serial-*.rpm, ,  rpm  
             (, 2.3)  python. 
            
        2.     :            
            
                rpmbuild -ba python-module-serial.spec --with pythonX.Y

                pythonX.Y-module-serial...rpm,
            (,      
               );

              ,   X.Y   2.2, 2.3 
            (  ) 2.4.

              ,      
            python   

                Requires: %{__python_package_prefix}-<anotherModule>

            

                Requires: python%{__python_version}(anotherModule)

            ,  ,      
                 python.


             ,     (rpm-build-python-0.12-alt{3,4})
              pythonX.Y-module---.src.rpm __ 
                python.  ,    
            "" ,   --with python_auto. , 
             --with pythonX.Y     , 
                 ALT Python Policy :-).
    
================================================================================

