X-Git-Url: http://git.onelab.eu/?p=pcucontrol.git;a=blobdiff_plain;f=pcucontrol.spec;h=d031973ff7fba3fe74fbf5d7958db18c7ce35118;hp=b4c4101d0a41e266feb2346aed5afaf1c984ee70;hb=HEAD;hpb=5140db4d0536529a19bfdb90b960bbf1a9dfba6f diff --git a/pcucontrol.spec b/pcucontrol.spec index b4c4101..d031973 100644 --- a/pcucontrol.spec +++ b/pcucontrol.spec @@ -1,15 +1,13 @@ -# -# $Id$ -# - -%define url $URL: svn+ssh://svn.planet-lab.org/svn/pcucontrol/trunk/pcucontrol.spec $ - %define name pcucontrol %define version 1.0 -%define taglevel 1 +%define taglevel 14 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} -%global python_sitearch %( python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) +%global python_sitearch %( python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" ) + +# Turn off the brp-python-bytecompile automagic +# this is required for fedora31 that has moved to python3 as a default +%global _python_bytecompile_extra 0 Name: %{name} Version: %{version} @@ -22,9 +20,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Vendor: PlanetLab Packager: PlanetLab Central Distribution: PlanetLab %{plrelease} -URL: %(echo %{url} | cut -d ' ' -f 2) +URL: %{SCMURL} Requires: python +Requires: OpenIPMI-tools +#Obsoletes: monitor-pcucontrol Summary: pcu controls for monitor and plcapi Group: Applications/System @@ -37,16 +37,30 @@ supported models. %prep %setup -q +#################### Important note +# starting with fedora27, fedora comes with openssl-11.0g +# and in this version +# X509_EXTENSION {aka struct X509_extension_st} +# has become opaque +# this is mentioned here +# https://github.com/openssl/openssl/issues/2239 +# see https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes#Compatibility_Layer +# +# so we turn off support for SSL starting with fedora27 +# this is in pcucontrol/models/intelamt/Makefile - see FCDISTRO + %build # NOTE: the build uses g++ cmdamt/ # NOTE: TMPDIR is needed here b/c the tmpfs of the build vserver is too small. cd pcucontrol/models/intelamt export TMPDIR=$PWD/tmp -make +mkdir -p $TMPDIR +make FCDISTRO=%{fcdistro} cd .. %install rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}/pcucontrol/ rsync -a --exclude .svn ./pcucontrol/ $RPM_BUILD_ROOT/%{python_sitearch}/pcucontrol/ %clean @@ -58,5 +72,52 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Jan 07 2019 Thierry - pcucontrol-1.0-14 +- for building on fedora27; had to drop support for openssl, see specfile for details + +* Mon Jun 25 2012 Stephen Soltesz - pcucontrol-1.0-13 +- remove many unnecessary debugging print statement. +- move APC & DRAC to expect scripts. Much greater control. + +* Wed Aug 31 2011 Stephen Soltesz - pcucontrol-1.0-12 +- Fixed DRAC regular expression for ssh, and added IP address for external +- command. + +* Wed Jun 08 2011 s s - pcucontrol-1.0-11 +- Updated HPiLO, DRAC with expect scripts. +- Updated other models to use subprocess module in favor of os.popen* + +* Mon Jan 24 2011 Thierry Parmentelat - pcucontrol-1.0-10 +- no semantic change - just fixed specfile for git URL + +* Fri Dec 03 2010 Baris Metin - pcucontrol-1.0-9 +- fix build for f14 + +* Thu Jul 08 2010 Baris Metin - pcucontrol-1.0-8 +- fix build issue + +* Mon Jul 05 2010 Baris Metin - pcucontrol-1.0-7 +- fixes for HPiLO + +* Fri Jun 18 2010 s s - pcucontrol-1.0-6 +- adding a testrun parameter to the api + +* Fri May 21 2010 Talip Baris Metin - pcucontrol-1.0-5 +- ePowerSwitchOld fix + +* Wed May 12 2010 Talip Baris Metin - pcucontrol-1.0-4 +- * add ipmi trasport type. + +* Mon May 03 2010 Talip Baris Metin - pcucontrol-1.0-3 +- remove unused import (that causes deprecated warnings in plcsh) + +* Fri Apr 02 2010 Thierry Parmentelat - pcucontrol-1.0-2 +- tweak for DRAC - protect against spaces in password + +* Thu Jan 21 2010 Talip Baris Metin - pcucontrol-1.0-1 +- * pcucontrol obsoletes monitor-pcucontrol +- * use bash built-in instead of which to locate ssh +- * racadm fix for DRAC. + * Tue Dec 22 2009 Baris Metin - initial package