subdirs: 'libevdev-1.0',
)
+if get_option('tools-enable')
man_config = configuration_data()
man_config.set('PACKAGE_VERSION', meson.project_version())
manpage = configure_file(input: 'doc/libevdev.man.in',
install: true)
install_man('tools/libevdev-tweak-device.1',
'tools/touchpad-edge-detector.1')
+endif
# tests
dep_check = dependency('check', version: '>= 0.9.9',
type: 'boolean',
value: 'false',
description: 'Enable coverity build fixes, see meson.build for details')
+option('tools-enable',
+ type: 'boolean',
+ value: true,
+ description: 'Building tools')
\ No newline at end of file
Name: libevdev
-Version: 1.10.0
+Version: 1.11.0
Release: 0
License: MIT
Summary: wrapper library for evdev input devices
Source1001: %name.manifest
BuildRequires: doxygen
-BuildRequires: make
+BuildRequires: meson
BuildRequires: python
%{!?TZ_SYS_RO_SHARE: %global TZ_SYS_RO_SHARE /usr/share}
%prep
%setup -q
cp %{SOURCE1001} .
-%autogen
%build
-make %{?jobs:-j%jobs} V=1
+meson setup \
+ -Ddocumentation=disabled \
+ -Dtests=disabled \
+ -Dtools-enable=false \
+ --prefix /usr \
+ --libdir %{_libdir} \
+ --bindir %{_bindir} \
+ builddir
+ninja -C builddir all
%install
-%make_install
+export DESTDIR=%{buildroot}
+ninja -C builddir install
#%fdupes %{buildroot}
%post -p /sbin/ldconfig
%defattr(-,root,root)
%license COPYING
%{_libdir}/*.so.*
-%{_datadir}/*
+## disable tools ##
+#%{_bindir}/libevdev
+#/usr/libexec/libevdev/*
+#%doc %{_mandir}/man?/*
%files devel
%manifest %{name}.manifest