-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopr-nightly-trigger.spec.rpkg
44 lines (30 loc) · 1.04 KB
/
copr-nightly-trigger.spec.rpkg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: {{{ git_dir_name }}}
Version: {{{ git_dir_version name=copr-nightly-trigger lead=1 }}}
Release: 1%{?dist}
Summary: Systemd units to trigger a nightly rebuild of a Copr
License: MIT
URL: https://github.com/chrisbouchard/copr-nightly-trigger
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
BuildRequires: systemd-rpm-macros
Requires: copr-cli
Requires: systemd >= 247
%description
Systemd units to trigger a nightly rebuild of a Copr
%prep
{{{ git_dir_setup_macro }}}
%install
# Create configuration directory.
install --mode=700 --directory %{buildroot}%{_sysconfdir}/copr-nightly
# Install service and trigger units.
install --mode=755 --directory %{buildroot}%{_unitdir}
install --mode=644 --target-directory=%{buildroot}%{_unitdir} \
copr-nightly@.service copr-nightly@.timer
%files
%license LICENSE
%dir %{_sysconfdir}/copr-nightly
%{_unitdir}/copr-nightly@.service
%{_unitdir}/copr-nightly@.timer
%changelog
{{{ git_dir_changelog }}}
# vim: syntax=spec