Since there is no current Dehydra package for Fedora, I had to create a SPEC file from scratch.
From what I had learned before, I ran the follow command: rpmdev-newspec dehydra
and that created me a empty spec template I can work on for dehydra.
Here is a copy of my spec file: SPEC
Since my project is sort of connected to my colleagues work, I had to hard code some tools into my spec file until he has completed his project.
Throughout the process of creating and building the spec file, I would encounter missing files the configuration file Dehydra was looking for from SpiderMonkey. So I asked my Professor Chris about it, he advised me to look for the files and then just create a symbolic link to where the build file is looking for.
Next issue was, for the %install section because I was not installing anything I left that section empty. But Chris advised me, to create a directory to put the dehydra plugin as right now, there is really no specific directory.
He advised me to follow what he has done with nLed in terms of how he setup the %install portion.
After all the work, I finally completed my task at hand, and came out with the RPMS.
2 comments:
I don't know how useful this RPM is supposed to be, but it has a major flaws in that it pretends to have no dependency which is quite far from the truth.
I think it should have one on SpiderMonkey and another one on the patched gcc you are using.
So it would be much more useful if you'd create two additionnal RPM with those elements, and made your dehydra RPM dependant on them.
Doing that you'd also remove the hardcoded reference to your GCC in the .spec (
export CXX=/home/bchao/tools/gcc-dehydra/installed/bin/g++ )
Good luck
Actually, one of the other class mates is making the RPM for the Modified GCC RPM, I was in charge of making the RPM for Dehydra, Look forward to that =P
Post a Comment