voilà: RPMs for openSUSE

voilà: RPMs for openSUSE

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

cwh
Posts: 5
Joined: 22 Mar 2007, 09:29

voilà: RPMs for openSUSE

Post by cwh »

Hi.

I finally managed it to build spring (including nanoblobs) RPMs in openSUSE buildservice.

You can download the packages via HTTP from
software.opensuse.org/download/games:/strategy:/realtime/
(I am not yet allowed to post hyperlinks here)

All required packages should be either in the base distribution or in the same project as spring itself. This should only be two packages: libdevil and glew.

Since the included SCconstruct does not handle something like $DESTDIR and also does not respect compiler flags for all the files the RPMs are not as clean as they could be.

Feedback is welcome.

cwh
cwh
Posts: 5
Joined: 22 Mar 2007, 09:29

Post by cwh »

Actually I had to trigger a rebuild. So it will take a few minutes until the packages are there.

Please stand by.
User avatar
iamacup
Posts: 987
Joined: 26 Jun 2006, 20:43

Post by iamacup »

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

mind if i'll rip out your spec file to make it compatible with mandriva?

will probably have just to fix depandacies

also, if someone knows the names of the fedora libs, we might assemble an universal spec file & universal source rpm wich would compile on the most used rpm distros
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

A spec file would be very nice. I could test it out & get lib names for fedora.
Also if u could plz pass scons unitsync.
So it builds unitsync.so (just requires python, which is needed for build system anyways) with python bindings. I be very gratefully
Fri13
Posts: 54
Joined: 03 Feb 2007, 13:15

Re: voilà: RPMs for openSUSE

Post by Fri13 »

cwh wrote:Hi.

I finally managed it to build spring (including nanoblobs) RPMs in openSUSE buildservice.

Feedback is welcome.

cwh
Thank you VERY much.. i almoust could hug you if this works, now im downloading these packages and then im going to transferr and install them...

I hope you guys could get working RPM's for suse/mandriva/fedora. TA Spring is so cool game that it should be available for DEB/RPM distros and not only for windows ja debian/*buntu
cwh
Posts: 5
Joined: 22 Mar 2007, 09:29

Post by cwh »

Hi.

The packages now are finally building in oS buildservice for all (open)SUSE distributions 10.0 and younger.

Everybody is very welcome to try to fix the dependencies for non-suse distributions. You can fetch the spec files in the src-rpms from the same URL. So if you manage it to fix the (Build)Requires, let me know how to do that. Maybe http: //en.opensuse.org/Build_Service/cross_distribution_package_how_to helps you making a cross-distro spec file.

Btw. oS buildservice can also build for
- Debian Etch
- Fedora 5 & 6
- Mandriva 2006
- xUbuntu 6.06
However I am not able to do anything for DEB bases distros (I am too stupid ;) )

cwh
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

almost done, but first i want to sort out a thing; i would like to add unitsync.so compiling (to allow future lobby packages to use it without the need to include a bunch of useless source files in the lobby itself)

if i passs the argument
scons unitsync, where would it place? i know you passed the lib path to the scons configure, would it be placed there too?
cwh
Posts: 5
Joined: 22 Mar 2007, 09:29

Post by cwh »

Brain Damage wrote:if i passs the argument
scons unitsync, where would it place? i know you passed the lib path to the scons configure, would it be placed there too?
Uhm. I guess so. Let's try.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

No, unitsync isn't installed (yet). I will add that for 0.75.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

ok this is what i've done:

http://www.mediafire.com/?5y2zxykz2im

if you're wondering why i've used variables like suse & mandriva when i could keep checking if distro_version was declared; it's becuase for a weird reason, it throws an error when compiling the source rpm if i don't do this way...

might not be the smallest code-wise but it should't have errors

if anyone would fill the dependencies for fedora, red hat & mandriva 2006, i will be grateful
Rudirogdt
Posts: 82
Joined: 18 May 2006, 18:00

Post by Rudirogdt »

in for an ebuild for gentoo ^^ and debian ^^
HeadHunter
Posts: 53
Joined: 15 May 2007, 12:33

RPM

Post by HeadHunter »

RPM is cool. It IS cool. BUT_is it ever possible to build source code? It wants Python 2.4-dev. It is OK, but i (as other suse10.2 users) have python 2.5 already installed. And I do not want to downgrade version. Where is that file to edit to change from 2.4 to 2.5?
cwh
Posts: 5
Joined: 22 Mar 2007, 09:29

Post by cwh »

In the SRC rpm you can find the following patch for that:

Code: Select all

--- spring_0.74b3/rts/build/scons/config.py     2007-01-18 23:50:03.000000000 +0100
+++ config.py   2007-03-21 11:12:43.000000000 +0100
@@ -169,9 +169,9 @@


 def check_python(env, conf):
-       print "Checking for Python 2.4...",
+       print "Checking for Python 2.5...",
        print ""
-       guess_include_path(env, conf, 'Python', 'python2.4')
+       guess_include_path(env, conf, 'Python', 'python2.5')


 def check_headers(env, conf):
@@ -244,7 +244,7 @@
                env.Exit(1)

        # second check for Windows.
-       if not conf.CheckLib('python2.4') and not conf.CheckLib('python24'):
+       if not conf.CheckLib('python2.5') and not conf.CheckLib('python25'):
                print 'python is required for this program'
                env.Exit(1)
HeadHunter
Posts: 53
Joined: 15 May 2007, 12:33

Post by HeadHunter »

Thank you... I'm gonna try to find it.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Post by Agon »

Tanks a lot. Maybe can you provide AI libs, unitsync.so and a working lobby client as a rpm. That would be very good.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

the following AI libs are included in that rpm:

AAI
KAI-0.12
KAI-0.22
JCAI

Central Build AI
Economy AI
Metal Maker AI
Mex Upgrader AI
Radar AI
Report Idle AI

untsync isn't included, it couldbe possible to include now, but it'd be a bit hackish, to have proper installation, it's best to wait for next version wich will include it in make install

if you look @ other threads, currently, the only "working" lobby would be AFlobby (as in unitylobby project is discontinued) but it's still beta and didn't reach yet V 1.0 (althoght it seems pretty close to it)
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

Brain Damage wrote:
if you look @ other threads, currently, the only "working" lobby would be AFlobby (as in unitylobby project is discontinued) but it's still beta and didn't reach yet V 1.0 (althoght it seems pretty close to it)
Well its technically still in alpha, but a "working" beta should be released very soon as Beta RC1 is looking good.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Post by Agon »

the following AI libs are included in that rpm:

AAI
KAI-0.12
KAI-0.22
JCAI
AAI - Yes
KAI-0.12 - Yes
KAI-0.22 - Not available
JCAI - Not available

Edit:
All Ai libs in the x64 10.2 rpm
/usr/lib64/AI
/usr/lib64/AI/Bot-libs
/usr/lib64/AI/Bot-libs/AAI.so
/usr/lib64/AI/Bot-libs/KAI-0.12.so
/usr/lib64/AI/Bot-libs/TestGlobalAI.so
/usr/lib64/AI/Helper-libs
/usr/lib64/AI/Helper-libs/CentralBuildAI.so
/usr/lib64/AI/Helper-libs/EconomyAI.so
/usr/lib64/AI/Helper-libs/MetalMakerAI.so
/usr/lib64/AI/Helper-libs/MexUpgraderAI.so
/usr/lib64/AI/Helper-libs/RadarAI.so
/usr/lib64/AI/Helper-libs/ReportIdleAI.so
/usr/lib64/AI/Helper-libs/SimpleFormationAI.so
This folders are empty:
/usr/share/games/spring/AI/Bot-libs
/usr/share/games/spring/AI/Helper-libs
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Indeed AFLobby is alpha but nearing a beta 1 release.
Post Reply

Return to “Linux”