Fix: Some fix to removed refused controls by distrib package build
systems.
This commit is contained in:
parent
58eb02274f
commit
eaad5f075e
@ -325,6 +325,10 @@ if ($nboftargetok) {
|
|||||||
$ret=`rm -f $BUILDROOT/$PROJECT/.gitignore $BUILDROOT/$PROJECT/*/.gitignore $BUILDROOT/$PROJECT/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/*/*/.gitignore`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/.gitignore $BUILDROOT/$PROJECT/*/.gitignore $BUILDROOT/$PROJECT/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/*/.gitignore $BUILDROOT/$PROJECT/*/*/*/*/*/*/.gitignore`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/theme/amarok`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/theme/amarok`;
|
||||||
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/geoip/sample*.*`;
|
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/geoip/sample*.*`;
|
||||||
|
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/jquery/plugins/jqueryFileTree/connectors/jqueryFileTree.pl`; # Avoid errors into rpmlint
|
||||||
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/jquery/plugins/templates`; # Package not valid for most linux distributions (errors reported into compile.js). Package should be embed by modules to avoid problems.
|
||||||
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpmailer`; # Package not valid for most linux distributions (errors reported into file LICENSE). Package should be embed by modules to avoid problems.
|
||||||
|
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/nusoap/lib/Mail`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/nusoap/lib/Mail`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/license.txt`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/license.txt`;
|
||||||
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF`;
|
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF`;
|
||||||
|
|||||||
@ -21,7 +21,7 @@ Exec=xdg-open http://localhost/dolibarr
|
|||||||
Icon=dolibarr
|
Icon=dolibarr
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Office;Finance
|
Categories=Office;Finance;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
InitialPreference=5
|
InitialPreference=5
|
||||||
#NoDisplay=true
|
#NoDisplay=true
|
||||||
|
|||||||
@ -140,7 +140,9 @@ cui hai bisogno ed essere facile da usare.
|
|||||||
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
|
||||||
%{__install} -m 644 doc/images/dolibarr_48x48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
|
%{__install} -m 644 doc/images/dolibarr_48x48.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/applications
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/applications
|
||||||
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion} || 0%{?suse_version}
|
||||||
#desktop-file-install --delete-original --dir=$RPM_BUILD_ROOT%{_datadir}/applications build/rpm/%{name}.desktop
|
#desktop-file-install --delete-original --dir=$RPM_BUILD_ROOT%{_datadir}/applications build/rpm/%{name}.desktop
|
||||||
|
%endif
|
||||||
%{__install} -m 644 build/rpm/dolibarr.desktop $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
%{__install} -m 644 build/rpm/dolibarr.desktop $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/%{name}/build/rpm
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/%{name}/build/rpm
|
||||||
@ -167,11 +169,13 @@ cui hai bisogno ed essere facile da usare.
|
|||||||
|
|
||||||
# Lang
|
# Lang
|
||||||
echo "%defattr(0644, root, root, 0644)" > %{name}.lang
|
echo "%defattr(0644, root, root, 0644)" > %{name}.lang
|
||||||
|
echo "%dir %{_datadir}/%{name}/htdocs/langs" >> %{name}.lang
|
||||||
for i in $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs/langs/*_*
|
for i in $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs/langs/*_*
|
||||||
do
|
do
|
||||||
lang=$(basename $i)
|
lang=$(basename $i)
|
||||||
lang1=`expr substr $lang 1 2`;
|
lang1=`expr substr $lang 1 2`;
|
||||||
lang2=`expr substr $lang 4 2 | tr "[:upper:]" "[:lower:]"`;
|
lang2=`expr substr $lang 4 2 | tr "[:upper:]" "[:lower:]"`;
|
||||||
|
echo "%dir %{_datadir}/%{name}/htdocs/langs/${lang}" >> %{name}.lang
|
||||||
if [ "$lang1" = "$lang2" ] ; then
|
if [ "$lang1" = "$lang2" ] ; then
|
||||||
echo "%lang(${lang1}) %{_datadir}/%{name}/htdocs/langs/${lang}/*.lang"
|
echo "%lang(${lang1}) %{_datadir}/%{name}/htdocs/langs/${lang}/*.lang"
|
||||||
else
|
else
|
||||||
@ -198,6 +202,9 @@ done >>%{name}.lang
|
|||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
|
|
||||||
%defattr(0755, root, root, 0755)
|
%defattr(0755, root, root, 0755)
|
||||||
|
|
||||||
|
%dir %_datadir/dolibarr
|
||||||
|
|
||||||
%dir %_datadir/dolibarr/scripts
|
%dir %_datadir/dolibarr/scripts
|
||||||
%_datadir/dolibarr/scripts/*
|
%_datadir/dolibarr/scripts/*
|
||||||
|
|
||||||
@ -207,6 +214,8 @@ done >>%{name}.lang
|
|||||||
%_datadir/pixmaps/dolibarr.png
|
%_datadir/pixmaps/dolibarr.png
|
||||||
%_datadir/applications/dolibarr.desktop
|
%_datadir/applications/dolibarr.desktop
|
||||||
|
|
||||||
|
%dir %_datadir/dolibarr/build
|
||||||
|
|
||||||
%dir %_datadir/dolibarr/build/rpm
|
%dir %_datadir/dolibarr/build/rpm
|
||||||
%_datadir/dolibarr/build/rpm/*
|
%_datadir/dolibarr/build/rpm/*
|
||||||
|
|
||||||
@ -261,6 +270,8 @@ done >>%{name}.lang
|
|||||||
%_datadir/dolibarr/htdocs/*.php
|
%_datadir/dolibarr/htdocs/*.php
|
||||||
%_datadir/dolibarr/htdocs/*.txt
|
%_datadir/dolibarr/htdocs/*.txt
|
||||||
|
|
||||||
|
%dir %{_sysconfdir}/dolibarr
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion}
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mdkversion}
|
||||||
%defattr(0664, root, apache)
|
%defattr(0664, root, apache)
|
||||||
%else
|
%else
|
||||||
@ -406,8 +417,13 @@ fi
|
|||||||
|
|
||||||
# Create a config link dolibarr.conf
|
# Create a config link dolibarr.conf
|
||||||
if [ ! -L $apachelink ]; then
|
if [ ! -L $apachelink ]; then
|
||||||
echo Create dolibarr web server config link $apachelink
|
apachelinkdir=`dirname $apachelink`
|
||||||
ln -fs %{_sysconfdir}/dolibarr/apache.conf $apachelink
|
if [ -d $apachelinkdir ]; then
|
||||||
|
echo Create dolibarr web server config link from %{_sysconfdir}/dolibarr/apache.conf to $apachelink
|
||||||
|
ln -fs %{_sysconfdir}/dolibarr/apache.conf $apachelink
|
||||||
|
else
|
||||||
|
echo Do not create link $apachelink - web server conf dir $apachelinkdir not found. web server package may not be installed
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Set permission to $apacheuser:$apachegroup on /var/lib/dolibarr
|
echo Set permission to $apacheuser:$apachegroup on /var/lib/dolibarr
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
|
/* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
|
||||||
|
* Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -12,8 +13,7 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user