#3338: [patch] build_rpm throws 'File listed twice' errors
-----------------------------------------------------+----------------------
   Reporter:  Dirk Datzert <[EMAIL PROTECTED]>  |                Owner:  jacob  
      
     Status:  new                                    |            Component:  
Uncategorized
    Version:  SVN                                    |           Resolution:    
           
   Keywords:  build_rpm                              |                Stage:  
Accepted     
  Has_patch:  1                                      |           Needs_docs:  0 
           
Needs_tests:  0                                      |   Needs_better_patch:  0 
           
-----------------------------------------------------+----------------------
Comment (by Dirk Datzert <[EMAIL PROTECTED]>):

 Replying to [comment:1 Gary Wilson <[EMAIL PROTECTED]>]:
 > When I try running `python setup.py bdist_rpm`, I get the following
 error:
 >
 > {{{
 > tar -cf dist/Django-0.96-pre.tar Django-0.96-pre
 > gzip -f9 dist/Django-0.96-pre.tar
 > removing 'Django-0.96-pre' (and everything under it)
 > copying dist/Django-0.96-pre.tar.gz -> build/bdist.linux-
 i686/rpm/SOURCES
 > building RPMs
 > rpmbuild -ba --define _topdir /home/gdub/bzr/django/build_rpm-
 3338/build/bdist.linux-i686/rpm --clean build/bdist.linux-
 i686/rpm/SPECS/Django.spec
 > error: File /home/gdub/bzr/django/build_rpm-3338/build/bdist.linux-
 i686/rpm/SOURCES/Django-0.96_pre.tar.gz: No such file or directory
 > error: command 'rpmbuild' failed with exit status 1
 > }}}
 >
 > It appears that the version set in the spec file is `0.96_pre`, and
 can't file the tar file with this name.  Instead it's getting named
 `./build/bdist.linux-i686/rpm/SOURCES/Django-0.96-pre.tar.gz`.  I've never
 built a python package into an RPM.  Do you know what's going on here?
 
 Yes, I can verify this. In the setup.py the version is build with hyphens
 '-', this works fine for sdist command, but this is not allowd in the
 version number syntax of an rpm. I run the setup.py with version build
 like this:
 
 {{{
 Index: setup.py
 ===================================================================
 --- setup.py    (Revision 4386)
 +++ setup.py    (Arbeitskopie)
 @@ -33,7 +33,7 @@
          file_info[0] = '/PURELIB/%s' % file_info[0]
 
  # Dynamically calculate the version based on django.VERSION.
 -version = "%d.%d-%s" % (__import__('django').VERSION)
 +version = "0.95.4386"
 
  setup(
      name = "Django",
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3338#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to