diff --git a/build-scripts/swaync.rpkg.spec b/build-scripts/swaync.rpkg.spec index fbc4e17..14b648f 100644 --- a/build-scripts/swaync.rpkg.spec +++ b/build-scripts/swaync.rpkg.spec @@ -1,34 +1,73 @@ # vim: syntax=spec +%global alt_pkg_name swaync + Name: {{{ git_dir_name }}} Version: 0.9.0 Release: 1%{?dist} Summary: Notification daemon with GTK GUI Provides: desktop-notification-daemon +Provides: sway-notification-center = %{version}-%{release} +Provides: %{alt_pkg_name} = %{version}-%{release} License: GPLv3 URL: https://github.com/ErikReider/SwayNotificationCenter VCS: {{{ git_dir_vcs }}} Source: {{{ git_dir_pack }}} -BuildRequires: meson >= 0.51.0 -BuildRequires: vala +BuildRequires: meson >= 0.51.0 +BuildRequires: vala +BuildRequires: scdoc +BuildRequires: pkgconfig(gtk+-3.0) >= 3.22 +BuildRequires: pkgconfig(gtk-layer-shell-0) >= 0.1 +BuildRequires: pkgconfig(json-glib-1.0) >= 1.0 +BuildRequires: pkgconfig(libhandy-1) >= 1.4.0 +BuildRequires: pkgconfig(glib-2.0) >= 2.50 +BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.68 +BuildRequires: pkgconfig(gee-0.8) >= 0.20 +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(fish) +BuildRequires: pkgconfig(libpulse) +BuildRequires: systemd-devel +BuildRequires: systemd -BuildRequires: gtk3-devel >= 3.22 -BuildRequires: gtk-layer-shell-devel >= 0.1 -Requires: dbus -BuildRequires: glib2-devel >= 2.50 -BuildRequires: gobject-introspection-devel >= 1.68 -BuildRequires: libgee-devel >= 0.20 -BuildRequires: json-glib-devel >= 1.0 -BuildRequires: libhandy-devel >= 1.4.0 -BuildRequires: systemd-devel -BuildRequires: systemd -BuildRequires: scdoc -BuildRequires: pulseaudio-libs-devel +Requires: dbus %{?systemd_requires} %description A simple notification daemon with a GTK gui for notifications and the control center +%package bash-completion +BuildArch: noarch +Summary: Bash completion files for %{name} +Provides: %{alt_pkg_name}-bash-completion = %{version}-%{release} + +Requires: bash-completion +Requires: %{name} = %{version}-%{release} + +%description bash-completion +This package installs Bash completion files for %{name} + +%package zsh-completion +BuildArch: noarch +Summary: Zsh completion files for %{name} +Provides: %{alt_pkg_name}-zsh-completion = %{version}-%{release} + +Requires: zsh +Requires: %{name} = %{version}-%{release} + +%description zsh-completion +This package installs Zsh completion files for %{name} + +%package fish-completion +BuildArch: noarch +Summary: Fish completion files for %{name} +Provides: %{alt_pkg_name}-fish-completion = %{version}-%{release} + +Requires: fish +Requires: %{name} = %{version}-%{release} + +%description fish-completion +This package installs Fish completion files for %{name} + %prep {{{ git_dir_setup_macro }}} @@ -50,28 +89,28 @@ A simple notification daemon with a GTK gui for notifications and the control ce %{_bindir}/swaync-client %{_bindir}/swaync %license COPYING -%{_sysconfdir}/xdg/swaync/configSchema.json -%{_sysconfdir}/xdg/swaync/config.json -%{_sysconfdir}/xdg/swaync/style.css +%config(noreplace) %{_sysconfdir}/xdg/swaync/configSchema.json +%config(noreplace) %{_sysconfdir}/xdg/swaync/config.json +%config(noreplace) %{_sysconfdir}/xdg/swaync/style.css %{_userunitdir}/swaync.service -%dir %{_datadir}/bash-completion -%dir %{_datadir}/bash-completion/completions -%{_datadir}/bash-completion/completions/swaync -%{_datadir}/bash-completion/completions/swaync-client %{_datadir}/dbus-1/services/org.erikreider.swaync.service -%dir %{_datadir}/fish -%dir %{_datadir}/fish/vendor_completions.d -%{_datadir}/fish/vendor_completions.d/swaync-client.fish -%{_datadir}/fish/vendor_completions.d/swaync.fish -%dir %{_datadir}/zsh -%dir %{_datadir}/zsh/site-functions -%{_datadir}/zsh/site-functions/_swaync -%{_datadir}/zsh/site-functions/_swaync-client %{_datadir}/glib-2.0/schemas/org.erikreider.swaync.gschema.xml %{_mandir}/man1/swaync-client.1.gz %{_mandir}/man1/swaync.1.gz %{_mandir}/man5/swaync.5.gz +%files bash-completion +%{_datadir}/bash-completion/completions/swaync +%{_datadir}/bash-completion/completions/swaync-client + +%files zsh-completion +%{_datadir}/zsh/site-functions/_swaync +%{_datadir}/zsh/site-functions/_swaync-client + +%files fish-completion +%{_datadir}/fish/vendor_completions.d/swaync-client.fish +%{_datadir}/fish/vendor_completions.d/swaync.fish + # Changelog will be empty until you make first annotated Git tag. %changelog {{{ git_dir_changelog }}}