Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable installation of common documentation files #103

Open
lantw44 opened this issue Nov 1, 2015 · 0 comments
Open

Disable installation of common documentation files #103

lantw44 opened this issue Nov 1, 2015 · 0 comments

Comments

@lantw44
Copy link

lantw44 commented Nov 1, 2015

請問能提供選項來避免安裝像是 AUTHORS COPYING ChangeLog 這類的檔案嗎?在打包 RPM 時通常會用 %doc 和 %license 這類的 macro 來將這些常見的文件檔放到發行版指定的地方,如果 Makefile 中就已經安裝這些檔案,可能會造成檔案出現在意料之外的地方,例如以下的狀況:

RPM 建置錯誤:
錯誤:找到已安裝 (但未打包) 的檔案:
   /usr/share/doc/lilyterm-gtk3/COPYING
    找到已安裝 (但未打包) 的檔案:
   /usr/share/doc/lilyterm-gtk3/COPYING
ERROR: Exception(lilyterm-gtk3-0.9.9.5-0.4.20150208gitf600c08.fc22.src.rpm) Config(fedora-23-x86_64) 3 minutes 7 seconds

實際上 COPYING 已經放到 /usr/share/licenses/lilyterm-gtk3 裡了。

目前我用的方法是 sed -i -e '/AUTHORS COPYING ChangeLog/,/COPYING/d' data/Makefile,但這看起來感覺不是很好 ......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant