Hi all,
I'm pretty new to this packaging and cross-compiling, but I put together a couple packages anyway:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
They seem to work quite well for me, but I don't really know what I'm doing, so I'd appreciate more knowledgeable folk looking over my spec files.
Here's what I did and where everything came from: (all in F11)
1) I set up my .rpmmacros so it would store sources in separate directories by package name-version by adding this line:
%_sourcedir %{_topdir}/SOURCES/%{name}-%{version}
I was worried that multiple source rpms would have files in them with the same name (which turned out to be the case) and I wanted to make sure I could tell what packages what files came from.
2) I used yumdownloader to download source rpms for SDL SDL_mixer SDL_image and SDL and installed them in my local rpmbuild tree
3) I duplicated SOURCES/SDL_image-1.2.6/ to SOURCES/mingw32-SDL_image-1.2.6/
4) I copied SPECS/mingw32-SDL-1.2.13.spec to SPECS/mingw32-SDL_image-1.2.6.spec
5) I edited that new spec file, mostly by looking at existing SDL_image-1.2.6.spec and pulling useful parts from it. tweaking as neccesary.
And basically did the same for SDL_mixer.
Some notes:
I didn't modify anything in the SOURCES folder (just copied whole folders as described above).
I used all the patches that were used for the native versions.
I commented out lines to install (and build in one case) little executable programs from both packages that I didn't understand the point of.
I've cross-compiled my game (vor) which uses both of these libraries, and it works great under wine. (Gets at least 40% better framerate under wine than it does when compiled for linux.) Though I have not tested them on Windows.
I have a fedoraproject.org account (so I can edit the wiki and such) but don't have any connections or access or anything to get these into the fedora distrobution. If/when they are ready, I'd love someone to take care of this, or help me do it. Right now I don't even know what the process is.
Looking forward to hearing your thoughts/feedback.
Take care, - Jason
On Thu, Jun 18, 2009 at 05:07:18PM -0400, Jason Woofenden wrote:
Hi all,
I'm pretty new to this packaging and cross-compiling, but I put together a couple packages anyway:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
I did a quick 'sniff test' on the spec files, and they both look good. (For someone who claims to know nothing about RPM packaging, these are in fact really excellent :-)
How do you fancy adding these packages to Fedora? One big advantage for you is that if they're in Fedora, they become part of the base, maintained system which you use to compile your game.
The process is outlined here:
http://fedoraproject.org/wiki/MinGW/New_package http://fedoraproject.org/wiki/PackageMaintainers/Join
Rich.
Hi all,
I don't think I'm up for being a package maintainer.
Anybody willing to maintain mingw32-SDL_image and mingw32-SDL_mixer?
Here's the URLs again (which I posted 10 days ago) http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
They seem to work great with my game, which cross-compiles, runs under wine, and runs under windows perfectly.
Guess the defines at the top need to turn into globals, but other than that they might be ready to go.
Thank you! - Jason
On Fri, Jun 19, 2009 at 4:06 AM, Richard W.M. Jonesrjones@redhat.com wrote:
On Thu, Jun 18, 2009 at 05:07:18PM -0400, Jason Woofenden wrote:
Hi all,
I'm pretty new to this packaging and cross-compiling, but I put together a couple packages anyway:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
I did a quick 'sniff test' on the spec files, and they both look good. (For someone who claims to know nothing about RPM packaging, these are in fact really excellent :-)
How do you fancy adding these packages to Fedora? One big advantage for you is that if they're in Fedora, they become part of the base, maintained system which you use to compile your game.
The process is outlined here:
http://fedoraproject.org/wiki/MinGW/New_package http://fedoraproject.org/wiki/PackageMaintainers/Join
Rich.
-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top _______________________________________________ fedora-mingw mailing list fedora-mingw@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
Hi all again,
I updated my mingw32-SDL_mixer and mingw32-SDL_image packages. They now use the %global macro instead of %define. That and some whitespace fixes make them pass rpmlint.
Also, at the request of Michael Ploujnikov I added support for libtiff.
Hopefully it is ready to be added to fedora.
Anybody willing to be the maintainer? I'm not, and probably never will be.
The spec files can be viewed or downloaded from here:
http://gitorious.org/jasonwoof/fedora-rpms/trees/master/SPECS
The source rpms are here:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.src.rpm
And here's the binaries (built on my system), if people just want to use them or test them:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.noarch.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.noarch.rpm
They work great for me.
I've been testing them with this little game:
git clone http://qualdan.com/vor/vor.git
(just mingw32-configure && make)
Take care, - Jason
P.S. Please please please will you maintain it?
I'd be happy to maintain them, and take them through the review process. I couldn't do so immediately though, i'm not sponsored yet... (one package submitted, another pending)
Stefan
2009/11/11, Jason Woofenden jason@jasonwoof.com:
Hi all again,
I updated my mingw32-SDL_mixer and mingw32-SDL_image packages. They now use the %global macro instead of %define. That and some whitespace fixes make them pass rpmlint.
Also, at the request of Michael Ploujnikov I added support for libtiff.
Hopefully it is ready to be added to fedora.
Anybody willing to be the maintainer? I'm not, and probably never will be.
The spec files can be viewed or downloaded from here:
http://gitorious.org/jasonwoof/fedora-rpms/trees/master/SPECS
The source rpms are here:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.src.rpm
And here's the binaries (built on my system), if people just want to use them or test them:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.noarch.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.noarch.rpm
They work great for me.
I've been testing them with this little game:
git clone http://qualdan.com/vor/vor.git
(just mingw32-configure && make)
Take care, - Jason
P.S. Please please please will you maintain it? _______________________________________________ fedora-mingw mailing list fedora-mingw@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
Stefan,
Thank you! I'm so glad you're willing to be the maintainer for mingw32-SDL_image and mingw32-SDL_mixer.
Let me know if I should do any further work on the .spec files.
Take care, - Jason
On Wed, Nov 11, 2009 at 4:24 PM, stefan riemens fgfs.stefan@gmail.com wrote:
I'd be happy to maintain them, and take them through the review process. I couldn't do so immediately though, i'm not sponsored yet... (one package submitted, another pending)
Stefan
2009/11/11, Jason Woofenden jason@jasonwoof.com:
Hi all again,
I updated my mingw32-SDL_mixer and mingw32-SDL_image packages. They now use the %global macro instead of %define. That and some whitespace fixes make them pass rpmlint.
Also, at the request of Michael Ploujnikov I added support for libtiff.
Hopefully it is ready to be added to fedora.
Anybody willing to be the maintainer? I'm not, and probably never will be.
The spec files can be viewed or downloaded from here:
http://gitorious.org/jasonwoof/fedora-rpms/trees/master/SPECS
The source rpms are here:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.src.rpm
And here's the binaries (built on my system), if people just want to use them or test them:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-2.fc11.noarch.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-2.fc11.noarch.rpm
They work great for me.
I've been testing them with this little game:
git clone http://qualdan.com/vor/vor.git
(just mingw32-configure && make)
Take care, - Jason
P.S. Please please please will you maintain it? _______________________________________________ fedora-mingw mailing list fedora-mingw@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
fedora-mingw mailing list fedora-mingw@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
Hi Jason,
I'm glad you decided to work on the mingw32-SDL_image package because I was interested in doing it myself a while ago, but somehow got too busy.
On Thu, Jun 18, 2009 at 5:07 PM, Jason Woofendenjason@jasonwoof.com wrote:
Hi all,
I'm pretty new to this packaging and cross-compiling, but I put together a couple packages anyway:
http://jasonwoof.com/downloads/mingw32-SDL_image-1.2.6-1.fc11.src.rpm
http://jasonwoof.com/downloads/mingw32-SDL_mixer-1.2.8-1.fc11.src.rpm
They seem to work quite well for me, but I don't really know what I'm doing, so I'd appreciate more knowledgeable folk looking over my spec files.
I'd like to suggest two things: 1 - add BuildRequires: mingw32-libtiff to the SDL_image spec. I've recently added mingw32-libtiff to the F10 and F11 repositories exactly for this reason. 2 - please replace all of the %define macro calls with %global because that is the correct approach according to https://fedoraproject.org/wiki/Packaging/Guidelines#.25global_preferred_over...
Thanks for taking these packages into your hands. Have fun!