Return-Path: X-Original-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3D9B8556 for ; Sun, 28 Aug 2011 21:09:58 +0000 (UTC) Received: (qmail 74569 invoked by uid 500); 28 Aug 2011 21:09:58 -0000 Delivered-To: apmail-incubator-bigtop-commits-archive@incubator.apache.org Received: (qmail 74530 invoked by uid 500); 28 Aug 2011 21:09:58 -0000 Mailing-List: contact bigtop-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-commits@incubator.apache.org Received: (qmail 74523 invoked by uid 99); 28 Aug 2011 21:09:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2011 21:09:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2011 21:09:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 90E4C238889B; Sun, 28 Aug 2011 21:09:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1162592 - /incubator/bigtop/trunk/src/pkg/rpm/pig/SPECS/pig.spec Date: Sun, 28 Aug 2011 21:09:34 -0000 To: bigtop-commits@incubator.apache.org From: bmahe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110828210934.90E4C238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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.*