]>
Commit | Line | Data |
---|---|---|
bd70b210 | 1 | # |
5c936313 | 2 | # Conditional build: |
4d2cff7e | 3 | %bcond_with golang # Go examples |
097d4e58 | 4 | %bcond_without tests # don't perform "make check" |
4d2cff7e | 5 | %bcond_without rav1e # rav1e encoder |
5c936313 | 6 | # |
6b874e2f JB |
7 | %ifnarch %{ix86} %{x8664} aarch64 |
8 | %undefine with_rav1e | |
9 | %endif | |
5c936313 | 10 | Summary: ISO/IEC 23008-12:2017 HEIF file format decoder and encoder |
bd70b210 | 11 | Summary(pl.UTF-8): Koder i dekoder formatu plików HEIF zgodnego z ISO/IEC 23008-12:2017 |
5c936313 | 12 | Name: libheif |
9e922b59 | 13 | Version: 1.12.0 |
f1d28cc9 | 14 | Release: 2 |
bd70b210 | 15 | License: LGPL v3+ (library), GPL v3+ (tools) |
5c936313 | 16 | Group: Libraries |
bd70b210 | 17 | #Source0Download: https://github.com/strukturag/libheif/releases/ |
ee4a841d | 18 | Source0: https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz |
9e922b59 | 19 | # Source0-md5: f6dd5c4fe0efb8598eb63df71213d58b |
4d2cff7e | 20 | Patch0: %{name}-gdkpixbuf.patch |
5c936313 | 21 | URL: https://github.com/strukturag/libheif |
9ecd4f4f | 22 | BuildRequires: aom-devel |
21ff4bc0 | 23 | BuildRequires: autoconf >= 2.68 |
17ed3222 | 24 | BuildRequires: automake >= 1:1.13 |
4d2cff7e | 25 | BuildRequires: dav1d-devel |
21ff4bc0 | 26 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
5c936313 AM |
27 | BuildRequires: libde265-devel |
28 | BuildRequires: libjpeg-devel | |
29 | BuildRequires: libpng-devel | |
21ff4bc0 JB |
30 | BuildRequires: libstdc++-devel >= 6:4.7 |
31 | BuildRequires: libtool >= 2:2 | |
5c936313 | 32 | BuildRequires: libx265-devel |
9ecd4f4f | 33 | BuildRequires: pkgconfig |
4d2cff7e | 34 | %{?with_rav1e:BuildRequires: rav1e-devel} |
ee4a841d | 35 | BuildRequires: rpmbuild(macros) >= 1.734 |
5c936313 AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and | |
40 | encoder. | |
41 | ||
42 | HEIF is a new image file format employing HEVC (h.265) image coding | |
43 | for the best compression ratios currently possible. | |
44 | ||
45 | libheif makes use of libde265 for the actual image decoding and x265 | |
46 | for encoding. Alternative codecs for, e.g., AVC and JPEG can be | |
47 | provided as plugins. | |
48 | ||
bd70b210 JB |
49 | %description -l pl.UTF-8 |
50 | libheif to koder i dekoder formatu plików HEIF, zgodnego z ISO/IEC | |
51 | 23008-12:2017. | |
52 | ||
53 | HEIF to nowy format plików obrazów wykorzystujący kodowanie obrazu | |
54 | HEVC (h.265) w celu osiągnięcia najwyższych dostepnych obecnie | |
55 | współczynników kompresji. | |
56 | ||
57 | libheif wykorzystuje libde265 do właściwego procesu dekodowania obrazu | |
58 | oraz x265 do kodowania. Alternatywne kodeki do np. AVC czy JPEG mogą | |
59 | być dostarczone jako wtyczki. | |
60 | ||
5c936313 AM |
61 | %package devel |
62 | Summary: Header files for libheif | |
63 | Summary(de.UTF-8): libheif Headers | |
5c936313 | 64 | Summary(pl.UTF-8): Pliki nagłówkowe libheif |
bd70b210 | 65 | License: LGPL v3+ |
5c936313 | 66 | Group: Development/Libraries |
bd70b210 | 67 | Requires: %{name} = %{version}-%{release} |
9ecd4f4f | 68 | Requires: aom-devel |
4d2cff7e | 69 | Requires: dav1d-devel |
bd70b210 | 70 | Requires: libde265-devel |
21ff4bc0 | 71 | Requires: libstdc++-devel >= 6:4.7 |
bd70b210 | 72 | Requires: libx265-devel |
4d2cff7e | 73 | %{?with_rav1e:Requires: rav1e-devel} |
5c936313 AM |
74 | |
75 | %description devel | |
76 | The header files are only needed for development of programs using the | |
77 | libheif library. | |
78 | ||
bd70b210 JB |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe, potrzebne jedynie do rozwijania oprogramowania | |
81 | wykorzystującego bibliotekę libheif. | |
82 | ||
5c936313 AM |
83 | %package static |
84 | Summary: Static libheif library | |
bd70b210 JB |
85 | Summary(pl.UTF-8): Statyczna biblioteka libheif |
86 | License: LGPL v3+ | |
5c936313 | 87 | Group: Development/Libraries |
bd70b210 | 88 | Requires: %{name}-devel = %{version}-%{release} |
5c936313 AM |
89 | |
90 | %description static | |
91 | Static libheif library. | |
92 | ||
bd70b210 JB |
93 | %description static -l pl.UTF-8 |
94 | Statyczna biblioteka libheif. | |
95 | ||
5c936313 AM |
96 | %package progs |
97 | Summary: libheif utility programs | |
bd70b210 JB |
98 | Summary(pl.UTF-8): Programy narzędziowe libheif |
99 | License: GPL v3+ | |
5c936313 | 100 | Group: Applications/Graphics |
bd70b210 | 101 | Requires: %{name} = %{version}-%{release} |
5c936313 AM |
102 | |
103 | %description progs | |
104 | This package contains utility programs to convert HEIF files. | |
105 | ||
bd70b210 JB |
106 | %description progs -l pl.UTF-8 |
107 | Ten pakiet zawiera programy narzędziowe do konwersji plików HEIF. | |
108 | ||
21ff4bc0 JB |
109 | %package -n gdk-pixbuf2-loader-heif |
110 | Summary: gdk-pixbuf plugin to handle HEIF files | |
111 | Summary(pl.UTF-8): Wtyczka gdk-pixbuf do obsługi plików HEIF | |
112 | Group: Libraries | |
113 | Requires: %{name} = %{version}-%{release} | |
114 | ||
115 | %description -n gdk-pixbuf2-loader-heif | |
116 | gdk-pixbuf plugin to handle HEIF files. | |
117 | ||
118 | %description -n gdk-pixbuf2-loader-heif -l pl.UTF-8 | |
119 | Wtyczka gdk-pixbuf do obsługi plików HEIF. | |
120 | ||
5c936313 AM |
121 | %prep |
122 | %setup -q | |
bd70b210 | 123 | %patch0 -p1 |
5c936313 AM |
124 | |
125 | %build | |
21ff4bc0 JB |
126 | %{__libtoolize} |
127 | %{__aclocal} -I m4 | |
128 | %{__autoconf} | |
129 | %{__autoheader} | |
130 | %{__automake} | |
73036a41 | 131 | %configure \ |
4d2cff7e JB |
132 | %{!?with_golang:--disable-go} \ |
133 | %{!?with_rav1e:--disable-rav1e} | |
73036a41 | 134 | |
5c936313 AM |
135 | %{__make} |
136 | ||
137 | %{?with_tests:%{__make} check} | |
138 | ||
139 | %install | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %{__make} install \ | |
143 | DESTDIR=$RPM_BUILD_ROOT | |
144 | ||
21ff4bc0 JB |
145 | # module loaded via gmodule |
146 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.*/loaders/*.la | |
bd70b210 JB |
147 | # obsoleted by pkg-config |
148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libheif.la | |
149 | ||
5c936313 AM |
150 | %clean |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %post -p /sbin/ldconfig | |
154 | %postun -p /sbin/ldconfig | |
155 | ||
156 | %files | |
157 | %defattr(644,root,root,755) | |
158 | %doc README.md | |
bd70b210 | 159 | %attr(755,root,root) %{_libdir}/libheif.so.*.*.* |
5c936313 AM |
160 | %attr(755,root,root) %ghost %{_libdir}/libheif.so.1 |
161 | ||
162 | %files devel | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_libdir}/libheif.so | |
165 | %{_includedir}/libheif | |
166 | %{_pkgconfigdir}/libheif.pc | |
5c936313 AM |
167 | |
168 | %files static | |
169 | %defattr(644,root,root,755) | |
170 | %{_libdir}/libheif.a | |
171 | ||
172 | %files progs | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_bindir}/heif-convert | |
175 | %attr(755,root,root) %{_bindir}/heif-enc | |
176 | %attr(755,root,root) %{_bindir}/heif-info | |
ee4a841d | 177 | %attr(755,root,root) %{_bindir}/heif-thumbnailer |
9ecd4f4f | 178 | %{_datadir}/mime/packages/avif.xml |
ee4a841d AM |
179 | %{_datadir}/mime/packages/heif.xml |
180 | %{_datadir}/thumbnailers/heif.thumbnailer | |
582b558f JB |
181 | %{_mandir}/man1/heif-convert.1* |
182 | %{_mandir}/man1/heif-enc.1* | |
183 | %{_mandir}/man1/heif-info.1* | |
184 | %{_mandir}/man1/heif-thumbnailer.1* | |
21ff4bc0 JB |
185 | |
186 | %files -n gdk-pixbuf2-loader-heif | |
187 | %defattr(644,root,root,755) | |
188 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/2.*/loaders/libpixbufloader-heif.so |