nathans pushed to pcp (f22). "Automated weekly pcp rawhide release: 0.804.g2e0fe59"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 16 02:13:13 UTC 2015


>From f9552c287e892fd915483ddac179d85eb7e395ec Mon Sep 17 00:00:00 2001
From: Lukas Berk <lberk at redhat.com>
Date: Mon, 16 Mar 2015 09:12:36 -0400
Subject: Automated weekly pcp rawhide release: 0.804.g2e0fe59


diff --git a/.gitignore b/.gitignore
index a446d98..5cc3686 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,4 @@ pcp-3.3.3-1.src.tar.gz
 /pcp-3.10.3-0.620.g89545ba.tar.gz
 /pcp-3.10.3.src.tar.gz
 /pcp-3.10.3-0.750.g326298d.tar.gz
+/pcp-3.10.3-0.804.g2e0fe59.tar.gz
diff --git a/pcp.spec b/pcp.spec
index 61e1d28..7e8fb35 100644
--- a/pcp.spec
+++ b/pcp.spec
@@ -3,11 +3,11 @@ Name: pcp
 Version: 3.10.3
 %define buildversion 1
 
-Release: 0.750.g326298d%{?dist}
+Release: 0.804.g2e0fe59%{?dist}
 License: GPLv2+ and LGPLv2.1+ and CC-BY
 URL: http://www.pcp.io
 Group: Applications/System
-Source0: %{name}-%{version}-0.750.g326298d.tar.gz
+Source0: %{name}-%{version}-0.804.g2e0fe59.tar.gz
 Source1: ftp://ftp.pcp.io/projects/pcp/download/pcp-webjs.src.tar.gz
 
 # There are no papi/libpfm devel packages for s390 nor for some rhels, disable
@@ -30,25 +30,20 @@ Source1: ftp://ftp.pcp.io/projects/pcp/download/pcp-webjs.src.tar.gz
 %define disable_microhttpd 0
 %define disable_cairo 0
 
-# Python development environment before el6 is pre-2.6 (too old)
-%if 0%{?rhel} == 0 || 0%{?rhel} > 5
 %define disable_python2 0
-%else
-%define disable_python2 1
+# Default for epel5 is python24, so use the (optional) python26 packages
+%if 0%{?rhel} == 5
+%define default_python 26
 %endif
 # No python3 development environment before el7
 %if 0%{?rhel} == 0 || 0%{?rhel} > 6
 %define disable_python3 0
 # Do we wish to mandate python3 use in pcp?  (f22+ and el8+)
 %if 0%{?fedora} >= 22 || 0%{?rhel} > 7
-%define default_python3 1
-%else
-%define default_python3 0
-%define
+%define default_python 3
 %endif
 %else
 %define disable_python3 1
-%define default_python3 0
 %endif
 
 # Qt development and runtime environment missing components before el6
@@ -64,8 +59,12 @@ BuildRequires: nss-devel
 BuildRequires: rpm-devel
 BuildRequires: avahi-devel
 %if !%{disable_python2}
+%if 0%{?default_python} != 3
+BuildRequires: python%{?default_python}-devel
+%else
 BuildRequires: python-devel
 %endif
+%endif
 %if !%{disable_python3}
 BuildRequires: python3-devel
 %endif
@@ -102,18 +101,12 @@ BuildRequires: qt4-devel >= 4.4
 %endif
 
 Requires: bash gawk sed grep fileutils findutils initscripts perl which
-%if !%{disable_python2} && !%{default_python3}
-%if 0%{?rhel} <= 5
-Requires: python-ctypes
-%endif
-Requires: python
-%endif
-
+Requires: python%{?default_python}
 Requires: pcp-libs = %{version}-%{release}
-%if %{default_python3}
+%if 0%{?default_python} == 3
 Requires: python3-pcp = %{version}-%{release}
 %endif
-%if !%{disable_python2} && !%{default_python3}
+%if !%{disable_python2} && 0%{?default_python} != 3
 Requires: python-pcp = %{version}-%{release}
 %endif
 Requires: perl-PCP-PMDA = %{version}-%{release}
@@ -568,6 +561,9 @@ PCP utilities and daemons, and the PCP graphical tools.
 rm -Rf $RPM_BUILD_ROOT
 
 %build
+%if !%{disable_python2} && 0%{?default_python} != 3
+export PYTHON=python%{?default_python}
+%endif
 %configure %{?_with_initd} %{?_with_doc} %{?_with_ib} %{?_with_papi} %{?_with_perfevent}
 make default_pcp
 
@@ -625,10 +621,12 @@ for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmwebd,pmmgr,pmpro
 	sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f
 done
 
-%if %{default_python3}
-# defaulting to python3 requires /usr/bin/python3 hashbang lines, make it so
-for f in `find $RPM_BUILD_ROOT -type f -print`; do
-	sed -i -e "1 s|^#!/usr/bin/python\b|#!/usr/bin/python3|" $f
+%if 0%{?default_python} != 0
+# defaulting to explicit python version requires /usr/bin/pythonN hashbang
+# lines (for either python3 or python26 on epel5), make it so:
+for f in `find $RPM_BUILD_ROOT -type f -print`
+do
+    sed -i -e "1 s|^#!/usr/bin/python\b|#!/usr/bin/python%{default_python}|" $f
 done
 %endif
 
@@ -1111,6 +1109,10 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
 %defattr(-,root,root,-)
 
 %changelog
+* Mon Mar 16 2015 Lukas Berk <lberk at redhat.com> - 3.10.3-0.804.g2e0fe59
+- Automated weekly rawhide release
+- Applied spec changes from upstream git
+
 * Mon Mar 09 2015 Lukas Berk <lberk at redhat.com> - 3.10.3-0.750.g326298d
 - Automated weekly rawhide release
 - Applied spec changes from upstream git
diff --git a/sources b/sources
index e5d9745..f6ee0ad 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-bc01b808635ae9e0c3dbc360caa51f7a  pcp-3.10.3-0.750.g326298d.tar.gz
+00c0aedd440daa02d56e7f87fde6dbf7  pcp-3.10.3-0.804.g2e0fe59.tar.gz
 34e17878db46a01bc39811c52e04d6eb  pcp-webjs.src.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pcp.git/commit/?h=f22&id=f9552c287e892fd915483ddac179d85eb7e395ec


More information about the scm-commits mailing list