Blame SPECS/meson.spec

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