Bump to meson 0.51.2 70/214570/1 accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv accepted/tizen/5.5/base/20191030.082943 accepted/tizen/5.5/base/mobile/hotfix/20201023.085436 accepted/tizen/5.5/base/wearable/hotfix/20201023.081635 accepted/tizen/base/20190929.221351 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_base/20190924.070314 tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 24 Sep 2019 05:42:12 +0000 (14:42 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 24 Sep 2019 05:42:12 +0000 (14:42 +0900)
Change-Id: Iccf086c9d03ef9d18bd5ec796bd5cb2a73aaf512
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/meson.manifest [new file with mode: 0644]
packaging/meson.spec [new file with mode: 0644]

diff --git a/packaging/meson.manifest b/packaging/meson.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/meson.spec b/packaging/meson.spec
new file mode 100644 (file)
index 0000000..3509a05
--- /dev/null
@@ -0,0 +1,106 @@
+%define _name   mesonbuild
+Name:           meson
+Version:        0.51.2
+Release:        0
+Summary:        Python-based build system
+License:        Apache-2.0
+Group:          Development/Tools/Building
+Url:            http://mesonbuild.com/
+Source:         https://github.com/%{_name}/meson/releases/download/%{version}/meson-%{version}.tar.gz
+SOURCE1001:     meson.manifest
+BuildRequires:  python3 >= 3.4
+BuildRequires:  python3-setuptools
+BuildArch:      noarch
+Requires:       ninja
+Requires:       python3-xml
+Requires:       python3-setuptools
+
+Provides:       meson-gui = %{version}
+Obsoletes:      meson-gui < %{version}
+
+%description
+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.
+
+%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}
+cp %{SOURCE1001} .
+
+sed -i "/static/d" test\ cases/frameworks/1\ boost/meson.build
+
+# We do not have gmock available at this moment - can't run the test suite for it
+rm -rf "test cases/frameworks/3 gmock" \
+       "test cases/objc/2 nsstring"
+
+# Remove hashbang from non-exec script
+sed -i '1{/\/usr\/bin\/env/d;}' ./mesonbuild/rewriter.py
+
+%build
+python3 setup.py build
+
+%install
+python3 setup.py install \
+  --root=%{buildroot} --prefix=%{_prefix}
+
+install -Dpm 0644 data/macros.meson \
+  %{buildroot}%{_rpmconfigdir}/macros.d/macros.meson
+
+mkdir -p %{buildroot}%{vim_data_dir}/site/ftdetect
+install -Dpm 0644 data/syntax-highlighting/vim/ftdetect/meson.vim \
+  -t %{buildroot}%{vim_data_dir}/site/ftdetect
+
+mkdir -p %{buildroot}%{vim_data_dir}/site/indent
+install -Dpm 0644 data/syntax-highlighting/vim/indent/meson.vim \
+  -t %{buildroot}%{vim_data_dir}/site/indent
+
+mkdir -p %{buildroot}%{vim_data_dir}/site/syntax
+install -Dpm 0644 data/syntax-highlighting/vim/syntax/meson.vim \
+  -t %{buildroot}%{vim_data_dir}/site/syntax
+
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%license COPYING
+%{_bindir}/meson
+%{python3_sitelib}/%{_name}/
+%{python3_sitelib}/meson-*
+%{_rpmconfigdir}/macros.d/macros.meson
+%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
+
+%files vim
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%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
+
+%changelog