FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 07-05-2008, 07:58 PM
"David Van Assche"
 
Default trying to build rpm for google gears

Hi there,
** I'm working with OLPC (one laptop per child) and am trying to port Google Gears to Sugar (running on Fedora 9) so that we can start working on some offline web based apps (like Offline Moodle.) Ive managed to get a subversion checkout of the source code for google gears, and managed to successfully compile it, noting down required dependencies and the like. It was suggested to me that I should post here to see if someone doesn't have some suggestions on building an rpm for mozilla (xulrunner 1.9) based extensions...

** I am aware that gears is normally packaed as a .xpi, but that wont work for the XO laptops... it must be a rpm that I can install system wide from the command line. Any help is much appreciated. I'm pretty new to building rpms, as I come from a debian based background, but I'm sure its not all that different from building debs...


Kind Regards,
David Van Assche
OLE Nepal and OLPC

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-05-2008, 11:42 PM
brad longo
 
Default trying to build rpm for google gears

David Van Assche wrote:

Hi there,
I'm working with OLPC (one laptop per child) and am trying to port
Google Gears to Sugar (running on Fedora 9) so that we can start
working on some offline web based apps (like Offline Moodle.) Ive
managed to get a subversion checkout of the source code for google
gears, and managed to successfully compile it, noting down required
dependencies and the like. It was suggested to me that I should post
here to see if someone doesn't have some suggestions on building an
rpm for mozilla (xulrunner 1.9) based extensions...
I am aware that gears is normally packaed as a .xpi, but that wont
work for the XO laptops... it must be a rpm that I can install system
wide from the command line. Any help is much appreciated. I'm pretty
new to building rpms, as I come from a debian based background, but
I'm sure its not all that different from building debs...


Kind Regards,
David Van Assche
OLE Nepal and OLPC
I don't know much about building an rpm for mozilla based extensions,
but if you need a place to start on familiarizing yourself with rpm's I
wrote a tutorial in my blog
<http://bradlongo.wordpress.com/rpmbuild-tutorial/> recently on how to
create one. I learned how to package rpms myself from rpm.org
<http://www.rpm.org/RPM-HOWTO/>. If you know how to make a deb package
you shouldn't have too much trouble. Good luck.


-- Brad

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-06-2008, 04:21 PM
Ville-Pekka Vainio
 
Default trying to build rpm for google gears

David Van Assche wrote:
> It
> was suggested to me that I should post here to see if someone doesn't have
> some suggestions on building an rpm for mozilla (xulrunner 1.9) based
> extensions...
> I am aware that gears is normally packaed as a .xpi, but that wont work
> for the XO laptops... it must be a rpm that I can install system wide from
> the command line.

Hi,

I don't know that much about Xulrunner and even less about the OLPC software
stack, but I have packaged one xulrunner-based Firefox extension, which is
currently under review. The spec file is at
<http://vpv.fedorapeople.org/packages/mozvoikko/mozvoikko.spec>.

>From the website I understood that Google Gears is a Firefox extension on the
client side. Does the OLPC actually use Firefox or some other Mozilla based
browser?

The .xpi file is basically "just" a renamed zip file, so you need to extract
it and then install the files to the "correct" location, which depends on the
browser used. In the case of the mozvoikko extension I
use %{_libdir}/mozilla/extensions/%{firefox_app_id}/%{firefox_ext_id},
where %{firefox_app_id} is ec8030f7-c20a-464f-9b0e-13a3a9e97384 (Firefox's
ID) and %{firefox_ext_id} is the ID of the extension (ok, the naming is a bit
misleading here . I hope this helps, at least a little.


--
Ville-Pekka Vainio

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 07-06-2008, 08:32 PM
"David Van Assche"
 
Default trying to build rpm for google gears

Hi Ville-Pekka Vainio,
** It does indeed. A thousand thanks...

I've managed to compile the build from an subversion source on both Fedora and Ubuntu now, and looking at the files, there are way more in the build than there are in an unzipped gears.xpi. But I'm sure I've got enough to work on now. The XO browser (called browse) is actually very closely related to Firefox 3 (and uses XULRunner 1.9) so using its id as u mention should work...


Thanks,
David Van Assche

On Sun, Jul 6, 2008 at 6:21 PM, Ville-Pekka Vainio <vpivaini@cs.helsinki.fi> wrote:

David Van Assche wrote:

> It

> was suggested to me that I should post here to see if someone doesn't have

> some suggestions on building an rpm for mozilla (xulrunner 1.9) based

> extensions...

> * *I am aware that gears is normally packaed as a .xpi, but that wont work

> for the XO laptops... it must be a rpm that I can install system wide from

> the command line.



Hi,



I don't know that much about Xulrunner and even less about the OLPC software

stack, but I have packaged one xulrunner-based Firefox extension, which is

currently under review. The spec file is at

<http://vpv.fedorapeople.org/packages/mozvoikko/mozvoikko.spec>.



>From the website I understood that Google Gears is a Firefox extension on the

client side. Does the OLPC actually use Firefox or some other Mozilla based

browser?



The .xpi file is basically "just" a renamed zip file, so you need to extract

it and then install the files to the "correct" location, which depends on the

browser used. In the case of the mozvoikko extension I

use %{_libdir}/mozilla/extensions/%{firefox_app_id}/%{firefox_ext_id},

where %{firefox_app_id} is ec8030f7-c20a-464f-9b0e-13a3a9e97384 (Firefox's

ID) and %{firefox_ext_id} is the ID of the extension (ok, the naming is a bit

misleading here . I hope this helps, at least a little.





--

Ville-Pekka Vainio



--

fedora-devel-list mailing list

fedora-devel-list@redhat.com

https://www.redhat.com/mailman/listinfo/fedora-devel-list



--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 07:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org