Skip to content

Commit

Permalink
infra: Fix rpmlint conffile-without-noreplace-flag warning
Browse files Browse the repository at this point in the history
rpmlint requires configuration files to be explicite mentioned
in the spec file.
  • Loading branch information
elkoniu committed Oct 8, 2024
1 parent 8f1e959 commit 463a230
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions anaconda.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,32 @@ rm -rf \
%{_prefix}/lib/dracut/modules.d/80%{name}/*
%{_prefix}/libexec/anaconda/dd_*

# Make sure to not overwrite user configurtion files
# This supressess rpmlint conffile-without-noreplace-flag warning
%config(noreplace) /etc/anaconda/anaconda.conf
%config(noreplace) /etc/anaconda/conf.d/00-do-nothing.conf
%config(noreplace) /etc/anaconda/conf.d/01-still-do-nothing.conf
%config(noreplace) /etc/anaconda/conf.d/README
%config(noreplace) /etc/anaconda/profile.d/almalinux.conf
%config(noreplace) /etc/anaconda/profile.d/centos.conf
%config(noreplace) /etc/anaconda/profile.d/circle.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-designsuite.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-eln.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-iot.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-kde.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-kinoite.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-sericea.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-server.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-silverblue.conf
%config(noreplace) /etc/anaconda/profile.d/fedora-workstation.conf
%config(noreplace) /etc/anaconda/profile.d/fedora.conf
%config(noreplace) /etc/anaconda/profile.d/ovirt.conf
%config(noreplace) /etc/anaconda/profile.d/rhel.conf
%config(noreplace) /etc/anaconda/profile.d/rhvh.conf
%config(noreplace) /etc/anaconda/profile.d/rocky.conf
%config(noreplace) /etc/anaconda/profile.d/scientific-linux.conf
%config(noreplace) /etc/anaconda/profile.d/virtuozzo-linux.conf

%changelog
* Tue Oct 01 2024 github-actions <[email protected]> - 42.5-1
- docs: Adjust CONTRIBUTING document to mention automatic linter checks
Expand Down

0 comments on commit 463a230

Please sign in to comment.