a0213b9
%bcond_without tests
5f0592a
# /etc/xdg is recommended since v1.7
5f0592a
%global   dunst_confdir %{_sysconfdir}/xdg
a0213b9
Lukas Zapletal 108dd03
Name:     dunst
5daa20f
Version:  1.11.0
ac66a0e
Release:  %autorelease
e751d4f
Summary:  Lightweight and customizable notification-daemon
6cfd8fa
License:  BSD-3-Clause
Lukas Zapletal 7446f0a
URL:      https://dunst-project.org
37ee9cc
Source:   https://github.com/dunst-project/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
Requires: dbus
0fd3a83
# Required for dunstctl
0fd3a83
Requires: /usr/bin/dbus-send
e751d4f
# xdg-open is the default 'browser' for opening URLs
e751d4f
Recommends: /usr/bin/xdg-open
37ee9cc
# jq is used in completion definitions
37ee9cc
Recommends: jq
Lukas Zapletal 108dd03
Lukas Zapletal 7446f0a
# keep this sorted please
Lukas Zapletal 108dd03
BuildRequires: /usr/bin/pod2man
28c6bbd
BuildRequires: gcc
2e4e1f1
BuildRequires: make
3bcf5cb
BuildRequires: systemd-rpm-macros
28c6bbd
BuildRequires: pkgconfig(dbus-1)
28c6bbd
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
28c6bbd
BuildRequires: pkgconfig(gio-2.0)
28c6bbd
BuildRequires: pkgconfig(glib-2.0) >= 2.44
28c6bbd
BuildRequires: pkgconfig(libnotify)
28c6bbd
BuildRequires: pkgconfig(pangocairo)
28c6bbd
BuildRequires: pkgconfig(wayland-client)
e751d4f
BuildRequires: pkgconfig(wayland-cursor)
28c6bbd
BuildRequires: pkgconfig(wayland-protocols)
28c6bbd
BuildRequires: pkgconfig(x11)
28c6bbd
BuildRequires: pkgconfig(xext)
28c6bbd
BuildRequires: pkgconfig(xinerama)
28c6bbd
BuildRequires: pkgconfig(xrandr) >= 1.5
28c6bbd
BuildRequires: pkgconfig(xscrnsaver)
a0213b9
%if %{with tests}
a0213b9
# tests require DBus
a0213b9
BuildRequires: dbus-daemon
a0213b9
# SVG pixbuf loader
a0213b9
BuildRequires: librsvg2
a0213b9
%endif
Lukas Zapletal 108dd03
Lukas Zapletal 9b3d73e
Provides: desktop-notification-daemon
Lukas Zapletal 9b3d73e
Lukas Zapletal 7446f0a
Lukas Zapletal 108dd03
%description
e751d4f
Dunst is a lightweight replacement for the notification daemons provided by
e751d4f
most desktop environments. It’s very customizable, isn’t dependent on any
e751d4f
toolkits, and therefore fits into those window manager centric setups we all
e751d4f
love to customize to perfection.
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
%prep
1e6eac7
%autosetup -p1
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
%build
e751d4f
%global make_options %{shrink:
e751d4f
    PREFIX=%{_prefix}
5f0592a
    SYSCONFDIR=%{dunst_confdir}
3bcf5cb
    SYSTEMD=1
e751d4f
    VERSION=%{version}
e751d4f
}
28c6bbd
%set_build_flags
37ee9cc
%make_build %{make_options} wayland-protocols
e751d4f
%make_build %{make_options}
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
%install
e751d4f
%make_install %{make_options}
465c2a3
# create directory for config drop-in files
5f0592a
install -d -m 0755 -pv %{buildroot}%{dunst_confdir}/%{name}/dunstrc.d
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
a0213b9
%if %{with tests}
a0213b9
%check
a0213b9
%make_build test %{make_options}
a0213b9
%endif
a0213b9
a0213b9
3bcf5cb
%post
3bcf5cb
%systemd_user_post %{name}.service
3bcf5cb
3bcf5cb
%preun
3bcf5cb
%systemd_user_preun %{name}.service
3bcf5cb
3bcf5cb
Lukas Zapletal 108dd03
%files
28c6bbd
%doc AUTHORS CHANGELOG.md README.md RELEASE_NOTES
28c6bbd
%license LICENSE
5f0592a
%dir %{dunst_confdir}/%{name}
5f0592a
%dir %{dunst_confdir}/%{name}/dunstrc.d
5f0592a
%config(noreplace) %{dunst_confdir}/%{name}/dunstrc
Lukas Zapletal 108dd03
%{_bindir}/%{name}
28c6bbd
%{_bindir}/dunstctl
88c9375
%{_bindir}/dunstify
Lukas Zapletal 108dd03
%{_datadir}/dbus-1/services/org.knopwob.%{name}.service
Lukas Zapletal 7446f0a
%{_userunitdir}/%{name}.service
28c6bbd
%{_mandir}/man1/%{name}*.1*
28c6bbd
%{_mandir}/man5/%{name}.5*
37ee9cc
%{bash_completions_dir}/dunst*
37ee9cc
%{fish_completions_dir}/dunst*
e21581e
%{zsh_completions_dir}/_dunst*
Lukas Zapletal 108dd03
Lukas Zapletal 108dd03
%changelog
ac66a0e
%autochangelog