Spec URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce.spec SRPM URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce-7-1.fc15.src.rpm Description: Hi I just finished packaging sugar-bounce. I highly appreciate a review. sugar-bounce is an activity for sugar learning environment. sugar-bounce is a game which is analogous to the arcade game Pong, however it takes place within a three dimensional box with physical effects such as gravity. Additionally, bounce features an editor which allows children to create their own version of the game.
I will take this on
Hi Kalpa this is not a noarch package. You are missing a build step to compile the c++ library _pong.so. Have a look in the INSTALL document of the source package. Brendan
Hi Brendan Would you please explain it in detail. btw, build needs in the INSTALL are all listed in the spec.
Your package contains a C library which must be compiled in the %build section and installed in the appropriate location. Being compiled that means the package is architecture specific - so you have to remove the BuildArch tag. You will be doing something along the lines of this in your build and prep section and make sure the files are installed in the correct place. %prep %setup -q -n Bounce-%{version} sed -i -e 's|-fPIC -O2|%{optflags}|' pongc/Makefile %build # build C binaries pushd pongc make popd For reference: http://fedoraproject.org/wiki/Packaging:SugarActivityGuidelines#Architecture-specific_Activities
I would think that you can simply leave the BuildArch out and make sure that the arch specific stuff goes in the correct %{_libdir}/sugar/activities rather than %{sugaractivitydir}. %{_libdir} will change to lib/lib64 depending on the arch the rpm is building. You can test it out in mock: mock -r fedora-16-i386 <src.rpm> mock -r fedora-16-x86_64 <src.rpm> I'm new to Sugar so I would suggest contacting one of the other Sugar maintainers on how to package arch specific Sugar Activities. (http://fedoraproject.org/wiki/Sugar_Activities)
Yes, the BuildArch line can just be dropped.
fixed the issues Spec URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce.spec SRPM URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce-7-2.fc15.src.rpm
Sorry incorrect srpm link, here is the correct one Spec URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce.spec SRPM URL: http://callkalpa.fedorapeople.org/sugar-bounce/sugar-bounce-7-2.fc16.src.rpm
Hi Kalpa, still a few issues here. - When I run the application I'm getting the following: fedora16:~ $ python /usr/share/sugar/activities/Bounce.activity/bounce.pyc Traceback (most recent call last): File "/usr/share/sugar/activities/Bounce.activity/bounce.py", line 28, in <module> from pongc.pongc import * ImportError: No module named pongc.pongc pongc.py is missing from your package - You also are using %buildroot and $RPM_BUILDROOT - defattr(....) present in %files section. This is OK if packaging for EPEL5. Otherwise not needed - remove rm -rf $RPM_BUILD_ROOT in your %install section
No progress for more than a year. Is this ticket still reviewable?
Nothing has happened for almost two years. I close this ticket, adding FE-DEADREVIEW.