commit tensorflow2 for openSUSE:Factory

2022-02-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2022-02-05 23:23:00

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1898 (New)


Package is "tensorflow2"

Sat Feb  5 23:23:00 2022 rev:29 rq:951670 version:2.7.1

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2022-02-02 
22:45:01.230065030 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1898/tensorflow2.changes
2022-02-05 23:23:14.051903765 +0100
@@ -1,0 +2,108 @@
+Fri Feb  4 21:37:07 UTC 2022 - Ben Greiner 
+
+- restore larger memory per job constraint
+
+---
+Fri Feb  4 16:28:12 UTC 2022 - Ben Greiner 
+
+- Update to 2.7.1 -- boo#1195545 security update
+  * Fixes a floating point division by 0 when executing convolution
+operators (CVE-2022-21725)
+  * Fixes a heap OOB read in shape inference for ReverseSequence
+(CVE-2022-21728)
+  * Fixes a heap OOB access in Dequantize (CVE-2022-21726)
+  * Fixes an integer overflow in shape inference for Dequantize
+(CVE-2022-21727)
+  * Fixes a heap OOB access in FractionalAvgPoolGrad
+(CVE-2022-21730)
+  * Fixes an overflow and divide by zero in UnravelIndex
+(CVE-2022-21729)
+  * Fixes a type confusion in shape inference for ConcatV2
+(CVE-2022-21731)
+  * Fixes an OOM in ThreadPoolHandle (CVE-2022-21732)
+  * Fixes an OOM due to integer overflow in StringNGrams
+(CVE-2022-21733)
+  * Fixes more issues caused by incomplete validation in boosted
+trees code (CVE-2021-41208)
+  * Fixes an integer overflows in most sparse component-wise ops
+(CVE-2022-23567)
+  * Fixes an integer overflows in AddManySparseToTensorsMap
+(CVE-2022-23568)
+  * Fixes a number of CHECK-failures in MapStage (CVE-2022-21734)
+  * Fixes a division by zero in FractionalMaxPool (CVE-2022-21735)
+  * Fixes a number of CHECK-fails when building invalid/overflowing
+tensor shapes (CVE-2022-23569)
+  * Fixes an undefined behavior in SparseTensorSliceDataset
+(CVE-2022-21736)
+  * Fixes an assertion failure based denial of service via faulty
+bin count operations (CVE-2022-21737)
+  * Fixes a reference binding to null pointer in QuantizedMaxPool
+(CVE-2022-21739)
+  * Fixes an integer overflow leading to crash in
+SparseCountSparseOutput (CVE-2022-21738)
+  * Fixes a heap overflow in SparseCountSparseOutput
+(CVE-2022-21740)
+  * Fixes an FPE in BiasAndClamp in TFLite (CVE-2022-23557)
+  * Fixes an FPE in depthwise convolutions in TFLite
+(CVE-2022-21741)
+  * Fixes an integer overflow in TFLite array creation
+(CVE-2022-23558)
+  * Fixes an integer overflow in TFLite (CVE-2022-23559)
+  * Fixes a dangerous OOB write in TFLite (CVE-2022-23561)
+  * Fixes a vulnerability leading to read and write outside of
+bounds in TFLite (CVE-2022-23560)
+  * Fixes a set of vulnerabilities caused by using insecure
+temporary files (CVE-2022-23563)
+  * Fixes an integer overflow in Range resulting in undefined
+behavior and OOM (CVE-2022-23562)
+  * Fixes a vulnerability where missing validation causes
+tf.sparse.split to crash when axis is a tuple (CVE-2021-41206)
+  * Fixes a CHECK-fail when decoding resource handles from proto
+(CVE-2022-23564)
+  * Fixes a CHECK-fail with repeated AttrDef (CVE-2022-23565)
+  * Fixes a heap OOB write in Grappler (CVE-2022-23566)
+  * Fixes a CHECK-fail when decoding invalid tensors from proto
+(CVE-2022-23571)
+  * Fixes a null-dereference when specializing tensor type
+(CVE-2022-23570)
+  * Fixes a crash when type cannot be specialized (CVE-2022-23572)
+  * Fixes a heap OOB read/write in SpecializeType (CVE-2022-23574)
+  * Fixes an unitialized variable access in AssignOp
+(CVE-2022-23573)
+  * Fixes an integer overflow in
+OpLevelCostEstimator::CalculateTensorSize (CVE-2022-23575)
+  * Fixes an integer overflow in
+OpLevelCostEstimator::CalculateOutputSize (CVE-2022-23576)
+  * Fixes a null dereference in GetInitOp (CVE-2022-23577)
+  * Fixes a memory leak when a graph node is invalid
+(CVE-2022-23578)
+  * Fixes an abort caused by allocating a vector that is too large
+(CVE-2022-23580)
+  * Fixes multiple CHECK-failures during Grappler's
+IsSimplifiableReshape (CVE-2022-23581)
+  * Fixes multiple CHECK-failures during Grappler's
+SafeToRemoveIdentity (CVE-2022-23579)
+  * Fixes multiple CHECK-failures in TensorByteSize
+(CVE-2022-23582)
+  * Fixes multiple CHECK-failures in binary ops due to type
+confusion (CVE-2022-23583)
+  * Fixes a use after free in DecodePng kernel (CVE-2022-23584)
+  * Fixes a memory leak in decoding PNG images (CVE-2022-23585)
+  * Fixes multiple 

commit tensorflow2 for openSUSE:Factory

2022-02-02 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2022-02-02 22:40:11

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1898 (New)


Package is "tensorflow2"

Wed Feb  2 22:40:11 2022 rev:28 rq:950525 version:2.7.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2022-01-10 
23:54:12.696836328 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1898/tensorflow2.changes
2022-02-02 22:40:31.455893571 +0100
@@ -1,0 +2,107 @@
+Tue Feb  1 17:44:12 UTC 2022 - Ben Greiner 
+
+- Remove URLs from github zip archives for xnnpack transitive
+  dependencies: The GitHub archiver produces unreliable files
+
+---
+Sat Jan 22 20:52:02 UTC 2022 - Ben Greiner 
+
+- Update to 2.7.0
+  * Big changelog: at
+https://github.com/tensorflow/tensorflow/releases/tag/v2.7.0
+- Security references:
+  * Fixes a code injection issue in saved_model_cli
+(CVE-2021-41228)
+  * Fixes a vulnerability due to use of uninitialized value in
+Tensorflow (CVE-2021-41225)
+  * Fixes a heap OOB in FusedBatchNorm kernels (CVE-2021-41223)
+  * Fixes an arbitrary memory read in ImmutableConst
+(CVE-2021-41227)
+  * Fixes a heap OOB in SparseBinCount (CVE-2021-41226)
+  * Fixes a heap OOB in SparseFillEmptyRows (CVE-2021-41224)
+  * Fixes a segfault due to negative splits in SplitV
+(CVE-2021-41222)
+  * Fixes segfaults and vulnerabilities caused by accesses to
+invalid memory during shape inference in Cudnn* ops
+(CVE-2021-41221)
+  * Fixes a null pointer exception when Exit node is not preceded
+by Enter op (CVE-2021-41217)
+  * Fixes an integer division by 0 in tf.raw_ops.AllToAll
+(CVE-2021-41218)
+  * Fixes a use after free and a memory leak in CollectiveReduceV2
+(CVE-2021-41220)
+  * Fixes an undefined behavior via nullptr reference binding in
+sparse matrix multiplication (CVE-2021-41219)
+  * Fixes a heap buffer overflow in Transpose (CVE-2021-41216)
+  * Prevents deadlocks arising from mutually recursive tf.function
+objects (CVE-2021-41213)
+  * Fixes a null pointer exception in DeserializeSparse
+(CVE-2021-41215)
+  * Fixes an undefined behavior arising from reference binding to
+nullptr in tf.ragged.cross (CVE-2021-41214)
+  * Fixes a heap OOB read in tf.ragged.cross (CVE-2021-41212)
+  * Fixes a heap OOB in shape inference for QuantizeV2
+(CVE-2021-41211)
+  * Fixes a heap OOB read in all tf.raw_ops.QuantizeAndDequantizeV*
+ops (CVE-2021-41205)
+  * Fixes an FPE in ParallelConcat (CVE-2021-41207)
+  * Fixes FPE issues in convolutions with zero size filters
+(CVE-2021-41209)
+  * Fixes a heap OOB read in tf.raw_ops.SparseCountSparseOutput
+(CVE-2021-41210)
+  * Fixes vulnerabilities caused by incomplete validation in
+boosted trees code (CVE-2021-41208)
+  * Fixes vulnerabilities caused by incomplete validation of shapes
+in multiple TF ops (CVE-2021-41206)
+  * Fixes a segfault produced while copying constant resource
+tensor (CVE-2021-41204)
+  * Fixes a vulnerability caused by unitialized access in
+EinsumHelper::ParseEquation (CVE-2021-41201)
+  * Fixes several vulnerabilities and segfaults caused by missing
+validation during checkpoint loading (CVE-2021-41203)
+  * Fixes an overflow producing a crash in tf.range
+(CVE-2021-41202)
+  * Fixes an overflow producing a crash in tf.image.resize when
+size is large (CVE-2021-41199)
+  * Fixes an overflow producing a crash in tf.tile when tiling
+tensor is large (CVE-2021-41198)
+  * Fixes a vulnerability produced due to incomplete validation in
+tf.summary.create_file_writer (CVE-2021-41200)
+  * Fixes multiple crashes due to overflow and CHECK-fail in ops
+with large tensor shapes (CVE-2021-41197)
+  * Fixes a crash in max_pool3d when size argument is 0 or negative
+(CVE-2021-41196)
+  * Fixes a crash in tf.math.segment_* operations (CVE-2021-41195)
+  * Updates curl to 7.78.0 to handle CVE-2021-22922,
+CVE-2021-22923, CVE-2021-22924, CVE-2021-22925, and
+CVE-2021-22926.
+- This drops support for Python 3.6 and thus for SLE/Leap 15
+  See also https://code.opensuse.org/leap/features/issue/35
+- Closes boo#1195295
+  * Note that tensorflow2 (non-lite) will be removed from
+Tumbleweed soon if there are no volunteers, see leap feature
+issue above.
+- Have to migrate tensorflow-lite build to CMake as old Makefile
+  was dropped
+- Drop patches no longer necessary or applicable
+  * tensorflow-2.6.0-remove-weakref.patch
+  * tensorflow-2.6.0-fix-lite.patch
+  * tensorflow-2.6.0-tf-keras-hdf5-3.patch
+  * 

commit tensorflow2 for openSUSE:Factory

2022-01-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2022-01-10 23:53:37

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1892 (New)


Package is "tensorflow2"

Mon Jan 10 23:53:37 2022 rev:27 rq:945336 version:2.6.2

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2022-01-08 
23:23:50.778242765 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1892/tensorflow2.changes
2022-01-10 23:54:12.696836328 +0100
@@ -1,0 +2,6 @@
+Mon Jan 10 14:03:05 UTC 2022 - Guillaume GARDET 
+
+- tensorflow2-lite version does not need all the python dependencies
+  listed for tensorflow2
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.5vZnum/_old  2022-01-10 23:54:14.724838106 +0100
+++ /var/tmp/diff_new_pack.5vZnum/_new  2022-01-10 23:54:14.728838109 +0100
@@ -226,6 +226,7 @@
 Patch23:tensorflow-2.6.0-compile-with-protobuf-3.16.patch
 # cuda header is fetched on vanilla, disable it the hard way
 
+%if !%{is_lite}
 # See 
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py
 Requires:   python3
 Requires:   python3-Keras-Preprocessing
@@ -249,6 +250,7 @@
 Requires:   python3-numpy
 %endif
 Requires:   python3-pip
+%endif
 %if !%{is_lite}
 %if %{with hpc}
 Provides:   python3-tensorflow-%{compiler_family}%{?c_f_ver}-hpc


commit tensorflow2 for openSUSE:Factory

2022-01-08 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2022-01-08 23:23:23

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1892 (New)


Package is "tensorflow2"

Sat Jan  8 23:23:23 2022 rev:26 rq:944704 version:2.6.2

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-11-12 
16:00:01.602586088 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1892/tensorflow2.changes
2022-01-08 23:23:50.778242765 +0100
@@ -1,0 +2,6 @@
+Fri Jan  7 10:15:53 UTC 2022 - Guillaume GARDET 
+
+- Leap 15.x / Backports: Do not build non-Lite versions since python3-numpy
+  and python3-scipy are too old for Keras/TF2
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.26LKnv/_old  2022-01-08 23:23:53.058244626 +0100
+++ /var/tmp/diff_new_pack.26LKnv/_new  2022-01-08 23:23:53.062244629 +0100
@@ -311,7 +311,7 @@
 BuildRequires:  libicu-devel
 BuildRequires:  libjpeg-turbo
 BuildRequires:  libnsync-devel
-%if 0%{?suse_version} < 1550
+%if 0%{?suse_version} < 1599
 BuildRequires:  libjpeg62-turbo
 %endif
 BuildRequires:  libjpeg-devel
@@ -380,8 +380,14 @@
 %if %{is_lite}
 ExcludeArch:%ix86
 %else
+%if 0%{?suse_version} < 1599
+# Leap: Do not build since python3-numpy and python3-scipy are too old for 
Keras/TF2
+ExclusiveArch:  do_not_build
+%else
+# Tumbleweed
 ExcludeArch:%ix86 %arm
 %endif
+%endif
 
 %description
 This open source software library for numerical computation is used for data


commit tensorflow2 for openSUSE:Factory

2021-11-12 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-11-12 15:59:17

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1890 (New)


Package is "tensorflow2"

Fri Nov 12 15:59:17 2021 rev:25 rq:930619 version:2.6.2

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-10-23 
23:14:20.044991588 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1890/tensorflow2.changes
2021-11-12 16:00:01.602586088 +0100
@@ -1,0 +2,49 @@
+Tue Nov  9 13:26:21 UTC 2021 - Christian Goll 
+
+- updated to 2.6.2 which is bug fix release which just fixes an issue where
+  keras, tensorflow_estimator and tensorboard were missing proper upper bounds
+  and resulted in broken installs after Keras 2.7 release for all packages in
+  TensorFlow ecosystem
+- Fixes from 2.6.1 (boo#1192447):
+  * Fixes a code injection issue in saved_model_cli (CVE-2021-41228)
+  * Fixes a vulnerability due to use of uninitialized value in Tensorflow 
(CVE-2021-41225)
+  * Fixes a heap OOB in FusedBatchNorm kernels (CVE-2021-41223)
+  * Fixes an arbitrary memory read in ImmutableConst (CVE-2021-41227)
+  * Fixes a heap OOB in SparseBinCount (CVE-2021-41226)
+  * Fixes a heap OOB in SparseFillEmptyRows (CVE-2021-41224)
+  * Fixes a segfault due to negative splits in SplitV (CVE-2021-41222)
+  * Fixes segfaults and vulnerabilities caused by accesses to invalid memory
+during shape inference in Cudnn* ops (CVE-2021-41221)
+  * Fixes a null pointer exception when Exit node is not preceded by Enter op 
(CVE-2021-41217)
+  * Fixes an integer division by 0 in tf.raw_ops.AllToAll (CVE-2021-41218)
+  * Fixes a use after free and a memory leak in CollectiveReduceV2 
(CVE-2021-41220)
+  * Fixes an undefined behavior via nullptr reference binding in sparse matrix
+multiplication (CVE-2021-41219)
+  * Fixes a heap buffer overflow in Transpose (CVE-2021-41216)
+  * Prevents deadlocks arising from mutually recursive tf.function objects 
(CVE-2021-41213)
+  * Fixes a null pointer exception in DeserializeSparse (CVE-2021-41215)
+  * Fixes an undefined behavior arising from reference binding to nullptr in
+tf.ragged.cross (CVE-2021-41214)
+  * Fixes a heap OOB read in tf.ragged.cross (CVE-2021-41212)
+  * Fixes a heap OOB in shape inference for QuantizeV2 (CVE-2021-41211)
+  * Fixes a heap OOB read in all tf.raw_ops.QuantizeAndDequantizeV* ops 
(CVE-2021-41205)
+  * Fixes an FPE in ParallelConcat (CVE-2021-41207)
+  * Fixes FPE issues in convolutions with zero size filters (CVE-2021-41209)
+  * Fixes a heap OOB read in tf.raw_ops.SparseCountSparseOutput 
(CVE-2021-41210)
+  * Fixes vulnerabilities caused by incomplete validation in boosted trees 
code (CVE-2021-41208)
+  * Fixes vulnerabilities caused by incomplete validation of shapes in 
multiple TF ops (CVE-2021-41206)
+  * Fixes a segfault produced while copying constant resource tensor 
(CVE-2021-41204)
+  * Fixes a vulnerability caused by unitialized access in 
EinsumHelper::ParseEquation (CVE-2021-41201)
+  * Fixes several vulnerabilities and segfaults caused by missing validation
+during checkpoint loading (CVE-2021-41203)
+  * Fixes an overflow producing a crash in tf.range (CVE-2021-41202)
+  * Fixes an overflow producing a crash in tf.image.resize when size is large 
(CVE-2021-41199)
+  * Fixes an overflow producing a crash in tf.tile when tiling tensor is large 
(CVE-2021-41198)
+  * Fixes a vulnerability produced due to incomplete validation in
+tf.summary.create_file_writer (CVE-2021-41200)
+  * Fixes multiple crashes due to overflow and CHECK-fail in ops with large
+tensor shapes (CVE-2021-41197)
+  * Fixes a crash in max_pool3d when size argument is 0 or negative 
(CVE-2021-41196)
+  * Fixes a crash in tf.math.segment_* operations (CVE-2021-41195)
+
+---

Old:

  tensorflow-2.6.0.tar.gz

New:

  tensorflow-2.6.2.tar.gz



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.iBLUij/_old  2021-11-12 16:00:04.802587569 +0100
+++ /var/tmp/diff_new_pack.iBLUij/_new  2021-11-12 16:00:04.806587571 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package tensorflow2
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -18,12 +18,15 @@
 
 #
 %define pname tensorflow2
-%define vers 2.6.0
+%define vers 2.6.2
+# compatible versions used for dependencies
+%define base_vers_min 2.6
+%define base_vers_max 2.7
 #%%define cand -rc4
-%define _vers 2_6_0
+%define _vers 2_6_2
 %define libmaj 2
 %define libmin 6
-%define libref 0
+%define libref 2
 %define python_ver_hack python3.[0-9]
 

commit tensorflow2 for openSUSE:Factory

2021-10-23 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-10-23 23:14:08

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1890 (New)


Package is "tensorflow2"

Sat Oct 23 23:14:08 2021 rev:24 rq:927109 version:2.6.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-10-05 
22:34:03.346890564 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1890/tensorflow2.changes
2021-10-23 23:14:20.044991588 +0200
@@ -1,0 +2,6 @@
+Sat Oct 23 09:56:33 UTC 2021 - Egbert Eich 
+
+- Make sure tensorflow/core/public/version.h is installed in the
+  'lite' version (bsc#1191805).
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.ZQ5n0t/_old  2021-10-23 23:14:25.840994421 +0200
+++ /var/tmp/diff_new_pack.ZQ5n0t/_new  2021-10-23 23:14:25.844994423 +0200
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package tensorflow2
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -746,6 +746,8 @@
   # Disable spurious-executable-perm
   chmod -x %{buildroot}%{_includedir}/$file
 done
+install -D tensorflow/core/public/version.h 
%{buildroot}%{_includedir}/tensorflow/core/public/version.h
+chmod -x %{buildroot}%{_includedir}/tensorflow/core/public/version.h
 # Install tensorflow-lite.pc
 mkdir -p %{buildroot}%{_libdir}/pkgconfig
 cat < %{buildroot}%{_libdir}/pkgconfig/tensorflow-lite.pc
@@ -878,6 +880,8 @@
 %{package_libdir}/libtensorflow-lite.a
 %dir %{_includedir}/tensorflow/lite/
 %{_includedir}/tensorflow/lite/*
+%dir %{_includedir}/tensorflow/core/public/
+%{_includedir}/tensorflow/core/public/version.h
 %{package_libdir}/pkgconfig/*.pc
 
 %else


commit tensorflow2 for openSUSE:Factory

2021-10-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-10-05 22:33:44

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.2443 (New)


Package is "tensorflow2"

Tue Oct  5 22:33:44 2021 rev:23 rq:922962 version:2.6.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-09-02 
23:20:33.488571683 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.2443/tensorflow2.changes
2021-10-05 22:34:03.346890564 +0200
@@ -1,0 +2,5 @@
+Fri Sep 24 15:57:58 UTC 2021 - Ben Greiner 
+
+- Add missing python requirements -- boo#1190856 
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.DNLFtN/_old  2021-10-05 22:34:05.550894399 +0200
+++ /var/tmp/diff_new_pack.DNLFtN/_new  2021-10-05 22:34:05.554894406 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package tensorflow2
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -222,6 +222,7 @@
 # PATCH-FIX-OPENSUSE tensorflow-2.6.0-compile-with-protobuf-3.16.patch 
https://github.com/protocolbuffers/protobuf/pull/8354
 Patch23:tensorflow-2.6.0-compile-with-protobuf-3.16.patch
 
+# See 
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py
 Requires:   python3
 Requires:   python3-Keras-Preprocessing
 Requires:   python3-abseil
@@ -229,8 +230,13 @@
 Requires:   python3-astunparse
 Requires:   python3-flatbuffers
 Requires:   python3-gast
+Requires:   python3-h5py
+Requires:   python3-keras = %{version}
 Requires:   python3-opt-einsum
 Requires:   python3-protobuf
+Requires:   python3-six
+Requires:   python3-tensorboard = %{version}
+Requires:   python3-tensorflow-estimator = %{version}
 Requires:   python3-termcolor
 Requires:   python3-wrapt
 %if %{with hpc}
@@ -325,6 +331,8 @@
 BuildRequires:  python3-devel
 BuildRequires:  python3-flatbuffers
 BuildRequires:  python3-gast
+BuildRequires:  python3-h5py
+BuildRequires:  python3-keras = %{version}
 BuildRequires:  python3-mock
 BuildRequires:  python3-numpy-devel
 BuildRequires:  python3-opt-einsum
@@ -332,6 +340,8 @@
 BuildRequires:  python3-protobuf
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-six
+BuildRequires:  python3-tensorboard = %{version}
+BuildRequires:  python3-tensorflow-estimator = %{version}
 BuildRequires:  python3-termcolor
 BuildRequires:  python3-wheel
 BuildRequires:  python3-wrapt


commit tensorflow2 for openSUSE:Factory

2021-09-02 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-09-02 23:20:17

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1899 (New)


Package is "tensorflow2"

Thu Sep  2 23:20:17 2021 rev:22 rq:915698 version:2.6.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-08-31 
19:56:42.174039275 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1899/tensorflow2.changes
2021-09-02 23:20:33.488571683 +0200
@@ -1,0 +2,5 @@
+Wed Sep  1 10:30:38 UTC 2021 - Egbert Eich 
+
+- Limit BuildRequires for bazel-skylib-source to versions >= 1.0.3.
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.nW710w/_old  2021-09-02 23:20:35.920574716 +0200
+++ /var/tmp/diff_new_pack.nW710w/_new  2021-09-02 23:20:35.924574720 +0200
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package tensorflow2
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -256,7 +256,7 @@
 BuildRequires:  bazel-rules-proto-source
 BuildRequires:  bazel-rules-python-source
 BuildRequires:  bazel-rules-swift-source
-BuildRequires:  bazel-skylib-source
+BuildRequires:  bazel-skylib-source >= 1.0.3
 BuildRequires:  bazel-toolchains-source
 BuildRequires:  bazel-workspaces
 #BuildRequires:  bazel-rules-foreign-cc-source
@@ -742,7 +742,6 @@
 Name:   tensorflow lite
 Description: tensorflow lite static library
 Version:%{vers}
-Requires:   
 Libs: -L%{_libdir} -ltensorflow-lite -lflatbuffers
 Cflags: -I%{_includedir}
 EOF


commit tensorflow2 for openSUSE:Factory

2021-08-31 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-08-31 19:55:45

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.1899 (New)


Package is "tensorflow2"

Tue Aug 31 19:55:45 2021 rev:21 rq:915219 version:2.6.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-05-20 
19:25:16.493889696 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.1899/tensorflow2.changes
2021-08-31 19:56:42.174039275 +0200
@@ -1,0 +2,134 @@
+Thu Aug 19 03:51:15 UTC 2021 - Fusion Future 
+
+- Update to 2.6.0
+  Major changes are:
+  * Keras been split into a separate PIP package (keras), and its
+code has been moved to the GitHub repositorykeras-team/keras.
+The API endpoints for tf.keras stay unchanged, but are now
+backed by the keras PIP package. The existing code in
+tensorflow/python/keras is a staled copy and will be removed in
+future release (2.7). Please remove any imports to
+tensorflow.python.keras and replace them with public tf.keras
+API instead.
+  * tf.train.experimental.enable_mixed_precision_graph_rewrite is
+removed, as the API only works in graph mode and is not
+customizable. The function is still accessible under
+tf.compat.v1.mixed_precision.enable_mixed_precision_graph_rewrite,
+but it is recommended to use the Keras mixed precision API
+instead.
+  * tf.lite: Remove experimental.nn.dynamic_rnn,
+experimental.nn.TfLiteRNNCell and
+experimental.nn.TfLiteLSTMCell since they're no
+longer supported. It's recommended to just use keras lstm
+instead.
+  * tf.keras: The methods Model.to_yaml() and
+keras.models.model_from_yaml have been replaced to raise a
+RuntimeError as they can be abused to cause arbitrary code
+execution. It is recommended to use JSON serialization instead
+of YAML, or, a better alternative, serialize to H5.
+- Major changes from 2.5.x:
+  * Support for Python3.9 has been added.
+  * The TF_CPP_MIN_VLOG_LEVEL environment variable has been renamed
+to to TF_CPP_MAX_VLOG_LEVEL which correctly describes its
+effect.
+- Fixed multiple CVEs (boo#1189423):
+  * CVE-2021-37635
+  * CVE-2021-37636
+  * CVE-2021-37637
+  * CVE-2021-37638
+  * CVE-2021-37639
+  * CVE-2021-37640
+  * CVE-2021-37642
+  * CVE-2021-37641
+  * CVE-2021-37644
+  * CVE-2021-37643
+  * CVE-2021-37645
+  * CVE-2021-37646
+  * CVE-2021-37647
+  * CVE-2021-37648
+  * CVE-2021-37649
+  * CVE-2021-37650
+  * CVE-2021-37651
+  * CVE-2021-37652
+  * CVE-2021-37653
+  * CVE-2021-37654
+  * CVE-2021-37655
+  * CVE-2021-37656
+  * CVE-2021-37657
+  * CVE-2021-37658
+  * CVE-2021-37659
+  * CVE-2021-37660
+  * CVE-2021-37661
+  * CVE-2021-37662
+  * CVE-2021-37664
+  * CVE-2021-37663
+  * CVE-2021-37665
+  * CVE-2021-37666
+  * CVE-2021-37667
+  * CVE-2021-37668
+  * CVE-2021-37669
+  * CVE-2021-37670
+  * CVE-2021-37671
+  * CVE-2021-37672
+  * CVE-2021-37673
+  * CVE-2021-37674
+  * CVE-2021-37676
+  * CVE-2021-37675
+  * CVE-2021-37677
+  * CVE-2021-37678
+  * CVE-2021-37679
+  * CVE-2021-37680
+  * CVE-2021-37681
+  * CVE-2021-37682
+  * CVE-2021-37683
+  * CVE-2021-37684
+  * CVE-2021-37686
+  * CVE-2021-37685
+  * CVE-2021-37687
+  * CVE-2021-37688
+  * CVE-2021-37689
+  * CVE-2021-37691
+  * CVE-2021-37692
+  * CVE-2021-37690
+- Updated sources:
+  * abseil-cpp.tar.gz
+  * cpuinfo.zip
+  * dill-0.3.2.zip
+  * eigen.tar.gz
+  * google-cloud-cpp.tar.gz
+  * libxsmm_1.14.tar.gz
+  * llvm.tar.gz
+  * oneDNN.tar.gz
+  * rules_cc.tar.gz
+  * rules_closure.tar.gz
+  * rules_docker-0.18.0.tar.gz
+  * ruy.zip
+  * tblib-1.7.0.tar.gz
+- Added sources:
+  * ComputeLibrary.tar.gz
+  * oneDNN-v2.3-rc2.tar.gz
+  * platforms-0.0.2.tar.gz
+  * rules_proto.tar.gz
+  * tf_runtime.tar.gz
+  * tf_toolchains.tar.gz
+- Removed sources:
+  * kafka-v0.11.5.tar.gz
+- Add "tensorflow-2.6.0" prefix to existing patches to indicate
+  that patches are likely to be only applicable to a specific
+  version.
+  * fix-lite.patch -> tensorflow-2.6.0-fix-lite.patch
+  * numpy-tensor-small.patch -> tensorflow-2.6.0-numpy-tensor-small.patch
+  * removed-clog-build-as-included-in-cpuinfo.patch -> 
tensorflow-2.6.0-removed-clog-build-as-included-in-cpuinfo.patch
+  * removed-external-toolchains.patch -> 
tensorflow-2.6.0-removed-external-toolchains.patch
+  * remove-weakref.patch -> tensorflow-2.6.0-remove-weakref.patch
+  * tf-keras-hdf5-3.patch -> tensorflow-2.6.0-tf-keras-hdf5-3.patch
+- Rebase all existing patches.
+- Add tensorflow-2.6.0-compile-with-protobuf-3.16.patch to fix
+  build error with protobuf >= 3.16.0. (boo#1186860)
+  (https://github.com/protocolbuffers/protobuf/pull/8354)
+- Update bazel version requirement to 3.7.2.

commit tensorflow2 for openSUSE:Factory

2021-05-20 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-05-20 19:24:50

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.2988 (New)


Package is "tensorflow2"

Thu May 20 19:24:50 2021 rev:20 rq:894333 version:2.4.1

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-04-17 
00:01:35.805578133 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.2988/tensorflow2.changes
2021-05-20 19:25:16.493889696 +0200
@@ -1,0 +2,6 @@
+Wed May 19 12:02:57 UTC 2021 - Guillaume GARDET 
+
+- Update _constraints to use host with 'asimdrdm' cpu flag to avoid
+  slow CPU and be scheduled on faster systems
+
+---



Other differences:
--
++ _constraints ++
--- /var/tmp/diff_new_pack.Yab74r/_old  2021-05-20 19:25:18.017883446 +0200
+++ /var/tmp/diff_new_pack.Yab74r/_new  2021-05-20 19:25:18.017883446 +0200
@@ -8,4 +8,14 @@
   16
 
   
+  
+
+  aarch64
+
+
+  
+  asimdrdm
+  
+
+  
 


commit tensorflow2 for openSUSE:Factory

2021-04-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-04-17 00:01:29

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.12324 (New)


Package is "tensorflow2"

Sat Apr 17 00:01:29 2021 rev:19 rq:885569 version:2.4.1

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-04-10 
15:28:29.922457604 +0200
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.12324/tensorflow2.changes   
2021-04-17 00:01:35.805578133 +0200
@@ -1,0 +2,7 @@
+Wed Apr 14 15:01:22 UTC 2021 - Ferdinand Thiessen 
+
+- Update to version 2.4.1
+  * Bugfixes
+  * Drops requirement of AVX2
+
+---

Old:

  tensorflow-v2.4.0.tar.gz

New:

  tensorflow-2.4.1.tar.gz



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.kWO5G4/_old  2021-04-17 00:01:38.057581686 +0200
+++ /var/tmp/diff_new_pack.kWO5G4/_new  2021-04-17 00:01:38.061581692 +0200
@@ -18,12 +18,12 @@
 
 #
 %define pname tensorflow2
-%define vers 2.4.0
+%define vers 2.4.1
 #%%define cand -rc4
-%define _vers 2_4_0
+%define _vers 2_4_1
 %define libmaj 2
 %define libmin 4
-%define libref 0
+%define libref 1
 %define python_ver_hack python3.[0-9]
 %ifarch aarch64
 %define mklconfig mkl_aarch64
@@ -123,7 +123,7 @@
 License:Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND FSFUL AND MIT 
AND MPL-2.0 AND OpenSSL AND Python-2.0
 Group:  Development/Languages/Python
 URL:https://www.tensorflow.org/
-Source0:
https://github.com/tensorflow/tensorflow/archive/v%{version}%{?cand}.tar.gz#/tensorflow-v%{version}.tar.gz
+Source0:
https://github.com/tensorflow/tensorflow/archive/v%{version}%{?cand}.tar.gz#/tensorflow-%{version}.tar.gz
 Source1:tensorflow2-rpmlintrc
 # IMPORTANT
 # although some of the following libraries are available in factory they could






++ tensorflow-v2.4.0.tar.gz -> tensorflow-2.4.1.tar.gz ++
/work/SRC/openSUSE:Factory/tensorflow2/tensorflow-v2.4.0.tar.gz 
/work/SRC/openSUSE:Factory/.tensorflow2.new.12324/tensorflow-2.4.1.tar.gz 
differ: char 15, line 1


commit tensorflow2 for openSUSE:Factory

2021-04-10 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-04-10 15:27:25

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.2401 (New)


Package is "tensorflow2"

Sat Apr 10 15:27:25 2021 rev:18 rq:883620 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-03-24 
16:11:16.767833686 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.2401/tensorflow2.changes
2021-04-10 15:28:29.922457604 +0200
@@ -1,0 +2,11 @@
+Tue Apr  6 16:27:29 UTC 2021 - Ben Greiner 
+
+- Don't BuildRequire keras_applications. Tensorflow provides it
+  itself: https://github.com/tensorflow/tensorflow/commit/23c3bdaa
+- These were discovered by Keras test suite:
+  * add numpy-tensor-small.patch for Numpy >= 1.20
+gh#tensorflow/tensorflow#47691
+  * add tf-keras-hdf5-3.patch for hdf5 >= 3.0
+gh#tensorflow/tensorflow#44467
+
+---

New:

  numpy-tensor-small.patch
  tf-keras-hdf5-3.patch



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.ooEDVB/_old  2021-04-10 15:28:31.314459242 +0200
+++ /var/tmp/diff_new_pack.ooEDVB/_new  2021-04-10 15:28:31.318459246 +0200
@@ -93,6 +93,7 @@
 %{!?compiler_family:%global compiler_family gnu}
 %{hpc_init -c %compiler_family %{?with_mpi:-m %mpi_flavor} %{?c_f_ver:-v 
%{c_f_ver}} %{?mpi_ver:-V %{mpi_ver}} %{?ext:-e %{ext}}}
 %{?with_mpi:%global hpc_module_pname p%{pname}}
+# hpc macros expect this, but we do not use python-rpm-macros
 %define python_flavor python3
 %define package_name   %{hpc_package_name %_vers}
 %define package_name_provide tensorflow2%{hpc_package_name_tail}
@@ -204,9 +205,12 @@
 Patch14:fix-lite.patch
 # Fix from upstream for gcc10.1
 Patch20:removed-clog-build-as-included-in-cpuinfo.patch
+# Fix for numpy 1.20 -- https://stackoverflow.com/questions/66373169 , 
https://github.com/tensorflow/tensorflow/issues/47691
+Patch21:numpy-tensor-small.patch
+# Fix for hdf5 3.0 -- https://github.com/tensorflow/tensorflow/issues/44467
+Patch22:tf-keras-hdf5-3.patch
 
 Requires:   python3
-Requires:   python3-Keras-Applications
 Requires:   python3-Keras-Preprocessing
 Requires:   python3-abseil
 Requires:   python3-astor
@@ -244,7 +248,6 @@
 BuildRequires:  bazel-toolchains-source
 BuildRequires:  bazel-workspaces
 #BuildRequires:  bazel-rules-foreign-cc-source
-#BuildRequires:  bazel-rules-python-source
 %endif
 BuildRequires:  curl
 %if %{with cuda}
@@ -303,7 +306,6 @@
 BuildRequires:  python-pybind11-common-devel
 BuildRequires:  python3
 BuildRequires:  python3-Cython
-BuildRequires:  python3-Keras-Applications
 BuildRequires:  python3-Keras-Preprocessing
 BuildRequires:  python3-abseil
 BuildRequires:  python3-astor
@@ -402,7 +404,6 @@
 
 This package provides examples from the website.
 
-
 %package -n libtensorflow%{libmaj}%{?hpc_package_name_tail}
 Summary:Shared library for tensorflow
 Group:  Libraries
@@ -450,7 +451,6 @@
 %endif
 
 %prep
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 # fighting bazel
 %define bazeldir %{_sourcedir}/BAZEL
 %define bz_cachdir %{_sourcedir}/BAZEL_CACHE
@@ -502,6 +502,8 @@
 %patch13 -p 1
 %patch14 -p 1
 %patch20 -p 1
+%patch21 -p 1
+%patch22 -p 1
 
 %define make_depend_src() test -e $(basename %{1}| sed 's/-.*//') && rmdir 
%{?2}%{!?2:$(basename %{1}| sed 's/-.*//')}; test -e %{2} && rmdir %{2}; tar 
xzf %{1}; mv $(basename %{1} | sed 's/\.tar\.gz//' ) %{?2}%{!?2:$(basename 
%{1}| sed 's/-.*//')}
 # extract bazel rules
@@ -841,18 +843,21 @@
 %post -n libtensorflow_framework%{libmaj}%{?hpc_package_name_tail} -p 
/sbin/ldconfig
 %postun -n libtensorflow_framework%{libmaj}%{?hpc_package_name_tail} -p 
/sbin/ldconfig
 
-# Lite version is very different so package it separetly
 %if %{is_lite}
 %files
+# Lite version is very different so package it separetly
 %{package_bindir}/*
+
 %files -n %{package_name}-devel
 %{package_libdir}/libtensorflow-lite.a
 %dir %{_includedir}/tensorflow/lite/
 %{_includedir}/tensorflow/lite/*
 %{package_libdir}/pkgconfig/*.pc
-%else # not lite build
+
+%else
 
 %files
+# not lite build
 %defattr(-,root,root,-)
 %{package_bindir}/estimator_ckpt_converter
 %{package_bindir}/saved_model_cli
@@ -871,6 +876,7 @@
 %if %{with hpc}
 %hpc_modules_files
 %endif
+
 %files -n %{package_name}-devel
 %{package_python_sitelib}/tensorflow_core/include
 #%%{package_python_sitearch}/tensorflow_core/include
@@ -881,16 +887,21 @@
 %if %{without hpc}
 %{package_libdir}/pkgconfig/*.pc
 %endif
+
 %files -n 

commit tensorflow2 for openSUSE:Factory

2021-03-24 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-03-24 16:11:15

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.2401 (New)


Package is "tensorflow2"

Wed Mar 24 16:11:15 2021 rev:17 rq:873517 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-01-19 
16:02:32.319411189 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.2401/tensorflow2.changes
2021-03-24 16:11:16.767833686 +0100
@@ -1,0 +2,12 @@
+Thu Feb 18 14:26:20 UTC 2021 - Guillaume GARDET 
+
+- Generate and install pkgconfig files for tensorflow-lite and
+  tensorflow (non-hpc)
+
+---
+Wed Jan 27 10:54:57 UTC 2021 - Guillaume GARDET 
+
+- Do not install bazel tools to build Lite version. This will allow
+  to build for armv7 where bazel 3.x is not available - boo#1178564
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.UviWgK/_old  2021-03-24 16:11:18.531835537 +0100
+++ /var/tmp/diff_new_pack.UviWgK/_new  2021-03-24 16:11:18.535835541 +0100
@@ -231,6 +231,7 @@
 %endif
 Provides:   tensorflow
 %endif
+%if !%{is_lite}
 BuildRequires:  bazel == 3.4.1
 #BuildRequires:  bazel-rules-cc-source
 #BuildRequires:  bazel-apple-support-source
@@ -244,6 +245,7 @@
 BuildRequires:  bazel-workspaces
 #BuildRequires:  bazel-rules-foreign-cc-source
 #BuildRequires:  bazel-rules-python-source
+%endif
 BuildRequires:  curl
 %if %{with cuda}
 BuildRequires:  cuda-compiler-10-1
@@ -715,6 +717,20 @@
   # Disable spurious-executable-perm
   chmod -x %{buildroot}%{_includedir}/$file
 done
+# Install tensorflow-lite.pc
+mkdir -p %{buildroot}%{_libdir}/pkgconfig
+cat < %{buildroot}%{_libdir}/pkgconfig/tensorflow-lite.pc
+Name: tensorflow lite
+Description: tensorflow lite static library
+Version: %{vers}
+Requires:
+Libs: -L%{_libdir} -ltensorflow-lite -lflatbuffers
+Cflags: -I%{_includedir}
+EOF
+# Some tools expect tensorflow2-lite.pc
+pushd %{buildroot}%{_libdir}/pkgconfig
+ln -s tensorflow-lite.pc tensorflow2-lite.pc
+popd
 %else
 
 pip install %{_topdir}/%{name}-%{version}/*whl 
--root=%{buildroot}%{?hpc_prefix} \
@@ -736,6 +752,11 @@
 #mv lib/%{python_ver_hack}/site-packages/tensorflow_core/include/* 
lib64/%{python_ver_hack}/site-packages/tensorflow_core/include/
 rm -r lib
 cd -
+%else
+# Generate and install pkgconfig files for non-hpc - tensorflow.pc and 
tensorflow_cc.pc
+sh tensorflow/c/generate-pc.sh --prefix=/usr --libdir %{_lib} --version %{vers}
+mkdir -p %{buildroot}%{package_libdir}/pkgconfig
+cp *.pc %{buildroot}%{package_libdir}/pkgconfig
 %endif
 # install libtensorflow*.so
 #install -D bazel-bin/tensorflow/libtensorflow.so 
%{buildroot}%{package_libdir}/libtensorflow.so
@@ -828,7 +849,9 @@
 %{package_libdir}/libtensorflow-lite.a
 %dir %{_includedir}/tensorflow/lite/
 %{_includedir}/tensorflow/lite/*
+%{package_libdir}/pkgconfig/*.pc
 %else # not lite build
+
 %files
 %defattr(-,root,root,-)
 %{package_bindir}/estimator_ckpt_converter
@@ -855,6 +878,9 @@
 %{package_libdir}/libtensorflow.so
 %{package_libdir}/libtensorflow_cc.so
 %{package_libdir}/libtensorflow_framework.so
+%if %{without hpc}
+%{package_libdir}/pkgconfig/*.pc
+%endif
 %files -n libtensorflow_framework%{libmaj}%{?hpc_package_name_tail}
 %{package_libdir}/libtensorflow_framework.so.%{libmaj}*
 %files -n libtensorflow_cc%{libmaj}%{?hpc_package_name_tail}


commit tensorflow2 for openSUSE:Factory

2021-01-19 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tensorflow2 for openSUSE:Factory 
checked in at 2021-01-19 16:01:56

Comparing /work/SRC/openSUSE:Factory/tensorflow2 (Old)
 and  /work/SRC/openSUSE:Factory/.tensorflow2.new.28504 (New)


Package is "tensorflow2"

Tue Jan 19 16:01:56 2021 rev:16 rq:864033 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/tensorflow2/tensorflow2.changes  2021-01-08 
17:39:15.648968645 +0100
+++ /work/SRC/openSUSE:Factory/.tensorflow2.new.28504/tensorflow2.changes   
2021-01-19 16:02:32.319411189 +0100
@@ -1,0 +2,10 @@
+Fri Jan 15 08:05:09 UTC 2021 - Guillaume GARDET 
+
+- Fix packaging for libiomp5
+
+---
+Mon Jan 11 01:49:52 UTC 2021 - Dirk M??ller 
+
+- build verbose to not fail on the obs stall detection 
+
+---



Other differences:
--
++ tensorflow2.spec ++
--- /var/tmp/diff_new_pack.mQzr5Y/_old  2021-01-19 16:02:34.819414968 +0100
+++ /var/tmp/diff_new_pack.mQzr5Y/_new  2021-01-19 16:02:34.823414975 +0100
@@ -645,7 +645,7 @@
 ./configure
 
 %define bazelopts \\\
-  -c opt \\\
+  -s -c opt \\\
   --repository_cache=%{bz_cachdir} \\\
   --ignore_unsupported_sandboxing \\\
   --verbose_failures \\\
@@ -739,7 +739,9 @@
 %endif
 # install libtensorflow*.so
 #install -D bazel-bin/tensorflow/libtensorflow.so 
%{buildroot}%{package_libdir}/libtensorflow.so
+
 %fdupes -s %{buildroot}%{?hpc_prefix}  
+
 # install after fdupes
 cp -vd  \
   bazel-bin/tensorflow/libtensorflow_cc.so \
@@ -749,6 +751,11 @@
 
 %ifarch x86_64
 mv 
%{buildroot}/%{package_python_sitearch}/_solib_k8/_U_S_Sthird_Uparty_Smkl_Cmkl_Ulibs_Ulinux___Uexternal_Sllvm_Uopenmp/libiomp5.so
 %{buildroot}/%{package_libdir}/
+# Fix symlink
+pushd 
%{buildroot}%{package_python_sitearch}/tensorflow/include/external/llvm_openmp/
+rm libiomp5.so
+ln -s %{package_libdir}/libiomp5.so
+popd
 %endif
 
 find %{buildroot} -name \*.h -type f -exec chmod 644 {} +