Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dev:sahana_packaging_rpm [2008/04/28 11:56] ravithb |
dev:sahana_packaging_rpm [2009/07/06 20:36] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Packaging the Sahana RPM. | + | ====== |
+ | |||
+ | === Automated Method === | ||
+ | This works on Debian: | ||
+ | |||
+ | cvs -z3 -d: | ||
+ | sahana-ext/ | ||
+ | |||
+ | === Manual Method === | ||
1. Create the following folder structure. | 1. Create the following folder structure. | ||
- | < | + | mkdir -p / |
- | /tmp | + | |
- | | | + | |
- | +-- /sahana-rpm | + | |
- | | | | + | |
- | | +-- /usr | + | |
- | | | | | + | |
- | | | +-- /share | + | |
- | | + | |
- | | +-- /var | + | |
- | | | | + | |
- | | | + | |
- | | | | + | |
- | | +-- /html | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | 2. Open the sahana.spec | + | 2. Create a file /tmp/sahana.spec with your favourite text editor and enter the following |
< | < | ||
%define name sahana | %define name sahana | ||
- | %define version 6.2.2 | + | %define version |
- | %define release | + | %define release |
- | Summary: Sahana | + | Summary: Sahana |
Name: %{name} | Name: %{name} | ||
Version: %{version} | Version: %{version} | ||
Line 32: | Line 27: | ||
Vendor: Lanka Software Foundation | Vendor: Lanka Software Foundation | ||
URL: http:// | URL: http:// | ||
- | License: | + | License: |
Group: Software/ | Group: Software/ | ||
Prefix: %{_prefix} | Prefix: %{_prefix} | ||
BuildRoot: / | 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 | + | requires: httpd >= 2.0, mysql-server >= 5.0, mysql >= 5.0, php-mysql >= 5.0, php >= 5.0, php-gd >= 5.0, php5-common |
%description | %description | ||
- | Sahana is an opensource | + | Sahana is a Free & Open Source |
%prep | %prep | ||
Line 56: | Line 51: | ||
%post | %post | ||
- | + | if [ -x / | |
+ | echo " | ||
+ | url=" | ||
+ | firefox -remote openurl\($url, | ||
+ | fi | ||
</ | </ | ||
- | 3. Execute | + | 3. Download |
- | < | + | |
- | cd / | + | |
- | mkdir BUILD RPMS SRPMS SOURCES SPECS | + | |
- | </ | ||
- | 4. Download the sahana source tar ball and extract it to / | ||
The folder / | The folder / | ||
- | 5. Execute the following command | + | 4. Execute the following command |
< | < | ||
cd / | cd / | ||
Line 78: | Line 71: | ||
</ | </ | ||
- | 6. Execute | + | 5. Create a file named ' |
< | < | ||
- | cd / | + | %packager |
- | rpmbuild -bb sahana.spec | + | %vendor |
+ | |||
+ | %_topdir | ||
</ | </ | ||
- | 7. The rpm file will be created under / | + | 7. Execute the following command to create the rpm. |
+ | cd /tmp | ||
+ | rpmbuild -bb sahana.spec | ||
+ | |||
+ | 8. The rpm file will be created under / | ||
- | 6. | ||