Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:sahana_packaging_rpm [2009/02/26 22:07]
fran
dev:sahana_packaging_rpm [2009/07/06 20:36] (current)
Line 12: Line 12:
   mkdir -p /tmp/sahana-rpm/usr/share   mkdir -p /tmp/sahana-rpm/usr/share
   mkdir -p /tmp/sahana-rpm/var/www/html   mkdir -p /tmp/sahana-rpm/var/www/html
 +  cd /tmp/sahana-rpm
 +  mkdir BUILD RPMS SRPMS SOURCES SPECS
  
 2. Create a file /tmp/sahana.spec with your favourite text editor and enter the following 2. Create a file /tmp/sahana.spec with your favourite text editor and enter the following
Line 57: Line 59:
 </code> </code>
  
-3. Execute the following commands +3. Download the sahana source tar ball and extract it to /tmp/sahana-rpm/usr/share/sahana
-<code> +
-cd /tmp/sahana-rpm +
-mkdir BUILD RPMS SRPMS SOURCES SPECS +
- +
-</code> +
-4. Download the sahana source tar ball and extract it to /tmp/sahana-rpm/usr/share/sahana+
  
 The folder /tmp/sahana-rpm/usr/share/sahana should contain all the sahana folders. eg: 3rd, lib, conf, www, mod, etc.... The folder /tmp/sahana-rpm/usr/share/sahana should contain all the sahana folders. eg: 3rd, lib, conf, www, mod, etc....
  
-5. Execute the following command+4. Execute the following command
 <code> <code>
 cd /tmp/sahana-rpm/usr/share/sahana/ cd /tmp/sahana-rpm/usr/share/sahana/
Line 75: Line 71:
 </code> </code>
  
-6. Create a file named '.rpmmacros' in your home directory with the following contents.+5. Create a file named '.rpmmacros' in your home directory with the following contents.
 <code> <code>
-%packager      Your name <Your email address>+%packager   Sahana <support@sahana.lk>
 %vendor     Sahana %vendor     Sahana
  
Line 85: Line 81:
  
 7. Execute the following command to create the rpm. 7. Execute the following command to create the rpm.
-<code> +  cd /tmp 
-cd /tmp +  rpmbuild -bb sahana.spec
-rpmbuild -bb sahana.spec +
- +
-</code>+
  
 8. The rpm file will be created under /tmp/sahana-rpm/RPMS/<arch>/ 8. The rpm file will be created under /tmp/sahana-rpm/RPMS/<arch>/
  
  

Navigation
QR Code
QR Code dev:sahana_packaging_rpm (generated for current page)