mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-12-01 20:03:44 +03:00
998f7e286d
* Add rpkg spec template for building RPMs. This is a template for rpkg[1], which is used to generate spec files and consequently SRPM and RPM. Rpkg generates swaync.spec from swaync.rpkg.spec and packages it together with sources into SRPM. Then SRPM is used to build on Koji[2] and produce binary RPM's for various targets and platform. The whole sequence: swaync.rpkg.spec -> swaync.spec -> SwayNotificationCenter.src.rpm -> SwayNotificationCenter.rpm Assuming that you have rpkg installed, you could run 'rpkg local' for local build, or 'rpkg copr-build' to start the build on Koji. [1] https://pagure.io/rpkg [2] https://koji.fedoraproject.org * Add installation instructions for Fedora. Co-authored-by: Aleksei Fedotov <aleksei@fedotov.email>
70 lines
1.8 KiB
RPMSpec
70 lines
1.8 KiB
RPMSpec
# vim: syntax=spec
|
|
Name: {{{ git_dir_name }}}
|
|
Version: 0.3
|
|
Release: 1%{?dist}
|
|
Summary: Notification daemon with GTK GUI
|
|
Provides: desktop-notification-daemon
|
|
License: GPLv3
|
|
URL: https://github.com/ErikReider/SwayNotificationCenter
|
|
VCS: {{{ git_dir_vcs }}}
|
|
Source: {{{ git_dir_pack }}}
|
|
|
|
BuildRequires: meson >= 0.51.0
|
|
BuildRequires: vala
|
|
|
|
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
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
A simple notification daemon with a GTK gui for notifications and the control center
|
|
|
|
%prep
|
|
{{{ git_dir_setup_macro }}}
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%post
|
|
%systemd_user_post swaync.service
|
|
|
|
%preun
|
|
%systemd_user_preun swaync.service
|
|
|
|
%files
|
|
%doc README.md
|
|
%{_bindir}/swaync-client
|
|
%{_bindir}/swaync
|
|
%license COPYING
|
|
%{_sysconfdir}/xdg/swaync/config.json
|
|
%{_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
|
|
|
|
# Changelog will be empty until you make first annotated Git tag.
|
|
%changelog
|
|
{{{ git_dir_changelog }}}
|