meson/meson.spec

95 lines
2.4 KiB
RPMSpec
Raw Normal View History

2016-10-10 17:31:19 +04:00
Summary: High productivity build system
Name: meson
Version: 0.35.0
Release: 1
License: ASL 2.0
Group: Development/Tools
Url: http://mesonbuild.com/
Source0: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz.asc
# https://github.com/mesonbuild/meson/commit/71eddec
Patch0: 0001-Add-missing-dependency-in-gnome.mkenums-test.patch
BuildArch: noarch
BuildRequires: ninja
BuildRequires: python3-setuptools
BuildRequires: pkgconfig(python3)
# Various languages
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
BuildRequires: gcc-objc
BuildRequires: gcc-objc++
BuildRequires: gnustep-base-devel
BuildRequires: java-devel
BuildRequires: mono
BuildRequires: pkgconfig(mono)
# Various libs support
BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext
BuildRequires: git
BuildRequires: gtk-doc
BuildRequires: vala
BuildRequires: boost-devel
BuildRequires: gtest-devel
BuildRequires: wxgtku3.0-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(zlib)
BuildRequires: python3-gobject3
BuildRequires: python3-cython
Requires: ninja
%description
Meson is a build system designed to optimize programmer 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.
%files
%doc authors.txt contributing.txt README.md COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}conf
%{_bindir}/%{name}introspect
%{_bindir}/wraptool
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}conf.1.*
%{_mandir}/man1/%{name}introspect.1.*
%{_mandir}/man1/wraptool.1.*
%{py3_puresitedir}/mesonbuild/
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info/
%{_sysconfdir}/rpm/macros.d/macros.%{name}
#----------------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
%build
%py3_build
%install
%py3_install
for f in %{buildroot}%{_bindir}/*.py; do
mv ${f} ${f%%.py}
done
# install meson rpm macro helper
install -D -m 0644 data/macros.%{name} %{buildroot}%{_sysconfdir}/rpm/macros.d/macros.%{name}
%check
# Lack of gmock.
rm -rf "test cases/frameworks/3 gmock/"
export MESON_PRINT_TEST_OUTPUT=1
%__python3 run_tests.py