diff --git a/onnx.tar.xz b/onnx-1.14.0.tar.xz similarity index 40% rename from onnx.tar.xz rename to onnx-1.14.0.tar.xz index 4ea6a136f8cf2029cad1b13a7932d26ca9176ec1..2133c2cb69bd039442681fe0d568a2e368bd11e2 100644 Binary files a/onnx.tar.xz and b/onnx-1.14.0.tar.xz differ diff --git a/onnx.spec b/onnx.spec index f10017cb4439bfd604f1c4a3ce9c8aa5ff79cf32..2cf1e4ff32984c709dd8f35fa03b1687b64bf9cd 100644 --- a/onnx.spec +++ b/onnx.spec @@ -1,14 +1,12 @@ -%global githash fa6f8cfd -%global gitdate 20211122 Name: onnx -Version: 1.10.2 -Release: %{gitdate}.git%{githash}%{?dist} +Version: 1.14.0 +Release: 1%{?dist} Summary: Open Neural Network Exchange License: Apache URL: https://github.com/onnx/onnx -Source0: onnx.tar.xz +Source0: onnx-1.14.0.tar.xz BuildRequires: doxygen cmake gcc-c++ BuildRequires: python3-devel python3-setuptools protobuf-devel @@ -19,17 +17,9 @@ Requires: wget %description Open Neural Network Exchange -%package static -Summary: Development files for onnx -Requires: %{name} = %{version}-%{release} - -%description static -This package contains development files for onnx. - %package devel Summary: Development files for onnx Requires: %{name} = %{version}-%{release} -Requires: %{name}-static = %{version}-%{release} %description devel This package contains development files for onnx. @@ -44,7 +34,7 @@ This package contains python files for onnx. %prep -%setup -q -n %{name} +%setup -q # external libraries rm -rf third_party/benchmark rm -rf third_party/pybind11 @@ -84,11 +74,6 @@ export ONNX_ML=0 export CMAKE_ARGS="-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_SKIP_RPATH=ON -DCMAKE_VERBOSE_MAKEFILE=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo" %{__python3} setup.py install --root %{buildroot} -# fix libdir -mkdir -p %{buildroot}/%{_libdir}/ -cp -rl %{buildroot}/usr/lib/* -t %{buildroot}/%{_libdir}/ -rm -rf %{buildroot}/usr/lib - # fix binaries mkdir -p %{buildroot}/%{_bindir}/ sed -i '1 i #!/usr/bin/python3' %{buildroot}/%{python3_sitearch}/onnx/bin/checker.py @@ -122,9 +107,6 @@ sed -i -e 's|/lib/|/%{_lib}/|g' %{buildroot}/%{_libdir}/cmake/ONNX/ONNXTargets-* %{_bindir}/* %{_libdir}/lib*.so* -%files static -%{_libdir}/lib*.a - %files devel %{_includedir}/* %{_libdir}/cmake/* @@ -134,5 +116,5 @@ sed -i -e 's|/lib/|/%{_lib}/|g' %{buildroot}/%{_libdir}/cmake/ONNX/ONNXTargets-* %changelog -* Tue Mar 26 2019 Balint Cristian -- github build +* Fri Jun 16 2023 forrest_ly - 1.14.0-1 +- init for anolis 23