On Sunday 08 November 2009 18:50:56 Sascha 'saigkill' Manns wrote:
Hello Cristian, hello List,
Am Sonntag 08 November 2009 17:45:12 wrote Cristian Rodríguez:
On 08/11/09 12:52, Sascha 'saigkill' Manns wrote:
Hello Mates,
through Cristians Tip the Program starts.
yes, but is is a fugly hack, the correct solution is to fix all the files that contain the error with a patch. Maybe you can help me with that? I'm just a little packager and i don't know all the hacks :-(
The way I would do it is to follow these (fairly) simple steps: 1, unpack the sources, which will give you the directory "freemedforms-0.0.8_2" ; 2, use "cp -a freemedforms-0.0.8_2{,.working}" , which creates a duplicate of the original sources in a separate directory; 3, use the hack that you added to the %build section, but slightly modified so it only looks in the .working directory: find freemedforms-0.0.8_2.working -type f -exec \ sed -i -e "s@freemeforms@freemedforms@g" {} + 4, create the diff and compress it using: diff -ur freemedforms-0.0.8_2{,.working} | \ gzip -9 freemedforms-0.0.8_2-fix_lib_path.diff.gz 5, add this to the spec file: Patch0: freemedforms-0.0.8_2-fix_lib_path.diff.gz 6, and finally apply it in the %prep section: %patch0 -p1 The reason for compressing the patch file is that, for this one, you end up with a 16,000 byte patch which becomes less than 2000 when compressed. After doing the above, and building locally, the package does contain the files in the correct locations: davjam@moray:~/builds/freemedforms> rpm -qlp /usr/src/packages/RPMS/x86_64/freemedforms-0.0.8-1.x86_64.rpm /usr/bin/freemedforms /usr/lib64/freemedforms /usr/lib64/freemedforms/libmedicaltoolkit.so /usr/lib64/freemedforms/libmf_baseformwidgets.so /usr/lib64/freemedforms/libmf_drugswidgetplugin.so /usr/lib64/freemedforms/libmf_richtextwidgets.so /usr/lib64/freemedforms/libmf_specialcombo.so /usr/lib64/freemedforms/libmf_xmlio.so /usr/lib64/freemedforms/libtoolkit.so /usr/lib64/freemedforms/libusertoolkit.so ... <snip rest of package contents> Regards, David Bolt -- Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1 RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org