diff --git a/meson-testsuite.changes b/meson-testsuite.changes index 93e989c..c4744f1 100644 --- a/meson-testsuite.changes +++ b/meson-testsuite.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 27 14:19:46 UTC 2017 - rodrigo.z.lourenco@tecnico.ulisboa.pt + +- Add a vim subpackage to add Meson support to Vim. + ------------------------------------------------------------------- Fri Jun 23 21:47:40 UTC 2017 - dimstar@opensuse.org diff --git a/meson-testsuite.spec b/meson-testsuite.spec index fc61335..8d60edf 100644 --- a/meson-testsuite.spec +++ b/meson-testsuite.spec @@ -87,6 +87,24 @@ CCache and the like. Supported languages include C, C++, Fortran, Java, Rust. Build definitions are written in a non-turing complete Domain Specific Language. +%package vim +%{!?vim_data_dir:%global vim_data_dir %_datadir/vim} +Summary: Vim support for meson.build files +Group: Productivity/Text/Editors +Requires: vim +Supplements: packageand(vim:%{name}) +BuildArch: noarch + +%description vim +Meson is a build system designed to optimise programmer productivity. +It aims to do this by providing support for software development +tools and practices, such as unit tests, coverage reports, Valgrind, +CCache and the like. Supported languages include C, C++, Fortran, +Java, Rust. Build definitions are written in a non-turing complete +Domain Specific Language. + +This package provides support for meson.build files in Vim. + %prep %setup -q -n meson-%{version} %patch0 -p1 @@ -114,6 +132,13 @@ python3 setup.py install \ install -Dpm 0644 data/macros.meson \ %{buildroot}%{_rpmconfigdir}/macros.d/macros.meson + +install -Dpm 0644 syntax-highlighting/vim/ftdetect/meson.vim \ + -t %{buildroot}%{vim_data_dir}/site/ftdetect +install -Dpm 0644 syntax-highlighting/vim/indent/meson.vim \ + -t %{buildroot}%{vim_data_dir}/site/indent +install -Dpm 0644 syntax-highlighting/vim/syntax/meson.vim \ + -t %{buildroot}%{vim_data_dir}/site/syntax %endif %if %{testsuite} @@ -126,6 +151,7 @@ python3 run_tests.py %files %defattr(-,root,root) + %doc contributing.txt COPYING %if !%{testsuite} %{_bindir}/meson @@ -143,4 +169,18 @@ python3 run_tests.py %{_mandir}/man1/wraptool.1%{?ext_man} %endif +%if !%{testsuite} +%files vim +%defattr(-,root,root) +%doc syntax-highlighting/vim/README +%dir %{vim_data_dir} +%dir %{vim_data_dir}/site +%dir %{vim_data_dir}/site/ftdetect +%dir %{vim_data_dir}/site/indent +%dir %{vim_data_dir}/site/syntax +%{vim_data_dir}/site/ftdetect/meson.vim +%{vim_data_dir}/site/indent/meson.vim +%{vim_data_dir}/site/syntax/meson.vim +%endif + %changelog