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