gplugin/gplugin

Use meson in spec file.
feature/meson
2017-06-01, Elliott Sales de Andrade
764116a5c6aa
Parents 97d77dfac016
Children 51520f2f3ffc
Use meson in spec file.

Not tested that this package builds still though.
--- a/packaging/gplugin.spec.in Thu Jun 01 22:09:24 2017 -0400
+++ b/packaging/gplugin.spec.in Thu Jun 01 22:49:25 2017 -0400
@@ -6,7 +6,7 @@
Url: https://bitbucket.org/rw_grim/gplugin/overview
Group: Development/Libraries
-BuildRequires: cmake >= 2.8
+BuildRequires: meson >= 0.37.0
BuildRequires: glib2-devel >= 2.20.0
BuildRequires: gobject-introspection-devel
BuildRequires: gettext
@@ -142,20 +142,20 @@
mkdir -p build
pushd build
-CFLAGS="%{optflags}" cmake \
+CFLAGS="%{optflags}" meson \
-Wno-dev \
- -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DBUILD_LUA=On \
- -DBUILD_PYTHON=On \
+ --prefix=%{_prefix} \
+ -Dlua=true \
+ -Dpython=true \
..
-make %{?_smp_mflags}
+ninja %{?_smp_mflags}
%install
pushd build
-make install DESTDIR=%{buildroot}
+ninja install DESTDIR=%{buildroot}
# Unneeded files
rm -rf %{buildroot}%{_datadir}/doc/gplugin/