-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibheif.spec
280 lines (239 loc) · 8.76 KB
/
libheif.spec
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
%global commit0 77e9adb9af8ac69e89eb44089151c11726a56f62
%global date 20240612
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global tag %{version}
Name: libheif
Epoch: 1
Version: 1.19.3%{!?tag:^%{date}git%{shortcommit0}}
Release: 2%{?dist}
Summary: ISO/IEC 23008-12:2017 HEIF and AVIF file format decoder and encoder
License: LGPLv3+ and MIT
URL: https://github.com/strukturag/%{name}
%if 0%{?tag:1}
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%else
Source0: %{url}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
%endif
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libavcodec-devel
BuildRequires: ninja-build
BuildRequires: openjpeg2-devel
BuildRequires: pkgconfig(aom)
BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(kvazaar)
BuildRequires: pkgconfig(libde265)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libsharpyuv)
BuildRequires: pkgconfig(libvvdec)
BuildRequires: pkgconfig(libvvenc)
BuildRequires: pkgconfig(openh264)
BuildRequires: pkgconfig(openjph) >= 0.18.0
BuildRequires: pkgconfig(rav1e)
BuildRequires: pkgconfig(SvtAv1Enc)
BuildRequires: pkgconfig(uvg266)
BuildRequires: pkgconfig(x265)
BuildRequires: vvdec
%description
libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file
format decoder and encoder.
HEIF and AVIF are new image file formats employing HEVC (h.265) or AV1 image
coding, respectively, for the best compression ratios currently possible.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n heif-pixbuf-loader
Summary: HEIF image loader for GTK+ applications
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
Requires: gdk-pixbuf2%{?_isa}
%description -n heif-pixbuf-loader
This package provides a plugin to load HEIF files in GTK+ applications.
%prep
%if 0%{?tag:1}
%autosetup -p1
%else
%autosetup -p1 -n %{name}-%{commit0}
%endif
%build
%cmake \
-GNinja \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
-DENABLE_PLUGIN_LOADING=ON \
-DWITH_AOM_DECODER=ON \
-DWITH_AOM_DECODER_PLUGIN=ON \
-DWITH_AOM_ENCODER=ON \
-DWITH_AOM_ENCODER_PLUGIN=ON \
-DWITH_DAV1D=ON \
-DWITH_DAV1D_PLUGIN=ON \
-DWITH_DEFLATE_HEADER_COMPRESSION=ON \
-DWITH_EXAMPLES=ON \
-DWITH_FFMPEG_DECODER=ON \
-DWITH_FFMPEG_DECODER_PLUGIN=ON \
-DWITH_KVAZAAR=ON \
-DWITH_KVAZAAR_PLUGIN=ON \
-DWITH_JPEG_DECODER=ON \
-DWITH_JPEG_DECODER_PLUGIN=ON \
-DWITH_JPEG_ENCODER=ON \
-DWITH_JPEG_ENCODER_PLUGIN=ON \
-DWITH_LIBDE265=ON \
-DWITH_LIBDE265_PLUGIN=ON \
-DWITH_LIBSHARPYUV=ON \
-DWITH_LIBSHARPYUV_PLUGIN=ON \
-DWITH_OpenH264_DECODER=ON \
-DWITH_OpenH264_DECODER_PLUGIN=ON \
-DWITH_OpenJPEG_ENCODER=ON \
-DWITH_OpenJPEG_ENCODER_PLUGIN=ON \
-DWITH_OpenJPEG_DECODER=ON \
-DWITH_OpenJPEG_DECODER_PLUGIN=ON \
-DWITH_OPENJPH_ENCODER=ON \
-DWITH_OPENJPH_ENCODER_PLUGIN=ON \
-DWITH_SvtEnc=ON \
-DWITH_SvtEnc_PLUGIN=ON \
-DWITH_RAV1E=ON \
-DWITH_RAV1E_PLUGIN=ON \
-DWITH_REDUCED_VISIBILITY=ON \
-DWITH_UNCOMPRESSED_CODEC=ON \
-DWITH_UVG266=ON \
-DWITH_UVG266_PLUGIN=ON \
-DWITH_VVDEC=ON \
-DWITH_VVDEC_PLUGIN=ON \
-DWITH_VVENC=ON \
-DWITH_VVENC_PLUGIN=ON \
-DWITH_X265=ON \
-DWITH_X265_PLUGIN=ON
%cmake_build
%install
%cmake_install
cp -frv %{_vpath_builddir}/apidoc/man/man3 %{buildroot}%{_mandir}/
rm -f %{buildroot}%{_mandir}/man3/_builddir_build_BUILD_libheif*
%files
%license COPYING
%doc README.md
%{_bindir}/heif-convert
%{_bindir}/heif-dec
%{_bindir}/heif-enc
%{_bindir}/heif-info
%{_bindir}/heif-thumbnailer
%{_datadir}/thumbnailers/
%{_libdir}/%{name}.so.1
%{_libdir}/%{name}.so.%{version}
%{_libdir}/%{name}/%{name}-aomdec.so
%{_libdir}/%{name}/%{name}-aomenc.so
%{_libdir}/%{name}/%{name}-dav1d.so
%{_libdir}/%{name}/%{name}-ffmpegdec.so
%{_libdir}/%{name}/%{name}-j2kdec.so
%{_libdir}/%{name}/%{name}-j2kenc.so
%{_libdir}/%{name}/%{name}-jpegdec.so
%{_libdir}/%{name}/%{name}-jpegenc.so
%{_libdir}/%{name}/%{name}-jphenc.so
%{_libdir}/%{name}/%{name}-kvazaar.so
%{_libdir}/%{name}/%{name}-libde265.so
%{_libdir}/%{name}/%{name}-openh264dec.so
%{_libdir}/%{name}/%{name}-rav1e.so
%{_libdir}/%{name}/%{name}-svtenc.so
%{_libdir}/%{name}/%{name}-uvg266.so
%{_libdir}/%{name}/%{name}-vvdec.so
%{_libdir}/%{name}/%{name}-vvenc.so
%{_libdir}/%{name}/%{name}-x265.so
%{_mandir}/man1/heif-dec.1*
%{_mandir}/man1/heif-enc.1*
%{_mandir}/man1/heif-info.1*
%{_mandir}/man1/heif-thumbnailer.1*
%files devel
%doc %{_vpath_builddir}/apidoc/html
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so
%{_mandir}/man3/heif.h.3*
%{_mandir}/man3/heif_ambient_viewing_environment.3.gz
%{_mandir}/man3/heif_camera_intrinsic_matrix.3.gz
%{_mandir}/man3/heif_color_conversion_options.3*
%{_mandir}/man3/heif_color_profile_nclx.3*
%{_mandir}/man3/heif_content_light_level.3*
%{_mandir}/man3/heif_decoded_mastering_display_colour_volume.3*
%{_mandir}/man3/heif_decoding_options.3*
%{_mandir}/man3/heif_depth_representation_info.3*
%{_mandir}/man3/heif_encoding_options.3*
%{_mandir}/man3/heif_entity_group.3*
%{_mandir}/man3/heif_error.3*
%{_mandir}/man3/heif_image_tiling.3*
%{_mandir}/man3/heif_init_params.3*
%{_mandir}/man3/heif_items.h.3*
%{_mandir}/man3/heif_mastering_display_colour_volume.3*
%{_mandir}/man3/heif_plugin_info.3*
%{_mandir}/man3/heif_reader.3*
%{_mandir}/man3/heif_reader_range_request_result.3*
%{_mandir}/man3/heif_regions.h.3*
%{_mandir}/man3/heif_security_limits.3*
%{_mandir}/man3/heif_writer.3*
%files -n heif-pixbuf-loader
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-heif.so
%changelog
* Thu Nov 21 2024 Simone Caronni <[email protected]> - 1:1.19.3-2
- Update to 1.19.5.
* Tue Nov 12 2024 Simone Caronni <[email protected]> - 1:1.19.3-1
- Update to 1.19.3.
- Fix build on Fedora:
https://github.com/strukturag/libheif/issues/1360#issuecomment-2452007818
- Enable OpenH264 decoding.
- Re-enable OpenJPH (0.18.0).
* Thu Sep 12 2024 Simone Caronni <[email protected]> - 1:1.18.2-3
- Momentarily disable OpenJPH plugin.
* Tue Sep 10 2024 Simone Caronni <[email protected]> - 1:1.18.2-2
- Rebuild for updated depdendencies.
- Adjust snapshot version to recent packaging guidelines.
* Thu Aug 22 2024 Simone Caronni <[email protected]> - 1:1.18.2-1
- Update to 1.18.2.
- Enable VVdec/VVenc/uvg266/OpenJPH plugins.
- Split GTK loader in a separate subpackage.
* Sun Jun 16 2024 Simone Caronni <[email protected]> - 1:1.17.6-3.20240612git77e9adb
- Update to latest snapshot.
- Enable development documentation.
* Tue Jun 04 2024 Simone Caronni <[email protected]> - 1:1.17.6-2.20240525gitf0c1a86
- Update to latest snapshot to fix memory leaks and allow building with SVT-AV1 2.x.
- Adjust plugins and build options, enable SVT-AV1 for aarch64.
* Thu Dec 21 2023 Simone Caronni <[email protected]> - 1:1.17.6-1
- Update to 1.17.6.
* Tue Nov 21 2023 Simone Caronni <[email protected]> - 1:1.17.5-1
- Update to 1.17.5.
* Tue Nov 21 2023 Simone Caronni <[email protected]> - 1:1.17.4-1
- Update to 1.17.4.
* Fri Nov 10 2023 Simone Caronni <[email protected]> - 1:1.17.3-1
- Update to 1.17.3.
* Fri Oct 20 2023 Simone Caronni <[email protected]> - 1:1.17.1-1
- Update to 1.17.1.
* Tue Oct 17 2023 Simone Caronni <[email protected]> - 1:1.17.0-1
- Update to 1.17.0.
- Enable libsharpyuv and all new plugins.
* Fri Jun 02 2023 Simone Caronni <[email protected]> - 1:1.16.2-2
- Rebuild for updated dependencies.
* Tue May 23 2023 Simone Caronni <[email protected]> - 1:1.16.2-1
- Update to 1.16.2.
* Fri May 05 2023 Simone Caronni <[email protected]> - 1:1.16.1-1
- Update to 1.16.1.
* Mon May 01 2023 Simone Caronni <[email protected]> - 1.15.2-1
- Update to 1.15.2.
- Bump Epoch to override Fedora package.
* Tue Mar 14 2023 Simone Caronni <[email protected]> - 1.15.1-2
- Rebuild for updated dependencies.
* Fri Feb 24 2023 Simone Caronni <[email protected]> - 1.15.1-1
- Update to 1.15.1.
* Mon Feb 06 2023 Simone Caronni <[email protected]> - 1.14.2-5.20230203git03158c1
- Update to latest snapshot, drop merged patches.
* Fri Jan 20 2023 Simone Caronni <[email protected]> - 1.14.2-4.20230119git96a114f
- Enable SVT-AV1 encoder.
* Fri Jan 20 2023 Simone Caronni <[email protected]> - 1.14.2-3.20230119git96a114f
- Rebase to latest snapshot, dynamic plugin linking is fixed.
- Temporarily drop SVT encoder plugin.
* Fri Jan 13 2023 Simone Caronni <[email protected]> - 1.14.2-2
- Temporarily disable dynamic plugins due to a bug.
* Thu Jan 12 2023 Simone Caronni <[email protected]> - 1.14.2-1
- First build.