modules/rpm: handle mans

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
pull/52/head
Igor Gnatenko 10 years ago
parent 51a6838048
commit 8bf4415dbd
  1. 1
      interpreter.py
  2. 3
      modules/rpm.py

@ -620,6 +620,7 @@ class ModuleHolder(InterpreterObject):
state.compilers = self.interpreter.build.compilers
state.targets = self.interpreter.build.targets
state.headers = self.interpreter.build.get_headers()
state.man = self.interpreter.build.get_man()
value = fn(state, args, kwargs)
return self.interpreter.module_method_callback(value)

@ -68,6 +68,9 @@ class RPMModule:
else:
for hdr_src in header.get_sources():
files_devel.append('%%{_includedir}/%s' % hdr_src)
for man in state.man:
for man_file in man.get_sources():
files.append('%%{_mandir}/man%u/%s.*' % (int(man_file.split('.')[-1]), man_file))
if len(files_devel) > 0:
devel_subpkg = True
fn = open('%s.spec' % os.path.join(state.environment.get_build_dir(), proj),

Loading…
Cancel
Save