README 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. README (English)
  2. ##################################################
  3. RPM Package tools
  4. ##################################################
  5. This directory contains files used by makepack-dolibarr.pl
  6. script to build a package, ready to be distributed,
  7. with format RPM (for Redhat, OpenSuse, Mandriva, ...).
  8. # This is standard command to work on RPM packaging:
  9. #
  10. # To install all packagers tools:
  11. # Fedora: yum -y install rpmlint fedora-packager mock koji hunspell-en hunspell-es hunspell-fr hunspell-it
  12. # OpenSuse: yast --install update-desktop-files
  13. #
  14. # rpmlint file.rpm Test a package
  15. # mock -r fedora-15-i386 --rebuild ../SRPMS/hello-2.7-1.fc15.src.rpm
  16. #
  17. # On Fedora
  18. # rpm -i --test dolibarr-...rpm To list dependencies of RPM
  19. # yum -v install dolibarr-...rpm To install package and dependencies
  20. # yum -v erase dolibarr To remove package
  21. # chcon -R -h -t httpd_sys_script_rw_t /file To add temporary context rw for httpd on /file
  22. # semanage fcontext -a -t httpd_sys_script_rw_t "/dir/(.*)?" To add persistent context rw for httpd on /dir (this add file_contexts.local)
  23. # restorecon -R -v /file Restore values into files (cancel chcon, validate semanage)
  24. #
  25. # On OpenSuse
  26. # zypper install dolibarr-...rpm To install package and dependencies
  27. # zypper remove dolibarr To remove package
  28. # zypper search xxx To search a package
  29. #
  30. # On Mageia (after su - root)
  31. # urpmi dolibarr-...rpm To install package and dependencies
  32. # urpme dolibarr To remove package
  33. #
  34. # More on rpm on page http://www.trustonme.net/didactels/273.html
  35. To submit a package to Fedora:
  36. - Create account on bugzilla.redhat.com
  37. - Create account on fedoraproject.org
  38. - Create SRPMS package.
  39. - Upload package onf http://fedorapeople.org
  40. - Create a bug with form https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review
  41. This is example of content of review field (used for Bug 723326 - https://bugzilla.redhat.com/show_bug.cgi?id=723326):
  42. SRPMS URL: http://www.dolibarr.org/files/fedora/dolibarr-x.y.z-xxx.src.rpm
  43. Description: Dolibarr ERP & CRM is an easy to use open source/free software
  44. for small and medium companies, foundations or freelances. It includes
  45. different features for Enterprise Resource Planning (ERP) and Customer
  46. Relationship Management (CRM) but also for different other activities.
  47. I am author of other already packaged OpenSources packages (awstats) but this
  48. is my first package to maintain myself. So i'm seeking a sponsor.
  49. - Edit field "Block" and add FE-NEEDSPONSOR
  50. - Check bug is into database by searching with id on https://bugzilla.redhat.com/
  51. - Install fedora packager tools: yum install fedora-packager
  52. - Setup fedora packagers tools: fedora-packager-setup
  53. - Send your package: koji build --scratch f16 path_to_source_RPM
  54. - Check if package is available: http://koji.fedoraproject.org/koji/