[opensuse-packaging] skrooge 0.2.6
Hello Mates, actualy i'm try to build skrooge. But in the CMakeLists.txt is the following: ########### install files ############### INSTALL(TARGETS skrooge DESTINATION ${BIN_INSTALL_DIR} ) INSTALL(FILES ${PROJECT_BINARY_DIR}/skrooge.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) #INSTALL(FILES ${PROJECT_BINARY_DIR}/skrooge.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}/../kde/ ) #CORRECTION BUG 2256687 on ubuntu 8.04 INSTALL(FILES ${PROJECT_BINARY_DIR}/x-skg.desktop DESTINATION ${MIME_INSTALL_DIR}/application/ ) INSTALL(DIRECTORY theme DESTINATION ${DATA_INSTALL_DIR}/skrooge FILES_MATCHING PATTERN "*.css" PATTERN ".svn" EXCLUDE PATTERN "CMakeFiles" EXCLUDE) kde4_install_icons( ${ICON_INSTALL_DIR} ) That means, that i have 2 *.desktop Files (skrooge.desktop and x- skg.desktop). So i have placed in the Spec: %suse_update_desktop_file skrooge Finance But now comes the Error: + /usr/lib/rpm/suse_update_desktop_file.sh -- project 'home:saigkill / openSUSE_Factory' --project home:saigkill -- basedir /usr/src/packages/SRPMS skrooge Finance + /usr/lib/rpm/suse_update_desktop_file.sh --project 'home:saigkill / openSUSE_Factory' --project home:saigkill --basedir /usr/src/packages/SRPMS -i skrooge Office Finance `/usr/src/packages/BUILD/skrooge-0.2.6/skrooge/skrooge.desktop' -> `/var/tmp/kde4-skrooge-0.2.6- build/usr/share/applications/skrooge.desktop' ERROR: suse_update_desktop_file: skrooge has multiple desktop files I the last Version i have comment out the desktop Files in CMakeLists.txt and create my own skrooge.desktop. But i think it is not good that x-skg.desktop is missing. Is it possible to fix this? -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
I've found the Error. I had two %suse_update. But one was commented with a hash. The osc had interpretet the comment Line. -- Sincereley yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2009-03-31 02:10:12 +0200, Sascha 'saigkill' Manns wrote:
I've found the Error. I had two %suse_update. But one was commented with a hash. The osc had interpretet the comment Line.
You need to escape the macro, e.g. # %%suse_update_... instead of # %suse_update... because the macro is expanded otherwise. Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Marcus Hüwe wrote:
On 2009-03-31 02:10:12 +0200, Sascha 'saigkill' Manns wrote:
I've found the Error. I had two %suse_update. But one was commented with a hash. The osc had interpretet the comment Line.
You need to escape the macro, e.g. # %%suse_update_... instead of # %suse_update...
because the macro is expanded otherwise.
Yes, macros are expanded even when they appear in the comments. $ rpm -E %suse_update_desktop_file /usr/lib/rpm/suse_update_desktop_file.sh --basedir /usr/src/packages/SRPMS || exit 1 The first line of the expanded macro is the blank line. So after the expansion only this blank line is commented, and the next (with actual call to script) is still executed. RPM also does not support this: %configure \ # call configure --disable-static \ # disable static libraries --enable-png # enable png (comments are not stripped before joining the lines) -- 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
participants (3)
-
Marcus Hüwe
-
Pavol Rusnak
-
Sascha 'saigkill' Manns