From 9b95b3e8911fd266d3f905de64a10ba492314ef3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 21 Dec 2012 17:21:50 +0100 Subject: [PATCH] Fix: opensuse package --- build/rpm/dolibarr_opensuse.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/rpm/dolibarr_opensuse.spec b/build/rpm/dolibarr_opensuse.spec index d144134ae6a..d2109442024 100755 --- a/build/rpm/dolibarr_opensuse.spec +++ b/build/rpm/dolibarr_opensuse.spec @@ -27,7 +27,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: Productivity/Office/Management Requires: apache2, apache2-mod_php5, php5 >= 5.3.0, php5-gd, php5-ldap, php5-imap, php5-mysql, php5-openssl, dejavu Requires: mysql-community-server, mysql-community-server-client +%if 0%{?suse_version} BuildRequires: update-desktop-files fdupes +%endif # Set yes to build test package, no for release (this disable need of /usr/bin/php not found by OpenSuse) AutoReqProv: no @@ -119,6 +121,7 @@ do fi done >>%{name}.lang +%if 0%{?suse_version} # Enable this command to tag desktop file for suse %suse_update_desktop_file dolibarr @@ -126,6 +129,8 @@ done >>%{name}.lang # Enable this command to allow suse detection of duplicate files and create hardlinks instead %fdupes $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs +%endif + #---- clean %clean