On Mon, Apr 6, 2009 at 9:49 AM, Michal Čihař
Hi
Dne Mon, 6 Apr 2009 09:46:03 -0400 Greg Freemyer
napsal(a): My simple open2300 project is now building for OpenSUSE.
Couple questions:
1) I have a "BuildRequires: libmysqlclient-devel" directive in the spec file.
If I try to add the fedora repository, it tells me that package does not exist. All I need is the mysql.h file.
Fedora has mysql-devel.
Is there a set of cross references that tell what package I need for fedora?
Is there a more distro neutral way to say I need the package that provides mysql.h?
If not, how do I have different BuildRequires statements for different distros?
I ended up with evil set of if statements: http://viewsvn.cihar.com/viewvc.cgi/gammu/trunk/gammu.spec?view=markup
Thanks, that helps a lot, but I'm still confused. It now works for 32-bit Fedora 9 and 10, but fails for a 64bit compile. I reviewed your spec file as well as https://build.opensuse.org/package/view_file?file=gammu.spec&package=gammu&project=home%3ANijel Nijel's project in particular shows it successfully builds for 64-bit. I don't see either of those spec files treating Fedora 32-bit and 64-bit differently. For the 64-bit compile I get: gcc -Wall -O3 -DVERSION=\"1.11\" -o mysql2300 mysql2300.c rw2300.c linux2300.c -lm -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql2300] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.75188 (%build) For both Fedora 9 and 10 with the 64-bit build. So I have the mysql.h file, but I don't have the actual library. == Separately, I added a Debian repository and both Debian and Ubuntu are giving "excluded" as my status. I suspect I need to add something to the specfile to get them to try and build, but I'm not sure what. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org