incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1162592 - /incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec
Date Sun, 28 Aug 2011 21:09:34 GMT
Author: bmahe
Date: Sun Aug 28 21:09:34 2011
New Revision: 1162592

URL: http://svn.apache.org/viewvc?rev=1162592&view=rev
Log:
BIGTOP-48. Fix pig build on Mageia

Modified:
    incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec

Modified: incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec?rev=1162592&r1=1162591&r2=1162592&view=diff
==============================================================================
--- incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec (original)
+++ incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec Sun Aug 28 21:09:34 2011
@@ -22,7 +22,10 @@
 %define doc_pig %{_docdir}/pig-%{pig_version}
 %define man_dir %{_mandir}
 
-%if  %{!?suse_version:1}0
+# CentOS 5 does not have any dist macro
+# So I will suppose anything that is not Mageia or a SUSE will be a RHEL/CentOS/Fedora
+%if %{!?suse_version:1}0 && %{!?mgaversion:1}0
+
 # brp-repack-jars uses unzip to expand jar files
 # Unfortunately aspectjtools-1.6.5.jar pulled by ivy contains some files and directories
without any read permission
 # and make whole process to fail.
@@ -37,7 +40,10 @@
 
 %define alternatives_cmd alternatives
 
-%else
+%endif
+
+
+%if  %{?suse_version:1}0
 
 # Only tested on openSUSE 11.4. le'ts update it for previous release when confirmed
 %if 0%{suse_version} > 1130
@@ -53,6 +59,11 @@
 %endif
 
 
+%if  0%{?mgaversion}
+%define alternatives_cmd update-alternatives
+%endif
+
+
 Name: hadoop-pig
 Version: %{pig_version}
 Release: %{pig_release}
@@ -150,4 +161,4 @@ fi
 %doc %{doc_pig}
 %{lib_pig}
 %{bin_pig}/pig
-%{man_dir}/man1/pig.1.gz
+%{man_dir}/man1/pig.1.*



Mime
View raw message