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