From 7e3e29d2a2a985c373d5453112f8ead8e914c4e1bd9d4a90c34fd4c39fdf0391 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 17 Jan 2019 12:16:42 +0000 Subject: [PATCH] Accepting request 666688 from home:scarabeus_iv:branches:devel:tools:building - Switch to distutils build and properly create egg-info OBS-URL: https://build.opensuse.org/request/show/666688 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=125 --- meson.changes | 5 +++++ meson.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/meson.changes b/meson.changes index 51033c5..07ad2d8 100644 --- a/meson.changes +++ b/meson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 17 11:57:17 UTC 2019 - Tomáš Chvátal + +- Switch to distutils build and properly create egg-info + ------------------------------------------------------------------- Wed Jan 16 11:20:15 UTC 2019 - Dominique Leuenberger diff --git a/meson.spec b/meson.spec index e6fac3e..1159e12 100644 --- a/meson.spec +++ b/meson.spec @@ -26,7 +26,7 @@ %endif %define _name mesonbuild %{!?vim_data_dir:%global vim_data_dir %{_datadir}/vim} -%bcond_without setuptools +%bcond_with setuptools Name: meson%{name_ext} Version: 0.49.0 Release: 0 @@ -218,6 +218,10 @@ from mesonbuild.mesonmain import main sys.exit(main()) """ > %{buildroot}%{_bindir}/%{name} chmod +x %{buildroot}%{_bindir}/%{name} + +# ensure egg-info is a directory +rm %{buildroot}%{python3_sitelib}/*.egg-info +cp -r meson.egg-info %{buildroot}%{python3_sitelib}/meson-%{version}-py%{python3_version}.egg-info %endif %endif