dolibarr/build/rpm
Laurent Destailleur 9d4b8afc3d Clean rpm
2022-10-18 00:12:55 +02:00
..
conf.php [Qual] Removed PHP closing tag 2015-12-09 13:28:45 +01:00
dolibarr_fedora.spec Fix rpm packages 2022-07-26 23:51:50 +02:00
dolibarr_generic.spec Fix rpm files 2022-10-18 00:06:20 +02:00
dolibarr_mandriva.spec Fix rpm packages 2022-07-26 23:51:50 +02:00
dolibarr_opensuse.spec Clean rpm 2022-10-18 00:12:55 +02:00
dolibarr-forrpm.patch Fix ignore file integrity check on filefunc.inc.php for deb/rpm package 2018-02-16 22:03:13 +01:00
dolibarr.desktop Fix #3930 Removed executable bit 2015-12-09 13:28:36 +01:00
file_contexts.dolibarr Fix #3930 Removed executable bit 2015-12-09 13:28:36 +01:00
httpd-dolibarr.conf Remove mentions to register_globals 2019-08-14 15:30:03 +02:00
install.forced.php.fedora Clean code. Removed phpexcel library. 2020-12-13 16:27:44 +01:00
install.forced.php.generic Fix use of dolibarr_main_distrib 2020-10-30 13:06:55 +01:00
install.forced.php.mandriva Clean code. Removed phpexcel library. 2020-12-13 16:27:44 +01:00
install.forced.php.opensuse Clean code. Removed phpexcel library. 2020-12-13 16:27:44 +01:00
README Update README 2021-05-02 19:22:52 +02:00

README (English)
##################################################
RPM Package tools
##################################################

This directory contains files used by makepack-dolibarr.pl script to build a package, 
ready to be distributed with format RPM (https://rpm.org)
for Linux Distributions like Redhat, Fedora, CentOS, OpenSuse, OpenMandriva, Mageia ...


# This is standard command to work on RPM packaging:

# To install all packagers tools:
 - Fedora: yum -y install rpmlint fedora-packager mock koji hunspell-en hunspell-es hunspell-fr hunspell-it
 - OpenSuse: yast --install update-desktop-files

# rpmlint file.rpm				    Test a package
# mock -r fedora-15-i386 --rebuild ../SRPMS/hello-2.7-1.fc15.src.rpm


# On Fedora
# =========
# rpm -i --test dolibarr-...rpm                   to list dependencies of RPM 
# yum -v install dolibarr-...rpm                  to install package and dependencies 
# yum -v erase dolibarr                           to remove package 
# chcon -R -h -t httpd_sys_script_rw_t /file			to add temporary context rw for httpd on /file 
# restorecon -R -v /file			                    to restore values into files (cancel chcon, validate semanage) 
# semanage fcontext -a -t httpd_sys_script_rw_t "/dir/(.*)?" 	to add persistent context rw for httpd on /dir (this add file_contexts.local)


# On OpenSuse
# ===========
# zypper install dolibarr-...rpm     to install package and dependencies
# zypper remove  dolibarr            to remove package
# zypper search  xxx                 to search a package


# On Mageia (after su - root)
# ===========================
# urpmi dolibarr-...rpm              to install package and dependencies
# urpme dolibarr                     to remove package
#


To submit a package to Fedora:
- Create account on       https://bugzilla.redhat.com
- Create account on       https://developer.fedoraproject.org/
- Create SRPMS package
- Upload package on       https://fedorapeople.org
- Create a bug with form  https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review

This is example of content of review field (used for Bug 723326 - https://bugzilla.redhat.com/show_bug.cgi?id=723326):
SRPMS URL: https://www.dolibarr.org/files/fedora/dolibarr-x.y.z-xxx.src.rpm
Description:  Dolibarr ERP & CRM is an easy to use open source/free software
for small and medium companies, foundations or freelances. It includes
different features for Enterprise Resource Planning (ERP) and Customer
Relationship Management (CRM) but also for different other activities.
I am author of other already packaged OpenSources packages (awstats) but this
is my first package to maintain myself. So i'm seeking a sponsor.
- Edit field "Block" and add FE-NEEDSPONSOR
- Check bug is into database by searching with id on https://bugzilla.redhat.com/
- Install fedora packager tools: yum install fedora-packager
- Setup fedora packagers tools: fedora-packager-setup
- Send your package: koji build --scratch f16 path_to_source_RPM
- Check if package is available:  https://koji.fedoraproject.org/koji/