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/10/21 09:26] hayesha |
dev:sahana_packaging_rpm [2009/07/06 20:36] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Packaging the Sahana RPM. ====== | + | ====== 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 33: | Line 27: | ||
Vendor: Lanka Software Foundation | Vendor: Lanka Software Foundation | ||
URL: http:// | URL: http:// | ||
- | License: | + | License: |
Group: Software/ | Group: Software/ | ||
Prefix: %{_prefix} | Prefix: %{_prefix} | ||
Line 40: | Line 34: | ||
%description | %description | ||
- | Sahana is an opensource | + | Sahana is a Free & Open Source |
%prep | %prep | ||
Line 65: | Line 59: | ||
</ | </ | ||
- | 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 82: | Line 71: | ||
</ | </ | ||
- | 6. Create a file named ' | + | 5. Create a file named ' |
< | < | ||
- | %packager | + | %packager |
%vendor | %vendor | ||
Line 92: | Line 81: | ||
7. Execute the following command to create the rpm. | 7. Execute the following command to create the rpm. | ||
- | < | + | |
- | cd /tmp | + | rpmbuild -bb sahana.spec |
- | rpmbuild -bb sahana.spec | + | |
- | + | ||
- | </ | + | |
8. The rpm file will be created under / | 8. The rpm file will be created under / | ||