Skip to content

Commit aadd99f

Browse files
committed
Initial Makefile for COPR
1 parent f20302b commit aadd99f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.copr/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
srpm:
2+
dnf -y install git rpkg rpm-build dnf-plugins-core
3+
# Set the name to "...-git"
4+
echo '%git_suffix -git' > ~/.rpmmacros
5+
rpkg srpm --outdir=$(outdir) --spec=$(spec)

build-scripts/swaync.rpkg.spec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# vim: syntax=spec
22
%global alt_pkg_name swaync
33

4-
Name: {{{ git_dir_name }}}
4+
Name: {{{ git_repo_name }}}%{?git_suffix}
55
Version: 0.10.1
66
Release: 1%{?dist}
77
Summary: Notification daemon with GTK GUI
@@ -10,8 +10,8 @@ Provides: sway-notification-center = %{version}-%{release}
1010
Provides: %{alt_pkg_name} = %{version}-%{release}
1111
License: GPLv3
1212
URL: https://github.com/ErikReider/SwayNotificationCenter
13-
VCS: {{{ git_dir_vcs }}}
14-
Source: {{{ git_dir_pack }}}
13+
VCS: {{{ git_repo_vcs }}}
14+
Source: {{{ git_repo_pack }}}
1515

1616
BuildRequires: meson >= 0.51.0
1717
BuildRequires: vala >= 0.56
@@ -74,7 +74,7 @@ Requires: %{name} = %{version}-%{release}
7474
This package installs Fish completion files for %{name}
7575

7676
%prep
77-
{{{ git_dir_setup_macro }}}
77+
{{{ git_repo_setup_macro }}}
7878

7979
%build
8080
%meson
@@ -118,4 +118,4 @@ This package installs Fish completion files for %{name}
118118

119119
# Changelog will be empty until you make first annotated Git tag.
120120
%changelog
121-
{{{ git_dir_changelog }}}
121+
{{{ git_repo_changelog }}}

0 commit comments

Comments
 (0)