README 3.0 KB

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