From f8ac3d7efa8510e2b390eaef1e20bbcc80f48969 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Tue, 16 May 2023 19:55:24 +0000 Subject: [PATCH] don't remove dotfiles and empty files. --- ansible-core.rpmlintrc | 1 + ansible-core.spec | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 ansible-core.rpmlintrc diff --git a/ansible-core.rpmlintrc b/ansible-core.rpmlintrc new file mode 100644 index 0000000..b0a3fa2 --- /dev/null +++ b/ansible-core.rpmlintrc @@ -0,0 +1 @@ +addFilter("E: zero-length") diff --git a/ansible-core.spec b/ansible-core.spec index 592c066..56361f9 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -94,7 +94,6 @@ This package installs extensive documentation for ansible-core %prep %autosetup -p1 -n ansible-%{uversion} -find \( -name '.git_keep' -o -name '.rstcheck.cfg' \) -delete sed -i -s 's|/usr/bin/env python|%{python3}|' \ bin/ansible-test \ @@ -208,9 +207,6 @@ cp examples/ansible.cfg %{buildroot}/etc/ansible/ mkdir -p %{buildroot}/%{_mandir}/man1 cp -v docs/man/man1/*.1 %{buildroot}/%{_mandir}/man1/ -# These files are needed for the unit tests, so we don't remove them in %%prep -find %{buildroot}/%{python3_sitelib} -name .travis.yml -type f -delete - # We install licenses in this manner so we don't miss new licenses: # 1. Copy all files in licenses to %%{_pkglicensedir}. # 2. List the files explicitly in %%files. @@ -248,6 +244,7 @@ install -Dpm 0644 licenses/* -t %{buildroot}%{_pkglicensedir} %changelog * Tue May 16 2023 Maxwell G - 2.15.0-1 - Update to 2.15.0. +- Don't remove dotfiles and empty files. ansible-core actually needs these. * Wed May 03 2023 Maxwell G - 2.15.0~rc2-1 - Update to 2.15.0~rc2.