#1160 Adapt Python's explicit lists guidance to the main guidelines
Merged 2 years ago by carlwgeorge. Opened 2 years ago by carlwgeorge.
carlwgeorge/packaging-committee explicit-lists  into  master

@@ -2574,6 +2574,27 @@ 

  SHOULD ONLY be used when setting a non-default value,

  or to reset to the default value after having set a non-default value.

  

+ === Explicit lists

+ 

+ Packagers *SHOULD NOT* simply glob everything under a shared directory.

+ 

+ In particular, the following *SHOULD NOT* be used in `+%files+`:

+ 

+ * `+%{_bindir}/*+`

+ * `+%{_datadir}/*+`

+ * `+%{_includedir}/*+`

+ * `+%{_mandir}/*+`

+ * `+%{_docdir}/*+`

+ 

+ This rule serves as a check against common mistakes

+ which are otherwise hard to detect.

+ It does limit some possibilities for automation.

+ 

+ The most common mistake this rule prevents is upstream adding new commands in `+%{_bindir}/*+`.

+ You should always check such changes for

+ https://docs.fedoraproject.org/en-US/packaging-guidelines/Conflicts/#_common_conflicting_files_cases_and_solutions[conflicts],

+ and keep the list of such files explicit and auditable.

+ 

  == Users and Groups

  

  Some packages require or benefit from

no initial comment

Pull-Request has been merged by carlwgeorge

2 years ago
Metadata