Accepting request 508846 from devel:tools:building
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/508846 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/meson?expand=0&rev=20
This commit is contained in:
commit
d8908e6baa
@ -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
|
||||
|
||||
|
@ -17,13 +17,11 @@
|
||||
|
||||
|
||||
%define testsuite 1
|
||||
|
||||
%if %{testsuite}
|
||||
%define name_ext -testsuite
|
||||
%else
|
||||
%define name_ext %nil
|
||||
%endif
|
||||
|
||||
%define _name mesonbuild
|
||||
Name: meson%{name_ext}
|
||||
Version: 0.41.1
|
||||
@ -42,6 +40,7 @@ Patch1: meson-fix-gcc48.patch
|
||||
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package
|
||||
Patch100: meson-test-installed-bin.patch
|
||||
BuildRequires: python3 >= 3.4
|
||||
BuildArch: noarch
|
||||
%if %{testsuite}
|
||||
BuildRequires: bison
|
||||
BuildRequires: boost-devel
|
||||
@ -79,7 +78,6 @@ Requires: ninja
|
||||
Provides: meson-gui = %{version}
|
||||
Obsoletes: meson-gui < %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Meson is a build system designed to optimise programmer productivity.
|
||||
@ -89,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
|
||||
@ -116,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}
|
||||
@ -128,6 +151,7 @@ python3 run_tests.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
%doc contributing.txt COPYING
|
||||
%if !%{testsuite}
|
||||
%{_bindir}/meson
|
||||
@ -145,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
|
||||
|
@ -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
|
||||
|
||||
|
46
meson.spec
46
meson.spec
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package meson-testsuite
|
||||
# spec file for package meson
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -17,13 +17,11 @@
|
||||
|
||||
|
||||
%define testsuite 0
|
||||
|
||||
%if %{testsuite}
|
||||
%define name_ext -testsuite
|
||||
%else
|
||||
%define name_ext %nil
|
||||
%endif
|
||||
|
||||
%define _name mesonbuild
|
||||
Name: meson%{name_ext}
|
||||
Version: 0.41.1
|
||||
@ -42,6 +40,7 @@ Patch1: meson-fix-gcc48.patch
|
||||
# PATCH-FIX-OPENSUSE meson-test-installed-bin.patch dimstar@opensuse.org -- We want the test suite to run against /usr/bin/meson coming from our meson package
|
||||
Patch100: meson-test-installed-bin.patch
|
||||
BuildRequires: python3 >= 3.4
|
||||
BuildArch: noarch
|
||||
%if %{testsuite}
|
||||
BuildRequires: bison
|
||||
BuildRequires: boost-devel
|
||||
@ -79,7 +78,6 @@ Requires: ninja
|
||||
Provides: meson-gui = %{version}
|
||||
Obsoletes: meson-gui < %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Meson is a build system designed to optimise programmer productivity.
|
||||
@ -89,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
|
||||
@ -116,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}
|
||||
@ -128,6 +151,7 @@ python3 run_tests.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
%doc contributing.txt COPYING
|
||||
%if !%{testsuite}
|
||||
%{_bindir}/meson
|
||||
@ -145,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
|
||||
|
Loading…
Reference in New Issue
Block a user