SHA256
3
0
forked from pool/meson

Accepting request 506831 from home:RZLourenco

Adds a vim subpackage that adds Meson support to Vim.

OBS-URL: https://build.opensuse.org/request/show/506831
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=49
This commit is contained in:
Dominique Leuenberger 2017-06-29 10:18:00 +00:00 committed by Git OBS Bridge
parent 511b7124fa
commit fbbd9f4191
2 changed files with 47 additions and 0 deletions

View File

@ -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

View File

@ -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