summaryrefslogtreecommitdiff
path: root/OpenEXR.spec
blob: ba2c386a77b63a040008fcbb6269943ebec00be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Name:           OpenEXR
Summary:        A high dynamic-range (HDR) image file format for use in computer imaging applications
Version:        3.1.11
Release:        3
License:        BSD-3-Clause
URL:	        http://www.openexr.com/
Source0:        https://github.com/AcademySoftwareFoundation/openexr/archive/v%{version}/openexr-%{version}.tar.gz
# https://github.com/AcademySoftwareFoundation/openexr/commit/df4d77471f2722025011da2e699d581d1e757f6b
Patch0:         CVE-2023-5841.patch
Patch1:         CVE-2024-31047.patch
BuildRequires:  gcc-c++ zlib-devel pkgconfig python3-devel
BuildRequires:  cmake gcc boost-devel pkgconfig(Imath) 

Requires:       %{name}-libs = %{version}-%{release}

Provides:       openexr = %{version}-%{release}
Obsoletes:      openexr < %{version}-%{release}

%description
OpenEXR is a high dynamic-range (HDR) image file format originally developed by Industrial
Light & Magic for use in computer imaging applications.

%package        libs
Summary:        Libraries for %{name}
Provides:       openexr-libs = %{version}-%{release}
Obsoletes:      openexr-libs < %{version}-%{release}

%description    libs
Libraries for %{name}.

%package devel
Summary:        Development files for %{name}
Provides:       openexr-devel = %{version}-%{release}
Obsoletes:      openexr-devel < %{version}-%{release}
Provides:       ilmbase-devel = %{version}-%{release}
Obsoletes:      ilmbase-devel < 2.5.3
Requires:       %{name}-libs = %{version}-%{release}

%description devel
This package contains libraries and header files for development of %{name}.

%prep
%autosetup -n openexr-%{version} -p1

%build
%cmake
%make_build

%install
%make_install

%check
%ifarch aarch64 ppc64le
# 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

%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}/*.so.30*

%files devel
%{_docdir}/OpenEXR/
%{_includedir}/OpenEXR/
%{_libdir}/*.so
%{_libdir}/cmake/OpenEXR/
%{_libdir}/pkgconfig/OpenEXR.pc

%changelog
* Wed Apr 17 2024 wangkai <13474090681@163.com> - 3.1.11-3
- Fix CVE-2024-31047

* Mon Feb 26 2024 yaoxin <yao_xin001@hoperun.com> - 3.1.11-2
- Fix CVE-2023-5841

* Thu Oct 12 2023 yaoxin <yao_xin001@hoperun.com> - 3.1.11-1
- Upgrade to 3.1.11

* Wed Jul 12 2023 liyanan <thistleslyn@163.com> - 3.1.9-1
- update to 3.1.9

* Tue May 10 2022 Ge Wang <wangge20@h-partners.com> - 3.1.5-2
- license compliance rectification

* Thu Apr 28 2022 wangkai <wangkai385@h-partners.com> - 3.1.5-1
- update to 3.1.5 for fix CVE-2022-45942

* Tue Mar 29 2022 liyanan <liyanan32@huawei.com> - 3.1.3-1
- update to 3.1.3

* Wed Mar 23 2022 yaoxin <yaoxin30@huawei.com> - 2.2.0-25
- Fix CVE-2021-20299

* Fri Mar 11 2022 yaoxin <yaoxin30@huawei.com> - 2.2.0-24
- Fix CVE-2021-20303

* Wed Sep 1 2021 liwu<liwu13@huawei.com> - 2.2.0-23
- fix CVE-2021-3605

* Mon Jul 12 2021 yaoxin <yaoxin30@huawei.com> - 2.2.0-22
- fix CVE-2020-11758 CVE-2020-11759 CVE-2020-11760 CVE-2020-11761 CVE-2020-11762 CVE-2020-11763 CVE-2020-11764 CVE-2020-11765 CVE-2020-15305 CVE-2020-15306

* Sat Jul 10 2021 wangyue <wangyue92@huawei.com> - 2.2.0-21
- fix CVE-2021-3598

* Tue Jun 22 2021 houyingchao <houyingchao@huawei.com> - 2.2.0-20
- fix CVE-2021-23215 CVE-2021-23169 CVE-2021-26260

* Tue Apr 06 2021 wangyue <wangyue92@huawei.com> - 2.2.0-19
- fix CVE-2021-3474 CVE-2021-3477 CVE-2021-3476 CVE-2021-3475 CVE-2021-20296 CVE-2021-3479 CVE-2021-20296

* Wed Jan 27 2021 zhanghua <zhanghua40@huawei.com> - 2.2.0-18
- Type:CVE
- ID:NA
- SUG:NA
- DESC:fix CVE-2017-9110 CVE-2017-9111 CVE-2017-9112 CVE-2017-9113
  CVE-2017-9114 CVE-2017-9115 CVE-2017-9116 CVE-2017-12596

* Tue Feb 18 2020 hexiujun <hexiujun1@huawei.com> - 2.2.0-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:unpack libs subpackage

* Fri Oct 25 2019 huzhiyu <huzhiyu1@huawei.com> - 2.2.0-16
- Package init