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),