diff --git a/meson.changes b/meson.changes index 93e989c..c4744f1 100644 --- a/meson.changes +++ b/meson.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.spec b/meson.spec index 4856428..1948bb9 100644 --- a/meson.spec +++ b/meson.spec @@ -74,6 +74,7 @@ BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(zlib) %else +# To own /usr/share/vim Requires: ninja # meson-gui was last used in openSUSE Leap 42.1. Provides: meson-gui = %{version} @@ -89,6 +90,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 +Summary: Vim support for meson.build files +Group: Productivity/Text/Editors +BuildArch: noarch +Requires: vim +Supplements: packageand(vim:%{name}) +%{!?vim_data_dir:%global vim_data_dir %_datadir/vim} + +%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 @@ -116,6 +135,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} @@ -128,6 +154,7 @@ python3 run_tests.py %files %defattr(-,root,root) + %doc contributing.txt COPYING %if !%{testsuite} %{_bindir}/meson @@ -145,4 +172,19 @@ python3 run_tests.py %{_mandir}/man1/wraptool.1%{?ext_man} %endif +%files vim +%defattr(-,root,root) + +%doc syntax-highlighting/vim/README +%if !%{testsuite} +%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