Use meson instead of autotools

This commit is contained in:
Peter Hutterer 2020-06-04 11:25:46 +10:00
parent 9f8c5f7833
commit 0eaf1f8d5d

View File

@ -1,6 +1,6 @@
Name: libevdev
Version: 1.9.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Kernel Evdev Device Wrapper Library
License: MIT
@ -8,7 +8,7 @@ URL: http://www.freedesktop.org/wiki/Software/libevdev
Source0: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
BuildRequires: git-core
BuildRequires: automake libtool gcc
BuildRequires: meson gcc
BuildRequires: python3 python3-devel
%description
@ -35,15 +35,11 @@ Utilities to handle and/or debug evdev devices.
pathfix.py -i %{__python3} -p -n $(git grep -l '#!/usr/bin/.*python.*')
%build
autoreconf --force -v --install || exit 1
%configure --disable-static --disable-silent-rules --disable-gcov
make %{?_smp_mflags}
%meson -Dtests=disabled -Ddocumentation=disabled -Dcoverity=false
%meson_build
%install
make install DESTDIR=%{buildroot}
# We intentionally don't ship *.la files
rm -f %{buildroot}%{_libdir}/*.la
%meson_install
%ldconfig_scriptlets
@ -66,6 +62,9 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_bindir}/libevdev-tweak-device
%changelog
* Thu Jun 04 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.9.0-2
- Use meson instead of autotools
* Mon Mar 02 2020 Peter Hutterer <peter.hutterer@redhat.com> 1.9.0-1
- libevdev 1.9.0