Differences
This shows you the differences between two versions of the page.
dev:sahana_packaging_rpm [2008/04/28 11:53] ravithb created |
dev:sahana_packaging_rpm [2009/07/06 20:36] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Packaging the Sahana RPM. | ||
- | |||
- | 1. Create the following folder structure. | ||
- | < | ||
- | /tmp | ||
- | | | ||
- | +-- /sahana-rpm | ||
- | | | | ||
- | | +-- /usr | ||
- | | | | | ||
- | | | +-- /share | ||
- | | | | ||
- | | +-- /var | ||
- | | | | ||
- | | +-- /www | ||
- | | | | ||
- | | +-- /html | ||
- | | | ||
- | +-- sahana.spec | ||
- | </ | ||
- | |||
- | 2. Open the sahana.spec file with your favourite text editor and enter the following | ||
- | < | ||
- | %define name sahana | ||
- | %define version 6.2.2 | ||
- | %define release RC1 | ||
- | |||
- | Summary: Sahana - an opensource disaster management system. | ||
- | Name: %{name} | ||
- | Version: %{version} | ||
- | Release: %{release} | ||
- | Vendor: Lanka Software Foundation | ||
- | URL: http:// | ||
- | License: GPL | ||
- | Group: Software/ | ||
- | Prefix: %{_prefix} | ||
- | BuildRoot: / | ||
- | requires: httpd >= 2.0, mysql-server >= 5.0, mysql >= 5.0, php-mysql >= 5.0, php >= 5.0, php-gd >= 5.0, php5-gettext >= 5.0 | ||
- | |||
- | %description | ||
- | Sahana is an opensource software for management of disasters. | ||
- | |||
- | %prep | ||
- | |||
- | %build | ||
- | |||
- | |||
- | %install | ||
- | |||
- | |||
- | %files | ||
- | / | ||
- | / | ||
- | |||
- | %clean | ||
- | |||
- | %post | ||
- | |||
- | |||
- | |||
- | </ | ||
- | |||
- | 3. Execute the following commands | ||
- | < | ||
- | cd / | ||
- | mkdir BUILD RPMS SRPMS SOURCES SPECS | ||
- | |||
- | </ | ||
- | 4. Download the sahana source tar ball and extract it to / | ||
- | The folder / | ||
- | |||
- | 5. Execute the following command | ||
- | < | ||
- | cd / | ||
- | chmod a+w conf www/tmp | ||
- | |||
- | </ | ||