We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

How to prevent .DS_Store files from being included in an rpm

asked 2018-03-17 15:43:52 +0200

FloR707 gravatar image

Hi,

I have an issue with building rpms. When I build an RPM with Qt Creator an .DS_Store file is added to the .../qml/ folder. .DS_Store files are hidden files created by OS X. How can I prevent them from being included in the build?

Thanks.

edit retag flag offensive close delete

Comments

there is only a way for network shares but maybe the following works

https://www.aorensoftware.com/blog/2011/12/24/death-to-ds_store/

edit. seems not working anymore in 10.13

emschi ( 2018-03-17 23:57:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2018-03-18 09:33:05 +0200

johanh gravatar image

In rpm spec, %files section, add "%exclude .DS_Store".

edit flag offensive delete publish link more

Comments

Thanks, that looks like a really good solution!

FloR707 ( 2018-03-19 15:29:26 +0200 )edit

I think it is not that easy. It probably should be %exclude /*.DS_Store and an .DS_Store file must be present otherwise the build fails.

Keept testing but I cannot get this solution to work. First of all this should be added to the ymil file and not the spec file. But I was not able to get the path right. If I add the exclude statement the build always fails do to this line.

The only way at the moment is to use terminal and remove all a.DS_Store files manually with the rm command.

FloR707 ( 2018-03-28 21:16:28 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2018-03-17 15:43:52 +0200

Seen: 352 times

Last updated: Mar 18 '18