On Fri, Jul 22, 2011 at 07:45:57AM +0200, Olivier Sallou wrote: > Hi, > I have in my package config (/etc) a large list of files. > Is there a way to define the %config from a list of file rather than > listing individually each of the file ? > > Something like: > > %config -f list_of_my_etc_files > You can use wildcards: %files %config(noreplace) %{_sysconfdir}/foo/*.cfg Or, if you already have the list of files in a file: %install command_that_outputs_config_files > list_of_my_etc_files sed -i list_of_my_etc_files 's!^/etc!%config(noreplace) %{_sysconfdir}!' %files -f list_of_my_etc_files -Toshio
Attachment:
pgpNcCT9ECQSz.pgp
Description: PGP signature
-- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel