rpms/rrdtool/devel rrdtool.spec,1.84,1.85
Štěpán Kasal
kasal at fedoraproject.org
Wed Jan 13 11:45:20 UTC 2010
Author: kasal
Update of /cvs/extras/rpms/rrdtool/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13209
Modified Files:
rrdtool.spec
Log Message:
- remove python_* macros clashing with the built-in ones
- fix for new vendorlib directory
Index: rrdtool.spec
===================================================================
RCS file: /cvs/extras/rpms/rrdtool/devel/rrdtool.spec,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -p -r1.84 -r1.85
--- rrdtool.spec 7 Dec 2009 02:07:03 -0000 1.84
+++ rrdtool.spec 13 Jan 2010 11:45:19 -0000 1.85
@@ -65,15 +65,15 @@ Provides: perl-%{name} = %{version}-%{re
The Perl RRDtool bindings
%if %{with_python}
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')}
-# eval to 2.3 if python isn't yet present, workaround for no python in fc4 minimal buildroot
-%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
+# Make sure the runtime python is newer than the build one;
+# give a default value to handle parsing in cases when python is not present:
+%{!?rrd_python_version: %define rrd_python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "3.14")}
%package python
Summary: Python RRDtool bindings
Group: Development/Languages
-BuildRequires: python-devel >= 2.3
-Requires: python >= %{python_version}
+BuildRequires: python-devel
+Requires: python >= %{rrd_python_version}
Requires: %{name} = %{version}-%{release}
Obsoletes: python-%{name} < %{version}-%{release}
Provides: python-%{name} = %{version}-%{release}
@@ -231,10 +231,10 @@ __EOF__
%endif
# Pesky RRDp.pm...
-%{__mv} $RPM_BUILD_ROOT%{perl_vendorarch}/../RRDp.pm $RPM_BUILD_ROOT%{perl_vendorarch}/
+%{__mv} $RPM_BUILD_ROOT%{perl_vendorlib}/RRDp.pm $RPM_BUILD_ROOT%{perl_vendorarch}/
# Dunno why this is getting installed here...
-%{__rm} -f $RPM_BUILD_ROOT%{perl_vendorarch}/../leaktest.pl
+%{__rm} -f $RPM_BUILD_ROOT%{perl_vendorlib}/leaktest.pl
# We only want .txt and .html files for the main documentation
%{__mkdir_p} doc2/html doc2/txt
@@ -323,6 +323,10 @@ find examples/ -type f -exec chmod 0644
%endif
%changelog
+* Wed Jan 13 2010 Stepan Kasal <skasal at redhat.com> - 1.3.8-6
+- remove python_* macros clashing with the built-in ones
+- fix for new vendorlib directory
+
* Mon Dec 7 2009 Stepan Kasal <skasal at redhat.com> - 1.3.8-5
- rebuild against perl 5.10.1
More information about the scm-commits
mailing list