Monday, January 30, 2006

How to build an RPM

The basic procedure to build an RPM is as follows:

* Get the source code you are building the RPM for to build on your system.

* Make a patch of any changes you had to make to the sources to get them to build properly.

* Make a spec file for the package.

* Make sure everything is in its proper place.

* Build the package using RPM.

Under normal operation, RPM builds both binary and source packages.

One of the most typical and important task is to make the spec file.
Still i am collecting information about the spec file and in next post i will be writing about it and make a sample spec file.

enjoy... make world open.

Friday, January 27, 2006

Steve Job Words...

I'm pretty sure none of this would have happened if I hadn't been fired from Apple. It was awful tasting medicine, but I guess the patient needed it. Sometimes life hits you in the head with a brick. Don't lose faith. I'm convinced that the only thing that kept me going was that I loved what I did. You've got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

Saturday, January 07, 2006

Useful tips from Ain Vagula for updating UI strings to newer version of OpenOffice.

Following steps are needed when migrating to UI strings with no duplicates:

- install updated toolkit

- generate sdf file from your existing translated or half-translated po-s with new toolkit
(to avoid english strings in untranslated entries)

- backup old po-s somewhere

- generate new set of po-files from just generated sdf-file for your language

- update generated po-files with latest pot-files. Now every duplicated string in
one file has unique identifier, but string itself is translated as it was in
your old po-file.

Note that:

- When you do not regenerate po files, all duplicate entries will be untranslated.

- When you use sdf file, generated with old toolkit, for regenerating,untranslated
entries will be filled with english strings

thanks Ain as these steps are working really fine for me :-)).

Thursday, January 05, 2006

How to extract files from rpm and deb packages

* rpm package can be extracted by issuing this command at the command line.

$rpm2cpio {rpm-package name} | cpio -idv

* deb packages can be extracted by issuing this command at the command line.

$dpkg-deb -x {deb-package name} {target directory}

Enjoy..