Blame mako.spec

bd8bafc
Name:       mako
bd8bafc
Version:    1.2
bddaf7d
Release:    2%{?dist}
bd8bafc
Summary:    Lightweight Wayland notification daemon
bd8bafc
Provides:   desktop-notification-daemon
bd8bafc
bd8bafc
License:    MIT
bd8bafc
URL:        https://github.com/emersion/%{name}
bd8bafc
Source0:    %{url}/archive/v%{version}.tar.gz
bd8bafc
# Add dbus-activated systemd unit as required by the packaging guidelines. To
bd8bafc
# be upstreamed as discussed in RHBZ#1689634.
bd8bafc
Source1:    %{name}.service
bd8bafc
Source2:    fr.emersion.Mako.service
bd8bafc
# Disable werror compiler flag breaking compilation with warning_level > 2,
bd8bafc
# which is implied by Fedora's default compiler flags. Discussed in
bd8bafc
# RHBZ#1689634.
bd8bafc
Patch0:     meson-disable-werror.patch
bd8bafc
bd8bafc
BuildRequires:  systemd-rpm-macros
bd8bafc
BuildRequires:  gcc
bd8bafc
BuildRequires:  meson >= 0.43.0
bd8bafc
BuildRequires:  pkgconfig(wayland-protocols) >= 1.14
bd8bafc
BuildRequires:  pkgconfig(wayland-client)
bd8bafc
BuildRequires:  pkgconfig(pango)
bd8bafc
BuildRequires:  pkgconfig(cairo)
bd8bafc
BuildRequires:  systemd-devel
bd8bafc
BuildRequires:  scdoc
bd8bafc
Requires:       dbus
bd8bafc
%{?systemd_requires}
bd8bafc
bd8bafc
%description
bd8bafc
mako is a lightweight notification daemon for Wayland compositors that support
bd8bafc
the layer-shell protocol.
bd8bafc
bd8bafc
%prep
bd8bafc
%autosetup
bd8bafc
bd8bafc
%build
bd8bafc
%meson
bd8bafc
%meson_build
bd8bafc
bd8bafc
%install
bd8bafc
%meson_install
bd8bafc
bd8bafc
# Install dbus-activated systemd unit
bddaf7d
install -m0644 -Dt %{buildroot}%{_userunitdir}/ %{SOURCE1}
bd8bafc
install -m0644 -Dt %{buildroot}%{_datadir}/dbus-1/services/ %{SOURCE2}
bd8bafc
bd8bafc
%post
bd8bafc
%systemd_user_post %{name}.service
bd8bafc
bd8bafc
%preun
bd8bafc
%systemd_user_preun %{name}.service
bd8bafc
bd8bafc
%files
bd8bafc
%license LICENSE
bd8bafc
%doc README.md
bd8bafc
%{_bindir}/mako
bd8bafc
%{_bindir}/makoctl
bd8bafc
%{_mandir}/man1/mako.1*
bd8bafc
%{_mandir}/man1/makoctl.1*
bd8bafc
%{_userunitdir}/%{name}.service
bd8bafc
%{_datadir}/dbus-1/services/fr.emersion.Mako.service
bd8bafc
bd8bafc
%changelog
bddaf7d
* Thu Apr 04 2019 Timothée Floure <fnux@fedoraproject.org> - 1.2-2
bddaf7d
- Fix location of systemd service file
bddaf7d
bd8bafc
* Sun Mar 17 2019 Timothée Floure <fnux@fedoraproject.org> - 1.2-1
bd8bafc
- Let there be package