[ https://issues.apache.org/jira/browse/KAFKA-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16550735#comment-16550735 ]
Attila Sasvari commented on KAFKA-7159: --------------------------------------- - Are you sure you filed the JIRA to the proper project? There is no code matching '%files' in apache/kafka - https://github.com/apache/kafka/search?q=%25files&unscoped_q=%25files - However, Apache Bigtop has some code for packaging kafka, but it was not updated for a while: https://github.com/apache/bigtop/blob/master/bigtop-packages/src/rpm/kafka/SPECS/kafka.spec - {{confluent-kafka RPM SPEC}} indicates you might have wanted to report this to Confluent > mark configuration files in confluent-kafka RPM SPEC file > --------------------------------------------------------- > > Key: KAFKA-7159 > URL: https://issues.apache.org/jira/browse/KAFKA-7159 > Project: Kafka > Issue Type: Improvement > Components: packaging > Affects Versions: 1.1.0 > Environment: RHEL7 > Reporter: Robert Fabisiak > Priority: Trivial > Labels: rpm > > All configuration files in kafka RPM SPEC file should be marked with %config > prefix in %files section. > This would prevent overwrites during install/upgrade and uninstall operations > [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/rpm_packaging_guide/index#files] > It's especially important to save configuration during package upgrades. > Section to change in SPEC file: > {code:java} > %files > %config(noreplace) %{_sysconfdir}/kafka/*.conf > %config(noreplace) %{_sysconfdir}/kafka/*.properties > {code} > It would also be good to mark documentation files with %doc -- This message was sent by Atlassian JIRA (v7.6.3#76005)