We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
請問能提供選項來避免安裝像是 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,但這看起來感覺不是很好 ......
sed -i -e '/AUTHORS COPYING ChangeLog/,/COPYING/d' data/Makefile
The text was updated successfully, but these errors were encountered:
No branches or pull requests
請問能提供選項來避免安裝像是 AUTHORS COPYING ChangeLog 這類的檔案嗎?在打包 RPM 時通常會用 %doc 和 %license 這類的 macro 來將這些常見的文件檔放到發行版指定的地方,如果 Makefile 中就已經安裝這些檔案,可能會造成檔案出現在意料之外的地方,例如以下的狀況:
實際上 COPYING 已經放到 /usr/share/licenses/lilyterm-gtk3 裡了。
目前我用的方法是
sed -i -e '/AUTHORS COPYING ChangeLog/,/COPYING/d' data/Makefile
,但這看起來感覺不是很好 ......The text was updated successfully, but these errors were encountered: