Work on package
This commit is contained in:
parent
356e395197
commit
d3fe7c843c
@ -2,7 +2,7 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# \file build/makepack-dolibarr.pl
|
# \file build/makepack-dolibarr.pl
|
||||||
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
|
||||||
# \version $Id: makepack-dolibarr.pl,v 1.137 2011/08/07 15:17:14 eldy Exp $
|
# \version $Id: makepack-dolibarr.pl,v 1.138 2011/08/07 18:01:14 eldy Exp $
|
||||||
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ if (-d "/usr/src/RPM") { $RPMDIR="/usr/src/RPM"; } # mandrake
|
|||||||
|
|
||||||
|
|
||||||
use vars qw/ $REVISION $VERSION /;
|
use vars qw/ $REVISION $VERSION /;
|
||||||
$REVISION='$Revision: 1.137 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
$REVISION='$Revision: 1.138 $'; $REVISION =~ /\s(.*)\s/; $REVISION=$1;
|
||||||
$VERSION="3.1 (build $REVISION)";
|
$VERSION="3.1 (build $REVISION)";
|
||||||
|
|
||||||
|
|
||||||
@ -579,6 +579,9 @@ if ($nboftargetok) {
|
|||||||
$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
print "Move $RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm into $NEWDESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\n";
|
print "Move $RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm into $NEWDESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\n";
|
||||||
$cmd="mv \"$RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\" \"$NEWDESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\"";
|
$cmd="mv \"$RPMDIR/SRPMS/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\" \"$NEWDESTI/".$FILENAMETGZ2."-".$RPMSUBVERSION.".src.rpm\"";
|
||||||
|
$ret=`$cmd`;
|
||||||
|
print "Move $RPMDIR/SOURCES/".$FILENAMETGZ2.".tgz into $NEWDESTI/".$FILENAMETGZ2.".tgz\n";
|
||||||
|
$cmd="mv \"$RPMDIR/SOURCES/".$FILENAMETGZ2.".tgz\" \"$NEWDESTI/".$FILENAMETGZ2.".tgz\"";
|
||||||
$ret=`$cmd`;
|
$ret=`$cmd`;
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,10 +6,8 @@
|
|||||||
# edit it if you need to match your rules.
|
# edit it if you need to match your rules.
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
%define version __VERSION__
|
|
||||||
|
|
||||||
Name: dolibarr
|
Name: dolibarr
|
||||||
Version: %{version}
|
Version: __VERSION__
|
||||||
Release: __RELEASE__%{?dist}
|
Release: __RELEASE__%{?dist}
|
||||||
Summary: ERP and CRM software for small and medium companies or foundations
|
Summary: ERP and CRM software for small and medium companies or foundations
|
||||||
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
||||||
@ -21,16 +19,14 @@ License: GPLv2+
|
|||||||
Vendor: Dolibarr dev team
|
Vendor: Dolibarr dev team
|
||||||
|
|
||||||
URL: http://www.dolibarr.org
|
URL: http://www.dolibarr.org
|
||||||
Source0: http://www.dolibarr.org/files/fedora/dolibarr-%{version}.tgz
|
Source0: http://www.dolibarr.org/files/fedora/%{name}-%{version}.tgz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
#BuildArchitectures: noarch
|
#BuildArchitectures: noarch
|
||||||
BuildRoot: %{_tmppath}/dolibarr-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
|
|
||||||
Requires: mysql-server mysql httpd php php-cli php-gd php-ldap php-imap php-mysql
|
Requires: mysql-server mysql httpd php php-cli php-gd php-ldap php-imap php-mysql
|
||||||
|
|
||||||
|
|
||||||
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,8 @@
|
|||||||
# edit it if you need to match your rules.
|
# edit it if you need to match your rules.
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
%define version __VERSION__
|
|
||||||
|
|
||||||
Name: dolibarr
|
Name: dolibarr
|
||||||
Version: %{version}
|
Version: __VERSION__
|
||||||
Release: __RELEASE__
|
Release: __RELEASE__
|
||||||
Summary: ERP and CRM software for small and medium companies or foundations
|
Summary: ERP and CRM software for small and medium companies or foundations
|
||||||
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
||||||
@ -21,16 +19,15 @@ License: GPLv2+
|
|||||||
Vendor: Dolibarr dev team
|
Vendor: Dolibarr dev team
|
||||||
|
|
||||||
URL: http://www.dolibarr.org
|
URL: http://www.dolibarr.org
|
||||||
Source0: http://www.dolibarr.org/files/fedora/dolibarr-%{version}.tgz
|
Source0: http://www.dolibarr.org/files/fedora/%{name}-%{version}.tgz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
#BuildArchitectures: noarch
|
#BuildArchitectures: noarch
|
||||||
BuildRoot: %{_tmppath}/dolibarr-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
# For Mandriva-Mageia
|
# For Mandriva-Mageia
|
||||||
Group: Networking/WWW
|
Group: Networking/WWW
|
||||||
# For all other distrib
|
# For all other distrib
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
|
|
||||||
# Requires for Fedora-Redhat
|
# Requires for Fedora-Redhat
|
||||||
Requires: mysql-server mysql httpd php php-cli php-gd php-ldap php-imap php-mysql
|
Requires: mysql-server mysql httpd php php-cli php-gd php-ldap php-imap php-mysql
|
||||||
# Requires for OpenSuse
|
# Requires for OpenSuse
|
||||||
@ -229,10 +226,8 @@ if [ "x$os" = "xfedora-redhat" -a -s /sbin/restorecon ]; then
|
|||||||
echo Add SE Linux permissions for dolibarr
|
echo Add SE Linux permissions for dolibarr
|
||||||
# semanage add records into /etc/selinux/targeted/contexts/files/file_contexts.local
|
# semanage add records into /etc/selinux/targeted/contexts/files/file_contexts.local
|
||||||
semanage fcontext -a -t httpd_sys_script_rw_t "/etc/dolibarr(/.*?)"
|
semanage fcontext -a -t httpd_sys_script_rw_t "/etc/dolibarr(/.*?)"
|
||||||
#semanage fcontext -a -t httpd_sys_script_rw_t "/usr/share/dolibarr(/.*?)"
|
|
||||||
semanage fcontext -a -t httpd_sys_script_rw_t "/var/lib/dolibarr(/.*?)"
|
semanage fcontext -a -t httpd_sys_script_rw_t "/var/lib/dolibarr(/.*?)"
|
||||||
restorecon -R -v /etc/dolibarr
|
restorecon -R -v /etc/dolibarr
|
||||||
#restorecon -R -v /usr/share/dolibarr
|
|
||||||
restorecon -R -v /var/lib/dolibarr
|
restorecon -R -v /var/lib/dolibarr
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,8 @@
|
|||||||
# edit it if you need to match your rules.
|
# edit it if you need to match your rules.
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
%define version __VERSION__
|
|
||||||
|
|
||||||
Name: dolibarr
|
Name: dolibarr
|
||||||
Version: %{version}
|
Version: __VERSION__
|
||||||
Release: __RELEASE__
|
Release: __RELEASE__
|
||||||
Summary: ERP and CRM software for small and medium companies or foundations
|
Summary: ERP and CRM software for small and medium companies or foundations
|
||||||
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
||||||
@ -21,16 +19,14 @@ License: GPLv2+
|
|||||||
Vendor: Dolibarr dev team
|
Vendor: Dolibarr dev team
|
||||||
|
|
||||||
URL: http://www.dolibarr.org
|
URL: http://www.dolibarr.org
|
||||||
Source0: http://www.dolibarr.org/files/mandriva/dolibarr-%{version}.tgz
|
Source0: http://www.dolibarr.org/files/mandriva/%{name}-%{version}.tgz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
#BuildArchitectures: noarch
|
#BuildArchitectures: noarch
|
||||||
BuildRoot: %{_tmppath}/dolibarr-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
Group: Networking/WWW
|
Group: Networking/WWW
|
||||||
|
|
||||||
Requires: mysql mysql-client apache-base apache-mod_php php-cgi php-cli php-bz2 php-gd php-ldap php-imap php-mysqli php-openssl
|
Requires: mysql mysql-client apache-base apache-mod_php php-cgi php-cli php-bz2 php-gd php-ldap php-imap php-mysqli php-openssl
|
||||||
|
|
||||||
|
|
||||||
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
|
|||||||
@ -6,10 +6,8 @@
|
|||||||
# edit it if you need to match your rules.
|
# edit it if you need to match your rules.
|
||||||
# --------------------------------------------------------
|
# --------------------------------------------------------
|
||||||
|
|
||||||
%define version __VERSION__
|
|
||||||
|
|
||||||
Name: dolibarr
|
Name: dolibarr
|
||||||
Version: %{version}
|
Version: __VERSION__
|
||||||
Release: __RELEASE__
|
Release: __RELEASE__
|
||||||
Summary: ERP and CRM software for small and medium companies or foundations
|
Summary: ERP and CRM software for small and medium companies or foundations
|
||||||
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
Summary(es): Software ERP y CRM para pequeñas y medianas empresas o, asociaciones o autónomos
|
||||||
@ -21,16 +19,14 @@ License: GPLv2+
|
|||||||
Vendor: Dolibarr dev team
|
Vendor: Dolibarr dev team
|
||||||
|
|
||||||
URL: http://www.dolibarr.org
|
URL: http://www.dolibarr.org
|
||||||
Source0: http://www.dolibarr.org/files/opensuse/dolibarr-%{version}.tgz
|
Source0: http://www.dolibarr.org/files/opensuse/%{name}-%{version}.tgz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
#BuildArchitectures: noarch
|
#BuildArchitectures: noarch
|
||||||
BuildRoot: %{_tmppath}/dolibarr-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
|
|
||||||
Requires: mysql-community-server mysql-community-server-client apache2 apache2-mod_php5 php5 php5-gd php5-ldap php5-imap php5-mysql php5-openssl
|
Requires: mysql-community-server mysql-community-server-client apache2 apache2-mod_php5 php5 php5-gd php5-ldap php5-imap php5-mysql php5-openssl
|
||||||
|
|
||||||
|
|
||||||
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
# Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse)
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
|
|||||||
@ -2,5 +2,4 @@
|
|||||||
# It is provided as example to know contexts modified by installer
|
# It is provided as example to know contexts modified by installer
|
||||||
# to make Dolibarr working.
|
# to make Dolibarr working.
|
||||||
/etc/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
/etc/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
||||||
/usr/share/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
|
||||||
/var/lib/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
/var/lib/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
||||||
Loading…
Reference in New Issue
Block a user