Automated weekly pcp rawhide release: 0.804.g2e0fe59
This commit is contained in:
parent
de9d75e92e
commit
f9552c287e
1
.gitignore
vendored
1
.gitignore
vendored
@ -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-0.620.g89545ba.tar.gz
|
||||||
/pcp-3.10.3.src.tar.gz
|
/pcp-3.10.3.src.tar.gz
|
||||||
/pcp-3.10.3-0.750.g326298d.tar.gz
|
/pcp-3.10.3-0.750.g326298d.tar.gz
|
||||||
|
/pcp-3.10.3-0.804.g2e0fe59.tar.gz
|
||||||
|
50
pcp.spec
50
pcp.spec
@ -3,11 +3,11 @@ Name: pcp
|
|||||||
Version: 3.10.3
|
Version: 3.10.3
|
||||||
%define buildversion 1
|
%define buildversion 1
|
||||||
|
|
||||||
Release: 0.750.g326298d%{?dist}
|
Release: 0.804.g2e0fe59%{?dist}
|
||||||
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
||||||
URL: http://www.pcp.io
|
URL: http://www.pcp.io
|
||||||
Group: Applications/System
|
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
|
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
|
# 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_microhttpd 0
|
||||||
%define disable_cairo 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
|
%define disable_python2 0
|
||||||
%else
|
# Default for epel5 is python24, so use the (optional) python26 packages
|
||||||
%define disable_python2 1
|
%if 0%{?rhel} == 5
|
||||||
|
%define default_python 26
|
||||||
%endif
|
%endif
|
||||||
# No python3 development environment before el7
|
# No python3 development environment before el7
|
||||||
%if 0%{?rhel} == 0 || 0%{?rhel} > 6
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 6
|
||||||
%define disable_python3 0
|
%define disable_python3 0
|
||||||
# Do we wish to mandate python3 use in pcp? (f22+ and el8+)
|
# Do we wish to mandate python3 use in pcp? (f22+ and el8+)
|
||||||
%if 0%{?fedora} >= 22 || 0%{?rhel} > 7
|
%if 0%{?fedora} >= 22 || 0%{?rhel} > 7
|
||||||
%define default_python3 1
|
%define default_python 3
|
||||||
%else
|
|
||||||
%define default_python3 0
|
|
||||||
%define
|
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
%define disable_python3 1
|
%define disable_python3 1
|
||||||
%define default_python3 0
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Qt development and runtime environment missing components before el6
|
# Qt development and runtime environment missing components before el6
|
||||||
@ -64,8 +59,12 @@ BuildRequires: nss-devel
|
|||||||
BuildRequires: rpm-devel
|
BuildRequires: rpm-devel
|
||||||
BuildRequires: avahi-devel
|
BuildRequires: avahi-devel
|
||||||
%if !%{disable_python2}
|
%if !%{disable_python2}
|
||||||
|
%if 0%{?default_python} != 3
|
||||||
|
BuildRequires: python%{?default_python}-devel
|
||||||
|
%else
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%if !%{disable_python3}
|
%if !%{disable_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
%endif
|
||||||
@ -102,18 +101,12 @@ BuildRequires: qt4-devel >= 4.4
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: bash gawk sed grep fileutils findutils initscripts perl which
|
Requires: bash gawk sed grep fileutils findutils initscripts perl which
|
||||||
%if !%{disable_python2} && !%{default_python3}
|
Requires: python%{?default_python}
|
||||||
%if 0%{?rhel} <= 5
|
|
||||||
Requires: python-ctypes
|
|
||||||
%endif
|
|
||||||
Requires: python
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Requires: pcp-libs = %{version}-%{release}
|
Requires: pcp-libs = %{version}-%{release}
|
||||||
%if %{default_python3}
|
%if 0%{?default_python} == 3
|
||||||
Requires: python3-pcp = %{version}-%{release}
|
Requires: python3-pcp = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
%if !%{disable_python2} && !%{default_python3}
|
%if !%{disable_python2} && 0%{?default_python} != 3
|
||||||
Requires: python-pcp = %{version}-%{release}
|
Requires: python-pcp = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
Requires: perl-PCP-PMDA = %{version}-%{release}
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
||||||
@ -568,6 +561,9 @@ PCP utilities and daemons, and the PCP graphical tools.
|
|||||||
rm -Rf $RPM_BUILD_ROOT
|
rm -Rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%build
|
%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}
|
%configure %{?_with_initd} %{?_with_doc} %{?_with_ib} %{?_with_papi} %{?_with_perfevent}
|
||||||
make default_pcp
|
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
|
sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %{default_python3}
|
%if 0%{?default_python} != 0
|
||||||
# defaulting to python3 requires /usr/bin/python3 hashbang lines, make it so
|
# defaulting to explicit python version requires /usr/bin/pythonN hashbang
|
||||||
for f in `find $RPM_BUILD_ROOT -type f -print`; do
|
# lines (for either python3 or python26 on epel5), make it so:
|
||||||
sed -i -e "1 s|^#!/usr/bin/python\b|#!/usr/bin/python3|" $f
|
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
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -1111,6 +1109,10 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 16 2015 Lukas Berk <lberk@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@redhat.com> - 3.10.3-0.750.g326298d
|
* Mon Mar 09 2015 Lukas Berk <lberk@redhat.com> - 3.10.3-0.750.g326298d
|
||||||
- Automated weekly rawhide release
|
- Automated weekly rawhide release
|
||||||
- Applied spec changes from upstream git
|
- Applied spec changes from upstream git
|
||||||
|
Loading…
Reference in New Issue
Block a user