2015-07-24 16:37:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package meson
|
|
|
|
#
|
2016-02-11 20:42:09 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-07-24 16:37:01 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-02-11 20:42:09 +01:00
|
|
|
%define _name mesonbuild
|
2015-07-24 16:37:01 +02:00
|
|
|
Name: meson
|
2016-08-17 18:48:47 +02:00
|
|
|
Version: 0.33.0
|
2015-07-24 16:37:01 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: High productivity build system
|
|
|
|
License: Apache-2.0
|
2015-08-21 11:26:36 +02:00
|
|
|
Group: Development/Tools/Building
|
2015-07-24 16:37:01 +02:00
|
|
|
Url: http://mesonbuild.com/
|
2016-02-11 20:42:09 +01:00
|
|
|
Source: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://github.com/%{_name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
|
2015-09-14 12:11:26 +02:00
|
|
|
Source2: %{name}.keyring
|
2016-08-17 18:48:47 +02:00
|
|
|
# PATCH-FIX-UPSTREAM meson-633.patch dimstar@opensuse.org -- Handle both DT_RPATH as well as DT_RUNPATH when fixing rpath settings
|
|
|
|
Patch0: meson-633.patch
|
|
|
|
# PATCH-FIX-UPSTREAM meson-typelib-install.patch dimstar@opensuse.org -- Correct install path for gi typelibs, taken from upstream git
|
|
|
|
Patch1: meson-typelib-install.patch
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-fortran
|
|
|
|
BuildRequires: gcc-obj-c++
|
2015-09-14 12:11:26 +02:00
|
|
|
BuildRequires: gcc-objc
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: git
|
2015-09-14 12:11:26 +02:00
|
|
|
BuildRequires: gtk-doc
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: java-devel
|
2015-09-14 12:11:26 +02:00
|
|
|
BuildRequires: libqt5-qtbase-devel
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: mono-core
|
|
|
|
BuildRequires: mono-devel
|
|
|
|
BuildRequires: ninja
|
2016-07-23 21:45:57 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: python3 >= 3.4
|
|
|
|
BuildRequires: python3-devel
|
2015-09-14 12:11:26 +02:00
|
|
|
BuildRequires: python3-gobject
|
2016-02-11 20:42:09 +01:00
|
|
|
BuildRequires: python3-setuptools
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: wxWidgets-devel >= 3.0.0
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(protobuf)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
Requires: ninja
|
2016-07-23 21:45:57 +02:00
|
|
|
# meson-gui was last used in openSUSE Leap 42.1.
|
|
|
|
Provides: %{name}-gui = %{version}
|
|
|
|
Obsoletes: %{name}-gui < %{version}
|
2015-07-24 16:37:01 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2016-07-23 21:45:57 +02:00
|
|
|
Meson is a build system designed to optimise programmer
|
2015-07-24 16:37:01 +02:00
|
|
|
productivity. It aims to do this by providing simple,
|
|
|
|
out-of-the-box support for modern software development tools and
|
|
|
|
practices, such as unit tests, coverage reports, Valgrind, CCache
|
|
|
|
and the like.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-08-17 18:48:47 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2015-07-24 16:37:01 +02:00
|
|
|
|
|
|
|
# Lack of gtest, gmock, gnustep.
|
|
|
|
rm -rf "test cases/frameworks/2 gtest" \
|
|
|
|
"test cases/frameworks/3 gmock/" \
|
|
|
|
"test cases/objc/2 nsstring"
|
|
|
|
|
|
|
|
%build
|
2016-02-11 20:42:09 +01:00
|
|
|
python3 setup.py build
|
2015-07-24 16:37:01 +02:00
|
|
|
|
|
|
|
%install
|
2016-02-11 20:42:09 +01:00
|
|
|
python3 setup.py install \
|
|
|
|
--root=%{buildroot} --prefix=%{_prefix}
|
2016-05-07 11:25:18 +02:00
|
|
|
|
|
|
|
for file in %{buildroot}%{_bindir}/*.py; do
|
2016-05-16 14:19:59 +02:00
|
|
|
mv -fv "$file" "${file%.py}"
|
2016-05-07 11:25:18 +02:00
|
|
|
done
|
2016-07-23 21:45:57 +02:00
|
|
|
install -Dm 0644 data/macros.%{name} \
|
|
|
|
%{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name}
|
2015-07-24 16:37:01 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
export MESON_PRINT_TEST_OUTPUT=1
|
|
|
|
python3 run_tests.py
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-05-08 23:36:10 +02:00
|
|
|
%doc authors.txt contributing.txt COPYING
|
2015-07-24 16:37:01 +02:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/%{name}conf
|
|
|
|
%{_bindir}/%{name}introspect
|
|
|
|
%{_bindir}/wraptool
|
2016-02-11 20:42:09 +01:00
|
|
|
%{python3_sitelib}/%{_name}/
|
|
|
|
%{python3_sitelib}/%{name}-*
|
2015-07-24 16:37:01 +02:00
|
|
|
%{_rpmconfigdir}/macros.d/macros.%{name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/%{name}conf.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/%{name}introspect.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/wraptool.1%{?ext_man}
|
|
|
|
|
|
|
|
%changelog
|