fbdd6d
%global libname mesonbuild
fbdd6d
6af1fd
# Don’t run the tests by default, since they are rather flaky.
6af1fd
# I’ll get to getting them running eventually, but free time is sparse.
6af1fd
# — ekulik
fbdd6d
%bcond_with check
fbdd6d
fbdd6d
Name:           meson
43d029
Version:        0.58.2
43d029
Release:        2%{?dist}
fbdd6d
Summary:        High productivity build system
fbdd6d
fbdd6d
License:        ASL 2.0
6af1fd
URL:            https://mesonbuild.com/
6af1fd
Source:         https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
fbdd6d
fbdd6d
BuildArch:      noarch
fbdd6d
6af1fd
BuildRequires:  python3-devel
6af1fd
BuildRequires:  python3-setuptools
6af1fd
Requires:       python%{python3_version}dist(setuptools)
6af1fd
Requires:       ninja-build
6af1fd
Requires:       python3-devel
6af1fd
fbdd6d
%if %{with check}
fbdd6d
BuildRequires:  ninja-build
6af1fd
# Some tests expect the unversioned executable
6af1fd
BuildRequires:  /usr/bin/python
fbdd6d
# Various languages
fbdd6d
BuildRequires:  gcc
fbdd6d
BuildRequires:  libasan
fbdd6d
BuildRequires:  gcc-c++
fbdd6d
BuildRequires:  gcc-gfortran
fbdd6d
BuildRequires:  gcc-objc
fbdd6d
BuildRequires:  gcc-objc++
fbdd6d
BuildRequires:  java-devel
6af1fd
BuildRequires:  libomp-devel
fbdd6d
BuildRequires:  mono-core mono-devel
fbdd6d
BuildRequires:  rust
fbdd6d
# Since the build is noarch, we can't use %%ifarch
fbdd6d
#%%ifarch %%{ldc_arches}
fbdd6d
#BuildRequires:  ldc
fbdd6d
#%%endif
fbdd6d
# Various libs support
fbdd6d
BuildRequires:  boost-devel
fbdd6d
BuildRequires:  gtest-devel
fbdd6d
BuildRequires:  gmock-devel
fbdd6d
BuildRequires:  qt5-qtbase-devel
6af1fd
BuildRequires:  qt5-qtbase-private-devel
6af1fd
BuildRequires:  qt5-linguist
fbdd6d
BuildRequires:  vala
6af1fd
BuildRequires:  python3-gobject-base
fbdd6d
BuildRequires:  wxGTK3-devel
fbdd6d
BuildRequires:  flex
fbdd6d
BuildRequires:  bison
fbdd6d
BuildRequires:  gettext
fbdd6d
BuildRequires:  gnustep-base-devel
fbdd6d
BuildRequires:  %{_bindir}/gnustep-config
fbdd6d
BuildRequires:  git-core
fbdd6d
BuildRequires:  pkgconfig(protobuf)
fbdd6d
BuildRequires:  pkgconfig(glib-2.0)
fbdd6d
BuildRequires:  pkgconfig(glib-sharp-2.0)
fbdd6d
BuildRequires:  pkgconfig(gobject-introspection-1.0)
fbdd6d
BuildRequires:  gtk-doc
fbdd6d
BuildRequires:  itstool
fbdd6d
BuildRequires:  pkgconfig(zlib)
6af1fd
BuildRequires:  python3dist(cython)
fbdd6d
BuildRequires:  pkgconfig(sdl2)
fbdd6d
BuildRequires:  %{_bindir}/pcap-config
fbdd6d
BuildRequires:  pkgconfig(vulkan)
fbdd6d
BuildRequires:  llvm-devel
fbdd6d
BuildRequires:  cups-devel
fbdd6d
%endif
6af1fd
fbdd6d
%description
fbdd6d
Meson is a build system designed to optimize programmer
fbdd6d
productivity. It aims to do this by providing simple, out-of-the-box
fbdd6d
support for modern software development tools and practices, such as
fbdd6d
unit tests, coverage reports, Valgrind, CCache and the like.
fbdd6d
fbdd6d
%prep
fbdd6d
%autosetup -p1
6af1fd
# Macro should not change when we are redefining bindir
6af1fd
sed -i -e "/^%%__meson /s| .*$| %{_bindir}/%{name}|" data/macros.%{name}
fbdd6d
fbdd6d
%build
fbdd6d
%py3_build
fbdd6d
fbdd6d
%install
fbdd6d
%py3_install
6af1fd
install -Dpm0644 -t %{buildroot}%{rpmmacrodir} data/macros.%{name}
fbdd6d
fbdd6d
%if %{with check}
fbdd6d
%check
6af1fd
# Remove Boost tests for now, because it requires Python 2
6af1fd
rm -rf "test cases/frameworks/1 boost"
6af1fd
# Remove MPI tests for now because it is complicated to run
6af1fd
rm -rf "test cases/frameworks/17 mpi"
fbdd6d
export MESON_PRINT_TEST_OUTPUT=1
6af1fd
%{__python3} ./run_tests.py
fbdd6d
%endif
fbdd6d
fbdd6d
%files
fbdd6d
%license COPYING
fbdd6d
%{_bindir}/%{name}
fbdd6d
%{python3_sitelib}/%{libname}/
fbdd6d
%{python3_sitelib}/%{name}-*.egg-info/
fbdd6d
%{_mandir}/man1/%{name}.1*
fbdd6d
%{rpmmacrodir}/macros.%{name}
fbdd6d
%dir %{_datadir}/polkit-1
fbdd6d
%dir %{_datadir}/polkit-1/actions
fbdd6d
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
fbdd6d
fbdd6d
fbdd6d
%changelog
43d029
* Tue Nov 16 2021 Tomas Pelka <tpelka@redhat.com> - 0.58.2-2
43d029
- Bump release and rebuild in -candidate target to fix gating issues
43d029
  Resolves: rhbz#2006519
43d029
43d029
* Mon Oct 18 2021 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.58.2-1
43d029
- Update meson to 0.58-2
43d029
  Resolves: rhbz#2006519
43d029
6af1fd
* Tue Dec 15 2020 Danilo C. L. de Paula <ddepaula@redhat.com> - 0.55.3-3
6af1fd
- build: use PIE objects for static libraries
6af1fd
  Resolves: rhbz#1899620
6af1fd
  (meson builds QEMU with PIC objects instead of PIE)
6af1fd
6af1fd
* Thu Oct 15 2020 Danilo C. L. de Paula <ddepaula@redhat.com> - 0.55.3-2
6af1fd
- Add python3-devel dependency, as asked by the BZ..
6af1fd
- Resolves: rhbz#1872692
6af1fd
6af1fd
* Thu Oct 08 2020 Danilo de Paula <ddepaula@redhat.com> - 0.55.3-1
6af1fd
- Update to 0.55.3, based on upstream Fedora
6af1fd
- Resolves: rhbz#1872692
6af1fd
fbdd6d
* Mon Feb 04 2019 Stephen Gallagher <sgallagh@redhat.com> - 0.49.2-1
fbdd6d
- Update to 0.49.2
fbdd6d
- Drop upstreamed patch
fbdd6d
- Resolves: rhbz#1666733
fbdd6d
fbdd6d
* Mon Dec 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.45.1-3
fbdd6d
- Backport patch to fix gnome.mkenums_simple() when used with file() arguments
fbdd6d
fbdd6d
* Mon Aug 13 2018 Troy Dawson <tdawson@redhat.com> - 0.45.1-2
fbdd6d
- Add Requires python3-devel
fbdd6d
fbdd6d
* Wed Mar 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.45.1-1
fbdd6d
- Update to 0.45.1
fbdd6d
fbdd6d
* Sun Mar 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.45.0-1
fbdd6d
- Update to 0.45.0
fbdd6d
fbdd6d
* Tue Feb 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.44.1-1
fbdd6d
- Update to 0.44.1
fbdd6d
fbdd6d
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.44.0-2
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fbdd6d
fbdd6d
* Sun Dec 10 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.44.0-1
fbdd6d
- Update to 0.44.0
fbdd6d
fbdd6d
* Mon Oct 09 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.43.0-1
fbdd6d
- Update to 0.43.0
fbdd6d
fbdd6d
* Tue Sep 12 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.42.1-1
fbdd6d
- Update to 0.42.1
fbdd6d
fbdd6d
* Fri Aug 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.42.0-1
fbdd6d
- Update to 0.42.0
fbdd6d
fbdd6d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.41.2-2
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fbdd6d
fbdd6d
* Wed Jul 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.41.2-1
fbdd6d
- Update to 0.41.2
fbdd6d
fbdd6d
* Tue Jul 18 2017 Kalev Lember <klember@redhat.com> - 0.41.1-3
fbdd6d
- Backport various gtk-doc fixes from upstream
fbdd6d
fbdd6d
* Thu Jul 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.41.1-2
fbdd6d
- Strip trailing slash from pkg-config files
fbdd6d
fbdd6d
* Mon Jun 19 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.41.1-1
fbdd6d
- Update to 0.41.1
fbdd6d
fbdd6d
* Tue Jun 13 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.41.0-1
fbdd6d
- Update to 0.41.0
fbdd6d
fbdd6d
* Wed May 31 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.1-2
fbdd6d
- Don't run ldc tests
fbdd6d
fbdd6d
* Fri Apr 28 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.1-1
fbdd6d
- Update to 0.40.1
fbdd6d
fbdd6d
* Sun Apr 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.0-1
fbdd6d
- Update to 0.40.0
fbdd6d
fbdd6d
* Thu Apr 13 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.39.1-2
fbdd6d
- Exclude ldc for module builds
fbdd6d
fbdd6d
* Thu Mar 16 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.39.1-1
fbdd6d
- Update to 0.39.1
fbdd6d
fbdd6d
* Mon Mar 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.39.0-1
fbdd6d
- Update to 0.39.0
fbdd6d
fbdd6d
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.38.1-1
fbdd6d
- Update to 0.38.1
fbdd6d
fbdd6d
* Sun Jan 29 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.38.0-1
fbdd6d
- Update to 0.38.0
fbdd6d
fbdd6d
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.37.1-2
fbdd6d
- Rebuild for Python 3.6
fbdd6d
fbdd6d
* Tue Dec 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.37.1-1
fbdd6d
- Update to 0.37.1
fbdd6d
fbdd6d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.37.0-2
fbdd6d
- Rebuild for Python 3.6
fbdd6d
fbdd6d
* Sun Dec 18 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.37.0-1
fbdd6d
- Update to 0.37.0
fbdd6d
fbdd6d
* Thu Dec 15 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-4
fbdd6d
- Backport more RPM macro fixes (FPC ticket #655)
fbdd6d
fbdd6d
* Tue Dec 13 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-3
fbdd6d
- Backport fixes to RPM macros
fbdd6d
fbdd6d
* Sat Dec 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-2
fbdd6d
- Print test output during build
fbdd6d
fbdd6d
* Mon Nov 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-1
fbdd6d
- Update to 0.36.0
fbdd6d
fbdd6d
* Tue Oct 18 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.1-1
fbdd6d
- Update to 0.35.1 (RHBZ #1385986)
fbdd6d
fbdd6d
* Tue Oct 11 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-3
fbdd6d
- Backport couple of fixes
fbdd6d
fbdd6d
* Wed Oct 05 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-2
fbdd6d
- Apply patch to fix FTBFS
fbdd6d
fbdd6d
* Mon Oct 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-1
fbdd6d
- Update to 0.35.0
fbdd6d
fbdd6d
* Wed Sep 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.34.0-2
fbdd6d
- Run D test suite
fbdd6d
fbdd6d
* Wed Sep 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.34.0-1
fbdd6d
- Update to 0.34.0
fbdd6d
fbdd6d
* Tue Aug 09 2016 Jon Ciesla <limburgher@gmail.com> - 0.33.0-2
fbdd6d
- Obsoletes fix.
fbdd6d
fbdd6d
* Tue Aug 09 2016 Jon Ciesla <limburgher@gmail.com> - 0.33.0-1
fbdd6d
- 0.33.0
fbdd6d
- GUI dropped upstream.
fbdd6d
fbdd6d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.0-2
fbdd6d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fbdd6d
fbdd6d
* Thu Apr 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.31.0-1
fbdd6d
- Update to 0.31.0
fbdd6d
fbdd6d
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.30.0-1
fbdd6d
- Update to 0.30.0
fbdd6d
fbdd6d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.0-2
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fbdd6d
fbdd6d
* Sun Jan 24 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.29.0-1
fbdd6d
- Update to 0.29.0
fbdd6d
fbdd6d
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.28.0-2
fbdd6d
- Rebuilt for Boost 1.60
fbdd6d
fbdd6d
* Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.28.0-1
fbdd6d
- 0.28.0
fbdd6d
fbdd6d
* Wed Nov 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.27.0-1
fbdd6d
- 0.27.0
fbdd6d
fbdd6d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.0-3
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fbdd6d
fbdd6d
* Fri Oct 30 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.26.0-2
fbdd6d
- Fix rpm macros for using optflags
fbdd6d
fbdd6d
* Sun Sep 13 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.26.0-1
fbdd6d
- 0.26.0
fbdd6d
fbdd6d
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.25.0-4
fbdd6d
- Rebuilt for Boost 1.59
fbdd6d
fbdd6d
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25.0-3
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
fbdd6d
fbdd6d
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.25.0-2
fbdd6d
- rebuild for Boost 1.58
fbdd6d
fbdd6d
* Sun Jul 12 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.0-1
fbdd6d
- 0.25.0
fbdd6d
fbdd6d
* Sat Jul 11 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-3
fbdd6d
- Update URLs
fbdd6d
- drop unneded hacks in install section
fbdd6d
- enable print test output for tests
fbdd6d
fbdd6d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.0-2
fbdd6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fbdd6d
fbdd6d
* Mon May 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
fbdd6d
- Update to 0.24.0
fbdd6d
fbdd6d
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-3.20150328git0ba1d54
fbdd6d
- Update to latest git
fbdd6d
fbdd6d
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-3
fbdd6d
- Add patch to accept .S files
fbdd6d
fbdd6d
* Wed Apr 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-2
fbdd6d
- Add python3 to Requires (Thanks to Ilya Kyznetsov)
fbdd6d
fbdd6d
* Tue Mar 31 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-1
fbdd6d
- 0.23.0
fbdd6d
fbdd6d
* Sat Mar 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150328git3b49b71
fbdd6d
- Update to latest git
fbdd6d
fbdd6d
* Mon Mar 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150325git18550fe
fbdd6d
- Update to latest git
fbdd6d
- Include mesonintrospect
fbdd6d
fbdd6d
* Mon Mar 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150322git78d31ca
fbdd6d
- Fix filelists for mesongui (python-bytecode-without-source)
fbdd6d
fbdd6d
* Sun Mar 22 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-8.20150322git78d31ca
fbdd6d
- Enable C# tests
fbdd6d
fbdd6d
* Sun Mar 22 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150322git78d31ca
fbdd6d
- update to latest git
fbdd6d
- fix tests on arm
fbdd6d
fbdd6d
* Sat Mar 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150321gita084a8e
fbdd6d
- update to latest git
fbdd6d
fbdd6d
* Mon Mar 16 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150316gitfa2c659
fbdd6d
- update to latest git
fbdd6d
fbdd6d
* Tue Mar 10 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150310gitf9f51b1
fbdd6d
- today's git snapshot with support for cool GNOME features
fbdd6d
- re-enable wxGTK3 tests, package fixed in rawhide
fbdd6d
fbdd6d
* Thu Feb 26 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-6.git7581895
fbdd6d
- split gui to subpkg
fbdd6d
- update to latest snapshot
fbdd6d
- enable tests
fbdd6d
fbdd6d
* Thu Feb 26 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-5.gitc6dbf98
fbdd6d
- Fix packaging style
fbdd6d
- Make package noarch
fbdd6d
fbdd6d
* Mon Feb 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-4.git.c6dbf98
fbdd6d
- Use development version
fbdd6d
fbdd6d
* Sat Feb 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-3
fbdd6d
- Add ninja-build to requires
fbdd6d
fbdd6d
* Thu Jan 22 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.22.0-2
fbdd6d
- fix shebang in python files
fbdd6d
fbdd6d
* Wed Jan 21 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.22.0-1
fbdd6d
- Initial package