Christian Morales Vega wrote:
I have packaged Tower Toppler in home:RedDwarf. If a /var/games/toppler/toppler.hsc file exists the game uses it to store highscores for all users, if doesn't exists it uses ~/.toppler/toppler.hsc. I use %verify(not size md5 mtime) %attr(-, root, games) %{_localstatedir}/games/%{name}/%{name}.hsc so any user in games group can use it and rpm -V doesn't complains. But when I update the package a new empty file is created that deletes previous highscores! What's the best way to package this file so old highscores aren't lost?
You could try putting %config(noreplace) at the start of the line.
And since I'm with this... - The binary should go to /usr/bin or /usr/games? There is any openSUSE official policy?
Please use /usr/games - nearly all binaries in games repository do that. Once the package is working as you expect, please drop me a note and I will move it to games repository so you can maintain it there.
- What are the plans for %suse_update_desktop_file? Should not desktop-file-install from freedesktop.org be enough? I have never fully understood how X-SuSE-translate is used. When you want to support other distros isn't funny to %if every package with a .desktop file.
%suse_update_desktop_file also translates strings like Name or Comment - use that macro for SUSE. It also puts X-SuSE-translate identifier there so original .desktop file cannot contain it. -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org