Hi Guys I hope there are some people on the list who are RPM wizzards, as I'm having a little trouble getting some of my rpms to compile on multiple Distributions. Namely SuSE and RedHat, as I have yet to try any others. Now, using the spec file that works on RedHat I get the following when I do rpm -ta on SuSE (7.3) :~/scratch # rpm -ta bleh-0.1.10test2.tar.gz error: failed build dependencies: MySQL-devel is needed by perdition-0.1.10test2-1 MySQL-shared is needed by perdition-0.1.10test2-1 openldap-devel is needed by perdition-0.1.10test2-1 zlib-devel is needed by perdition-0.1.10test2-1 Now, I have been informed (although I am having trouble finding doco on it) that rpm should infact auto pick a different spec file for SuSE/LSB than redhat. The package infact has two .spec files. One for redhat and one for lsb (SuSE). My undersanding is that rpm -ta bleh-0.1.10test2.tar.gz should cause rpm to find packaging/lsb/bleh.spec, as opposed to packaging/redhat/6.2/bleh.spec. The lsb/bleh.spec has the correct dependencies for SuSE, and works fine if I do a rpm -ba lsb/bleh.spec HELP! How do I make this work??? I have spent the last 3 hours reading everything on rpm.org including all of "Maximum RPM" but it's all basically assuming you are running RedHat specific packages. I have also looked at rpm spec file conditionals, but I'm not sure if they can do what I need... TIA -- Viel Spaß Peter Nixon - nix@susesecurity.com SuSE Security FAQ Maintainer http://www.susesecurity.com/faq/ "If you think cryptography will solve the problem, then you don't understand cryptography and you don't understand your problem."
participants (1)
-
Peter Nixon