예제 #1
0
파일: spec.py 프로젝트: cicku/pypi2spec
 def get_specfile(self):
     """ Return the path to the spec file.
     """
     specdir = get_rpm_tag('_specdir')
     if self.package.name.startswith('python-'):
         specname = '%s.spec' % self.__dict['barename']
     else:
         specname = 'python-%s.spec' % self.__dict['barename']
     return '%s/%s' % (specdir, specname)
예제 #2
0
파일: spec.py 프로젝트: lmacken/pypi2spec
 def get_specfile(self):
     """ Return the path to the spec file.
     """
     specdir = get_rpm_tag('_specdir')
     specname = '%s.spec' % self.package.name
     return '%s/%s' % (specdir, specname)