1db395
%global libname mesonbuild
1db395
186529
Name:           meson
2b1e20
Version:        0.42.0
9027b0
Release:        1%{?dist}.1
186529
Summary:        High productivity build system
186529
186529
License:        ASL 2.0
433e55
URL:            http://mesonbuild.com/
d0d56c
Source0:        https://github.com/mesonbuild/meson/archive/%{version}/%{name}-%{version}.tar.gz
9027b0
# F26 and above doesn't need it
9027b0
Patch0:         0001-rpm-use-good-old-optflags.patch
ba4abe
1a5438
BuildArch:      noarch
87b624
Obsoletes:      %{name}-gui < 0.31.0-3
186529
41d08e
BuildRequires:  python%{python3_pkgversion}-devel
41d08e
BuildRequires:  python%{python3_pkgversion}-setuptools
9dd9b8
BuildRequires:  ninja-build
8baf4f
# Various languages
8baf4f
BuildRequires:  gcc
ff7242
BuildRequires:  libasan
8baf4f
BuildRequires:  gcc-c++
8baf4f
BuildRequires:  gcc-gfortran
8baf4f
BuildRequires:  gcc-objc
8baf4f
BuildRequires:  gcc-objc++
8baf4f
BuildRequires:  java-devel
8baf4f
BuildRequires:  mono-core mono-devel
8baf4f
BuildRequires:  rust
9c0109
# No ldc as of RHEL7 and on non-ldc arches
9c0109
%if ! 0%{?rhel} || 0%{?rhel} > 7
9c0109
# Since the build is noarch, we can't use %ifarch
9c0109
#%%ifarch %%{ldc_arches}
9c0109
#BuildRequires:  ldc
9c0109
#%%endif
41d08e
%endif
8baf4f
# Various libs support
06afb1
BuildRequires:  boost-devel
06afb1
BuildRequires:  gtest-devel
06afb1
BuildRequires:  gmock-devel
6c4bc5
BuildRequires:  qt5-qtbase-devel
06afb1
BuildRequires:  vala
41d08e
# In recent versions it's merged into vala
41d08e
%if (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 7)
3a783f
BuildRequires:  vala-tools
3a783f
%endif
055573
BuildRequires:  wxGTK3-devel
97d823
BuildRequires:  flex
97d823
BuildRequires:  bison
06afb1
BuildRequires:  gettext
06afb1
BuildRequires:  gnustep-base-devel
97d823
BuildRequires:  %{_bindir}/gnustep-config
57d01a
BuildRequires:  git-core
f99e63
BuildRequires:  pkgconfig(protobuf)
06afb1
BuildRequires:  pkgconfig(glib-2.0)
41d08e
BuildRequires:  pkgconfig(gobject-introspection-1.0)
41d08e
%if ! 0%{?rhel} || 0%{?rhel} > 7
41d08e
BuildRequires:  python3-gobject-base
41d08e
%endif
41d08e
BuildRequires:  gtk-doc
5bbd23
BuildRequires:  itstool
06afb1
BuildRequires:  pkgconfig(zlib)
41d08e
BuildRequires:  python%{python3_pkgversion}-Cython
f3e6a1
BuildRequires:  pkgconfig(sdl2)
d6d9b3
BuildRequires:  %{_bindir}/pcap-config
4f9cbf
BuildRequires:  pkgconfig(vulkan)
f3e6a1
BuildRequires:  llvm-devel
001135
%if 0%{?fedora} && 0%{?fedora} < 26
001135
# c++  -o sum 'sum@exe/sum.c.o' -Wl,--no-undefined -Wl,--as-needed -pthread -L/usr/lib64 -Wl,--start-group -lLLVM-3.9 -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,--end-group
001135
# /usr/bin/ld: cannot find -ltinfo
001135
BuildRequires:  ncurses-devel
001135
%endif
452dca
Requires:       ninja-build
186529
186529
%description
186529
Meson is a build system designed to optimize programmer
186529
productivity. It aims to do this by providing simple, out-of-the-box
186529
support for modern software development tools and practices, such as
186529
unit tests, coverage reports, Valgrind, CCache and the like.
186529
186529
%prep
bc635a
%autosetup -p1
57d01a
find -type f -name '*.py' -executable -exec sed -i -e '1s|.*|#!%{__python3}|' {} ';'
ff7242
# Remove MPI tests for now because it is complicated to run
ff7242
rm -rf "test cases/frameworks/17 mpi"
186529
186529
%build
4907f4
%py3_build
186529
186529
%install
4907f4
%py3_install
57d01a
install -Dpm0644 data/macros.%{name} %{buildroot}%{rpmmacrodir}/macros.%{name}
186529
186529
%check
c46ffa
export MESON_PRINT_TEST_OUTPUT=1
41d08e
%{__python3} ./run_tests.py %{?rhel:|| :}
186529
186529
%files
186529
%license COPYING
06afb1
%{_bindir}/%{name}
06afb1
%{_bindir}/%{name}conf
52e552
%{_bindir}/%{name}introspect
cfdd2b
%{_bindir}/%{name}test
4c1397
%{_bindir}/wraptool
4907f4
%{python3_sitelib}/%{libname}/
b87296
%{python3_sitelib}/%{name}-*.egg-info/
Igor Gnatenko f863cb
%{_mandir}/man1/%{name}.1*
Igor Gnatenko f863cb
%{_mandir}/man1/%{name}conf.1*
Igor Gnatenko f863cb
%{_mandir}/man1/%{name}introspect.1*
Igor Gnatenko f863cb
%{_mandir}/man1/%{name}test.1*
Igor Gnatenko f863cb
%{_mandir}/man1/wraptool.1*
57d01a
%{rpmmacrodir}/macros.%{name}
06afb1
186529
%changelog
9027b0
* Mon Sep 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.42.0-1.1
9027b0
- Fix %%meson macro on F25
9027b0
2b1e20
* Fri Aug 18 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.42.0-1
2b1e20
- Update to 0.42.0
2b1e20
9e5c38
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.41.2-2
9e5c38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9e5c38
654108
* Wed Jul 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.41.2-1
654108
- Update to 0.41.2
654108
05cd86
* Tue Jul 18 2017 Kalev Lember <klember@redhat.com> - 0.41.1-3
05cd86
- Backport various gtk-doc fixes from upstream
05cd86
ba4abe
* Thu Jul 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.41.1-2
ba4abe
- Strip trailing slash from pkg-config files
ba4abe
22589f
* Mon Jun 19 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.41.1-1
22589f
- Update to 0.41.1
22589f
b61c21
* Tue Jun 13 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.41.0-1
b61c21
- Update to 0.41.0
b61c21
9c0109
* Wed May 31 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.1-2
9c0109
- Don't run ldc tests
9c0109
def505
* Fri Apr 28 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.1-1
def505
- Update to 0.40.1
def505
c89077
* Sun Apr 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.40.0-1
c89077
- Update to 0.40.0
c89077
0a4466
* Thu Apr 13 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.39.1-2
0a4466
- Exclude ldc for module builds
0a4466
7b75d1
* Thu Mar 16 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.39.1-1
7b75d1
- Update to 0.39.1
7b75d1
1201c8
* Mon Mar 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.39.0-1
1201c8
- Update to 0.39.0
1201c8
Igor Gnatenko 014183
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.38.1-1
Igor Gnatenko 014183
- Update to 0.38.1
Igor Gnatenko 014183
Igor Gnatenko f863cb
* Sun Jan 29 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.38.0-1
Igor Gnatenko f863cb
- Update to 0.38.0
Igor Gnatenko f863cb
fb284f
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 0.37.1-2
fb284f
- Rebuild for Python 3.6
fb284f
150b8f
* Tue Dec 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.37.1-1
150b8f
- Update to 0.37.1
150b8f
376dd4
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.37.0-2
376dd4
- Rebuild for Python 3.6
376dd4
1d9bee
* Sun Dec 18 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.37.0-1
1d9bee
- Update to 0.37.0
1d9bee
d6502d
* Thu Dec 15 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-4
d6502d
- Backport more RPM macro fixes (FPC ticket #655)
d6502d
b44b0b
* Tue Dec 13 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-3
b44b0b
- Backport fixes to RPM macros
b44b0b
c46ffa
* Sat Dec 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-2
c46ffa
- Print test output during build
c46ffa
5bbd23
* Mon Nov 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.36.0-1
5bbd23
- Update to 0.36.0
5bbd23
511817
* Tue Oct 18 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.1-1
511817
- Update to 0.35.1 (RHBZ #1385986)
511817
57d01a
* Tue Oct 11 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-3
57d01a
- Backport couple of fixes
57d01a
d0cd5e
* Wed Oct 05 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-2
d0cd5e
- Apply patch to fix FTBFS
d0cd5e
acff2f
* Mon Oct 03 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.35.0-1
acff2f
- Update to 0.35.0
acff2f
8baf4f
* Wed Sep 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.34.0-2
8baf4f
- Run D test suite
8baf4f
9a153c
* Wed Sep 07 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.34.0-1
9a153c
- Update to 0.34.0
9a153c
87b624
* Tue Aug 09 2016 Jon Ciesla <limburgher@gmail.com> - 0.33.0-2
87b624
- Obsoletes fix.
87b624
539766
* Tue Aug 09 2016 Jon Ciesla <limburgher@gmail.com> - 0.33.0-1
539766
- 0.33.0
539766
- GUI dropped upstream.
539766
e9c659
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31.0-2
e9c659
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e9c659
Igor Gnatenko c62bf2
* Thu Apr 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.31.0-1
Igor Gnatenko c62bf2
- Update to 0.31.0
Igor Gnatenko c62bf2
e192f8
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.30.0-1
e192f8
- Update to 0.30.0
e192f8
2678ab
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.0-2
2678ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2678ab
4907f4
* Sun Jan 24 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.29.0-1
4907f4
- Update to 0.29.0
4907f4
1c91e4
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.28.0-2
1c91e4
- Rebuilt for Boost 1.60
1c91e4
2b4d8b
* Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.28.0-1
2b4d8b
- 0.28.0
2b4d8b
0b0228
* Wed Nov 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.27.0-1
0b0228
- 0.27.0
0b0228
91c524
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.0-3
91c524
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
91c524
f3168f
* Fri Oct 30 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.26.0-2
f3168f
- Fix rpm macros for using optflags
f3168f
035747
* Sun Sep 13 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.26.0-1
035747
- 0.26.0
035747
849433
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.25.0-4
849433
- Rebuilt for Boost 1.59
849433
d702da
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25.0-3
d702da
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
d702da
02cefd
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.25.0-2
02cefd
- rebuild for Boost 1.58
02cefd
cd7a9d
* Sun Jul 12 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.0-1
cd7a9d
- 0.25.0
cd7a9d
d0d56c
* Sat Jul 11 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-3
d0d56c
- Update URLs
60af3c
- drop unneded hacks in install section
807ff3
- enable print test output for tests
d0d56c
56fee4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.0-2
56fee4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
56fee4
6c4bc5
* Mon May 25 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
6c4bc5
- Update to 0.24.0
6c4bc5
e2b9f4
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-3.20150328git0ba1d54
e2b9f4
- Update to latest git
e2b9f4
d55639
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-3
d55639
- Add patch to accept .S files
d55639
f5aa38
* Wed Apr 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-2
f5aa38
- Add python3 to Requires (Thanks to Ilya Kyznetsov)
f5aa38
cdb259
* Tue Mar 31 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.0-1
cdb259
- 0.23.0
cdb259
1c2e45
* Sat Mar 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150328git3b49b71
1c2e45
- Update to latest git
1c2e45
52e552
* Mon Mar 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150325git18550fe
52e552
- Update to latest git
52e552
- Include mesonintrospect
52e552
27049a
* Mon Mar 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-9.20150322git78d31ca
27049a
- Fix filelists for mesongui (python-bytecode-without-source)
27049a
feb70e
* Sun Mar 22 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-8.20150322git78d31ca
feb70e
- Enable C# tests
feb70e
9cd381
* Sun Mar 22 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150322git78d31ca
9cd381
- update to latest git
9cd381
- fix tests on arm
9cd381
0d5fc6
* Sat Mar 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150321gita084a8e
0d5fc6
- update to latest git
0d5fc6
fb56d2
* Mon Mar 16 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150316gitfa2c659
fb56d2
- update to latest git
fb56d2
055573
* Tue Mar 10 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-7.20150310gitf9f51b1
055573
- today's git snapshot with support for cool GNOME features
055573
- re-enable wxGTK3 tests, package fixed in rawhide
055573
055573
* Thu Feb 26 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-6.git7581895
06afb1
- split gui to subpkg
06afb1
- update to latest snapshot
06afb1
- enable tests
06afb1
1a5438
* Thu Feb 26 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-5.gitc6dbf98
1a5438
- Fix packaging style
1a5438
- Make package noarch
1a5438
5d75d9
* Mon Feb 23 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-4.git.c6dbf98
5d75d9
- Use development version
5d75d9
452dca
* Sat Feb 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.22.0-3
452dca
- Add ninja-build to requires
452dca
186529
* Thu Jan 22 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.22.0-2
186529
- fix shebang in python files
186529
186529
* Wed Jan 21 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.22.0-1
186529
- Initial package