%global _hardened_build 1

Name:           reportd
Version:        0.7.3
Release:        1.git.112.36a075a%{?dist}
Summary:        Service reporting org.freedesktop.Problems2 entries

License:        GPLv2+
URL:            https://github.com/abrt/%{name}
Source0: reportd-git-112.36a075a.tar.gz

BuildRequires:  gcc
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libreport) >= 2.11.0
BuildRequires:  meson
BuildRequires:  systemd

%if 0%{?centos}
Recommends:     libreport-centos
%endif

%if 0%{?fedora}
Recommends:     libreport-fedora
%endif

%description
A D-Bus service that exports libreport functionality.


%prep
%autosetup -n reportd-git-112.36a075a -p1


%build
%meson
%meson_build


%install
%meson_install


%check
%meson_test


%files
%doc NEWS README
%license COPYING
%{_libexecdir}/%{name}
%{_datadir}/dbus-1/services/org.freedesktop.%{name}.service
%{_datadir}/dbus-1/system-services/org.freedesktop.%{name}.service
%{_datadir}/dbus-1/system.d/org.freedesktop.%{name}.conf
%{_unitdir}/%{name}.service
%{_userunitdir}/%{name}.service


%changelog