Use meson as the build system
And fix some file locations
This commit is contained in:
parent
269e035e92
commit
63cb0680f4
@ -7,7 +7,7 @@ License: GPLv3+
|
||||
URL: https://github.com/hadess/iio-sensor-proxy
|
||||
Source0: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/uploads/2e2c1a92a6682f9ecf6789ed04c178d3/iio-sensor-proxy-3.1.tar.xz
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: meson
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: pkgconfig(udev)
|
||||
@ -15,6 +15,8 @@ BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: pkgconfig(gudev-1.0)
|
||||
BuildRequires: systemd
|
||||
BuildRequires: umockdev
|
||||
BuildRequires: python3-dbusmock
|
||||
%{?systemd_requires}
|
||||
|
||||
%description
|
||||
@ -31,15 +33,11 @@ This package contains the documentation for %{name}.
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--disable-silent-rules \
|
||||
--enable-gtk-doc \
|
||||
--disable-gtk-tests \ # not really interested in sample progs
|
||||
%{nil}
|
||||
%make_build
|
||||
%meson -Dgtk_doc=true -Dgtk-tests=false
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%meson_install
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
@ -52,9 +50,9 @@ This package contains the documentation for %{name}.
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README
|
||||
%doc README.md
|
||||
%{_bindir}/monitor-sensor
|
||||
%{_sbindir}/%{name}
|
||||
%{_libexecdir}/%{name}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_udevrulesdir}/*-%{name}.rules
|
||||
%{_sysconfdir}/dbus-1/system.d/net.hadess.SensorProxy.conf
|
||||
|
Loading…
Reference in New Issue
Block a user