diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..0a80fdce31f59c062e2abba28776e9521eddff30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000000000000000000000000000000000000..24380b51adf025e8fc1da1700372b26a9822ea95 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/src-openEuler/OpenEXR diff --git a/OpenEXR.spec b/OpenEXR.spec index 177749f101545b5a56d28a0460ff3d9e4f932aea..47044864c1b4b3565a130ddb2438e52e8265471c 100644 --- a/OpenEXR.spec +++ b/OpenEXR.spec @@ -4,10 +4,12 @@ Name: OpenEXR Summary: A high dynamic-range (HDR) image file format for use in computer imaging applications Version: 3.2.4 -Release: 1 +Release: 2 License: BSD-3-Clause URL: http://www.openexr.com/ Source0: https://github.com/AcademySoftwareFoundation/openexr/archive/v%{version}/openexr-%{version}.tar.gz +# for test images +Source1: https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz # https://github.com/AcademySoftwareFoundation/openexr/commit/df4d77471f2722025011da2e699d581d1e757f6b Patch0: CVE-2024-31047.patch BuildRequires: gcc-c++ zlib-devel pkgconfig python3-devel @@ -43,7 +45,9 @@ Requires: %{name}-libs = %{version}-%{release} This package contains libraries and header files for development of %{name}. %prep -%autosetup -n openexr-%{version} -p1 +%autosetup -n openexr-%{version} -p1 -a1 +mkdir -p %{__cmake_builddir}/src/test/bin +cp -fr openexr-images-1.0/* %{__cmake_builddir}/src/test/bin/ %build %cmake @@ -57,15 +61,12 @@ This package contains libraries and header files for development of %{name}. # https://github.com/AcademySoftwareFoundation/openexr/issues/1460 EXCLUDE_REGEX='DWA[AB]Compression' %endif -/usr/bin/ctest --output-on-failure --force-new-ctest-process -j${RPM_BUILD_NCPUS} --exclude-regex "$EXCLUDE_REGEX" - -%ldconfig_scriptlets libs +%ctest --output-on-failure --force-new-ctest-process --exclude-regex "$EXCLUDE_REGEX" %files %doc CHANGES.md CONTRIBUTING.md GOVERNANCE.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md %license LICENSE.md %{_bindir}/* -%exclude %{_docdir}/%{name}-%{version} %files libs %{_libdir}/libIex-3_2.so.%{sover}{,.*} @@ -75,14 +76,17 @@ EXCLUDE_REGEX='DWA[AB]Compression' %{_libdir}/libOpenEXRUtil-3_2.so.%{sover}{,.*} %files devel -%{_docdir}/OpenEXR/ +%doc %{_docdir}/%{name}/examples %{_includedir}/OpenEXR/ %{_libdir}/*.so %{_libdir}/cmake/OpenEXR/ %{_libdir}/pkgconfig/OpenEXR.pc %changelog -* Sun Jul 14 2024 shafeipaozi - 3.2.4-1 +* Sat Mar 01 2025 Funda Wang - 3.2.4-2 +- ship test images for use offline + +* Sun Jan 26 2025 shafeipaozi - 3.2.4-1 - Update to 3.2.4 * Thu Dec 19 2024 wangkai <13474090681@163.com> - 3.1.11-4 diff --git a/openexr-3.2.4.tar.gz b/openexr-3.2.4.tar.gz index 18c5e8fc0a5ba82b863aa20f3d2490249a762b39..1089185ba4b8f669ee574bdf417001980f15b445 100644 Binary files a/openexr-3.2.4.tar.gz and b/openexr-3.2.4.tar.gz differ diff --git a/v1.0.tar.gz b/v1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9bbc225377072474a09cebf9addbdc7753b33ff7 --- /dev/null +++ b/v1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4d426f5863d1ce85d3f36314c52b3f26c3edcbd61eecc460298ae60641b052d +size 252222962