Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正規表現または find の出力を使用して、パッケージに含めるファイルを一覧表示したいと思います。
どうやってやるの?
ティア
'-f'ディレクティブ forを使用%filesして、ファイルから含めるファイルのリストを取得できます。%installそうすれば、セクションの最後に含めるファイルを生成できます
'-f'
%files
%install
... %install ... find %{buildroot} -regex '.*a$' > file-lists %files -f file-lists ...