From 8bf4415dbdcffd73337599a2b887c019d0ca2c3c Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 21 Mar 2015 02:04:59 +0300 Subject: [PATCH] modules/rpm: handle mans Signed-off-by: Igor Gnatenko --- interpreter.py | 1 + modules/rpm.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/interpreter.py b/interpreter.py index 4ca5e589a..ace06383d 100644 --- a/interpreter.py +++ b/interpreter.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) diff --git a/modules/rpm.py b/modules/rpm.py index 5e421cb08..7e8214fb4 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -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),