-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoic.spec.rpkg
57 lines (44 loc) · 1.17 KB
/
oic.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
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-FileCopyrightText: 2020 Pier Luigi Fiorini <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/
%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif
%global import_path github.com/lirios/ostree-image-creator
Name: {{{ git_dir_name }}}
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: Tools to create OSTree images
License: GPLv3
URL: https://github.com/lirios/ostree-image-creator
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
ExclusiveArch: %{go_arches}
BuildRequires: compiler(go-compiler)
BuildRequires: go-rpm-macros
BuildRequires: ostree-devel
BuildRequires: git
Requires: coreutils
Requires: util-linux
Requires: e2fsprogs
Requires: dosfstools
Requires: ostree
Requires: genisoimage
Requires: xorriso
Requires: isomd5sum
Requires: syslinux
Requires: squashfs-tools
Requires: grub2
%description
Tools to create OSTree images.
%prep
{{{ git_dir_setup_macro }}}
%build
make
%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
%files
%{_bindir}/oic