diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-21 01:50:42 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-21 01:50:42 +0300 |
commit | a7cd29c74b68d34db9066bdfa8a24be1cd8e4667 (patch) | |
tree | 45977647d10270a4c75443be0f229f37dafb650d /modules | |
parent | d8c2f187068a8b7b1333dc59b1c9c28df787df9f (diff) | |
download | meson-a7cd29c74b68d34db9066bdfa8a24be1cd8e4667.zip meson-a7cd29c74b68d34db9066bdfa8a24be1cd8e4667.tar.gz meson-a7cd29c74b68d34db9066bdfa8a24be1cd8e4667.tar.bz2 |
modules/rpm: implement handling includedirs
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rpm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/rpm.py b/modules/rpm.py index 0408ac8..97e50bd 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -62,6 +62,10 @@ class RPMModule: to_delete.append('%%{buildroot}%%{_libdir}/%s' % target.get_filename()) mlog.log('Warning, removing', mlog.bold(target.get_filename()), 'from package because packaging static libs not recommended') + for header in state.headers: + for hdr_src in header.get_sources(): + files_devel.append('%%{_includedir}/%s' % os.path.join( + header.get_install_subdir(), hdr_src)) if len(files_devel) > 0: devel_subpkg = True fn = open('%s.spec' % os.path.join(state.environment.get_build_dir(), proj), |