Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-torchvision for 
openSUSE:Factory checked in at 2021-01-25 18:23:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-torchvision (Old)
 and      /work/SRC/openSUSE:Factory/.python-torchvision.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-torchvision"

Mon Jan 25 18:23:22 2021 rev:2 rq:865928 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-torchvision/python-torchvision.changes    
2020-10-13 15:46:09.753463094 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-torchvision.new.28504/python-torchvision.changes
 2021-01-25 18:23:41.584434981 +0100
@@ -1,0 +2,5 @@
+Thu Jan 21 23:29:42 UTC 2021 - Benjamin Greiner <c...@bnavigator.de>
+
+- Fix python-rpm-macros usage
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-torchvision.spec ++++++
--- /var/tmp/diff_new_pack.IOqy1g/_old  2021-01-25 18:23:42.328436062 +0100
+++ /var/tmp/diff_new_pack.IOqy1g/_new  2021-01-25 18:23:42.336436073 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-torch
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,15 +26,15 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/pytorch/vision
 Source0:        
https://github.com/pytorch/vision/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
-BuildRequires:  %{python_module torch-devel} >= 1.5.1
-BuildRequires:  %{python_module devel} >= 3.6
-BuildRequires:  %{python_module rpm-macros}
+BuildRequires:  %{python_module torch-devel >= 1.5.1}
+BuildRequires:  %{python_module devel >= 3.6}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{pythons}
 BuildRequires:  cmake >= 3.1
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  ninja
+BuildRequires:  python-rpm-macros
 # Same as in python-torch
 ExcludeArch:    %ix86
 %python_subpackages
@@ -52,7 +52,8 @@
 
 %install
 %python_install
-sed -i -e 's#/usr/bin/env python3#/usr/bin/python3#' 
%{buildroot}%{python_sitearch}/torchvision/transforms/_transforms_video.py
+%python_expand sed -i -e 's|/usr/bin/env python3|%{_bindir}/$python|' 
%{buildroot}%{$python_sitearch}/torchvision/transforms/_transforms_video.py
+%{?python_compileall}
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %files %{python_files}

Reply via email to