Skip to content

Commit 19a8527

Browse files
authored
Merge pull request #1352 from champtar/spec-doc-no-dir
specfile: exclude doc directories from package
2 parents 2a51c5c + 2563619 commit 19a8527

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/packaging/bootc.spec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,16 @@ cat >%{?buildroot}/%{system_reinstall_bootc_install_podman_path} <<EOF
121121
exec dnf -y install podman
122122
EOF
123123
chmod +x %{?buildroot}/%{system_reinstall_bootc_install_podman_path}
124+
# generate doc file list excluding directories
125+
touch %{?buildroot}/%{_docdir}/bootc/baseimage/base/sysroot/.keepdir
126+
find %{?buildroot}/%{_docdir} ! -type d -printf '%{_docdir}/%%P\n' > bootcdoclist.txt
124127

125128
%if %{with check}
126129
%check
127130
%cargo_test
128131
%endif
129132

130-
%files
133+
%files -f bootcdoclist.txt
131134
%license LICENSE-MIT
132135
%license LICENSE-APACHE
133136
%license LICENSE.dependencies
@@ -140,7 +143,6 @@ chmod +x %{?buildroot}/%{system_reinstall_bootc_install_podman_path}
140143
%{_prefix}/libexec/libostree/ext/*
141144
%endif
142145
%{_unitdir}/*
143-
%{_docdir}/bootc/*
144146
%{_mandir}/man*/bootc*
145147

146148
%files -n system-reinstall-bootc

0 commit comments

Comments
 (0)