Hello community, here is the log from the commit of package YODA for openSUSE:Factory checked in at 2020-01-09 22:54:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/YODA (Old) and /work/SRC/openSUSE:Factory/.YODA.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "YODA" Thu Jan 9 22:54:15 2020 rev:15 rq:762562 version:1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/YODA/YODA.changes 2020-01-07 23:56:30.516129578 +0100 +++ /work/SRC/openSUSE:Factory/.YODA.new.6675/YODA.changes 2020-01-09 22:54:47.938835532 +0100 @@ -1,0 +2,14 @@ +Wed Jan 8 20:51:46 UTC 2020 - Atri Bhattacharya <badshah...@gmail.com> + +- Switch to python3: + * Requires and BuildRequires switched to python3 versions + * Rename python package to python3-%{name} and provide + python-%{name} from it; this makes the py3 switch clear to + users. + * Explicitly pass PYTHON_VERSION as py3 version to make it build + against python3 + * Drop an unecessary hashbang from a file in non-exec location. +- Remove an sed hack for buildroot in *.pyc file(s); no longer + needed. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ YODA.spec ++++++ --- /var/tmp/diff_new_pack.pXUPMw/_old 2020-01-09 22:54:49.330836228 +0100 +++ /var/tmp/diff_new_pack.pXUPMw/_new 2020-01-09 22:54:49.374836250 +0100 @@ -30,8 +30,8 @@ BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkg-config -BuildRequires: python-Cython -BuildRequires: python-devel +BuildRequires: python3-Cython +BuildRequires: python3-devel BuildRequires: pkgconfig(zlib) BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -86,13 +86,13 @@ This package provides the source files for development with %{name}. -%package -n python-%{name} +%package -n python3-%{name} Summary: A small set of data analysis classes for MC event generator validation analyses Group: Development/Libraries/Python Requires: %{so_name} = %{version} -Requires: python = %{py_ver} +Provides: python-%{name} = %{version} -%description -n python-%{name} +%description -n python3-%{name} YODA is a small set of data analysis (specifically histogramming) classes being developed by MCnet members as a lightweight common system for MC event generator validation analyses. @@ -104,6 +104,7 @@ %patch -P 1 -p1 %build +export PYTHON_VERSION=%{py3_ver} autoreconf -fi %configure make %{?_smp_mflags} @@ -113,9 +114,6 @@ find %{buildroot}%{_libdir}/ -name "*.la" -delete -# Remove traces of BUILDROOT from files -sed -i "s|%{buildroot}||g" %{buildroot}%{python_sitearch}/yoda/*.pyc - # FIX env BASED HASHBANGS for exe in %{buildroot}%{_bindir}/* do @@ -123,6 +121,9 @@ done sed -E -i "s|^#! /usr/bin/env bash|#! /bin/bash|" %{buildroot}%{_bindir}/yoda-config +# REMOVE AN UNNECESSARY ONE +sed -E -i "1{s|^#! /usr/bin/env python||}" %{buildroot}%{python3_sitearch}/yoda/search.py + %post -n %{so_name} -p /sbin/ldconfig %postun -n %{so_name} -p /sbin/ldconfig @@ -154,10 +155,10 @@ %{_includedir}/%{name}/ %{_datadir}/%{name}/ -%files -n python-%{name} +%files -n python3-%{name} %defattr(-,root,root) -%{python_sitearch}/yoda/ -%{python_sitearch}/yoda1/ -%{python_sitearch}/yoda*.egg-info +%{python3_sitearch}/yoda/ +%{python3_sitearch}/yoda1/ +%{python3_sitearch}/yoda*.egg-info %changelog