diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-23 02:21:05 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-23 02:22:19 +0300 |
commit | 4b33a88eeb65e8cde8fa454be5d8bc953a042c9a (patch) | |
tree | 17f2e860e7c0aa36314a3c51586d956a46cd6e91 /modules | |
parent | e2b63141d08d3317b32acf8af7ce0854c7ffb1ee (diff) | |
download | meson-4b33a88eeb65e8cde8fa454be5d8bc953a042c9a.zip meson-4b33a88eeb65e8cde8fa454be5d8bc953a042c9a.tar.gz meson-4b33a88eeb65e8cde8fa454be5d8bc953a042c9a.tar.bz2 |
modules/rpm: handle Gir and Typelib from GNOME
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rpm.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/rpm.py b/modules/rpm.py index 57c1de5..a91b313 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -19,6 +19,7 @@ import build import compilers import datetime import mlog +import modules.gnome import os class RPMModule: @@ -62,6 +63,10 @@ class RPMModule: to_delete.add('%%{buildroot}%%{_libdir}/%s' % target.get_filename()) mlog.log('Warning, removing', mlog.bold(target.get_filename()), 'from package because packaging static libs not recommended') + elif isinstance(target, modules.gnome.GirTarget) and target.should_install(): + files_devel.add('%%{_datadir}/gir-1.0/%s' % target.get_filename()[0]) + elif isinstance(target, modules.gnome.TypelibTarget) and target.should_install(): + files.add('%%{_libdir}/girepository-1.0/%s' % target.get_filename()[0]) for header in state.headers: if len(header.get_install_subdir()) > 0: files_devel.add('%%{_includedir}/%s/' % header.get_install_subdir()) |