Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions data/tmpfiles.d/image-builder.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Type Path Mode UID GID Age
d /var/cache/image-builder 0755 root root 14d
8 changes: 7 additions & 1 deletion image-builder.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ BuildRequires: libvirt-devel
%if 0%{?fedora}
# Build requirements of 'github.com/containers/storage' package
BuildRequires: btrfs-progs-devel
# for _tmpfilesdir macro
BuildRequires: systemd-rpm-macros
# DO NOT REMOVE the BUNDLE_START and BUNDLE_END markers as they are used by 'tools/rpm_spec_add_provides_bundle.sh' to generate the Provides: bundled list
# BUNDLE_START
# BUNDLE_END
Expand Down Expand Up @@ -93,7 +95,9 @@ export LDFLAGS="${LDFLAGS} -X 'main.version=%{version}'"
%install
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/image-builder %{buildroot}%{_bindir}/

# tmpfiles.d snippet
install -m 0755 -vd %{buildroot}%{_tmpfilesdir}
install -m 0644 -vp data/tmpfiles.d/image-builder.conf %{buildroot}%{_tmpfilesdir}/image-builder.conf
%check
export GOFLAGS="-buildmode=pie"
%if 0%{?rhel}
Expand All @@ -110,6 +114,8 @@ cd $PWD/_build/src/%{goipath}
%license LICENSE
%doc README.md
%{_bindir}/image-builder
%{_tmpfilesdir}/image-builder.conf
%ghost %dir /var/cache/image-builder

%changelog
# the changelog is distribution-specific, therefore there's just one entry
Expand Down
Loading