]>
Commit | Line | Data |
---|---|---|
bd70b210 | 1 | # |
5c936313 AM |
2 | # Conditional build: |
3 | %bcond_without tests # don't perform "make check" | |
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 |
ee4a841d | 8 | Version: 1.3.2 |
bd70b210 JB |
9 | Release: 3 |
10 | License: LGPL v3+ (library), GPL v3+ (tools) | |
5c936313 | 11 | Group: Libraries |
bd70b210 | 12 | #Source0Download: https://github.com/strukturag/libheif/releases/ |
ee4a841d AM |
13 | Source0: https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 634b0d33db07c85eea2f56c1d8cb87b1 | |
bd70b210 | 15 | Patch0: %{name}-pc.patch |
5c936313 AM |
16 | URL: https://github.com/strukturag/libheif |
17 | BuildRequires: libde265-devel | |
18 | BuildRequires: libjpeg-devel | |
19 | BuildRequires: libpng-devel | |
bd70b210 | 20 | BuildRequires: libstdc++-devel |
5c936313 | 21 | BuildRequires: libx265-devel |
ee4a841d | 22 | BuildRequires: rpmbuild(macros) >= 1.734 |
5c936313 AM |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and | |
27 | encoder. | |
28 | ||
29 | HEIF is a new image file format employing HEVC (h.265) image coding | |
30 | for the best compression ratios currently possible. | |
31 | ||
32 | libheif makes use of libde265 for the actual image decoding and x265 | |
33 | for encoding. Alternative codecs for, e.g., AVC and JPEG can be | |
34 | provided as plugins. | |
35 | ||
bd70b210 JB |
36 | %description -l pl.UTF-8 |
37 | libheif to koder i dekoder formatu plików HEIF, zgodnego z ISO/IEC | |
38 | 23008-12:2017. | |
39 | ||
40 | HEIF to nowy format plików obrazów wykorzystujący kodowanie obrazu | |
41 | HEVC (h.265) w celu osiągnięcia najwyższych dostepnych obecnie | |
42 | współczynników kompresji. | |
43 | ||
44 | libheif wykorzystuje libde265 do właściwego procesu dekodowania obrazu | |
45 | oraz x265 do kodowania. Alternatywne kodeki do np. AVC czy JPEG mogą | |
46 | być dostarczone jako wtyczki. | |
47 | ||
5c936313 AM |
48 | %package devel |
49 | Summary: Header files for libheif | |
50 | Summary(de.UTF-8): libheif Headers | |
5c936313 | 51 | Summary(pl.UTF-8): Pliki nagłówkowe libheif |
bd70b210 | 52 | License: LGPL v3+ |
5c936313 | 53 | Group: Development/Libraries |
bd70b210 JB |
54 | Requires: %{name} = %{version}-%{release} |
55 | Requires: libde265-devel | |
56 | Requires: libstdc++-devel | |
57 | Requires: libx265-devel | |
5c936313 AM |
58 | |
59 | %description devel | |
60 | The header files are only needed for development of programs using the | |
61 | libheif library. | |
62 | ||
bd70b210 JB |
63 | %description devel -l pl.UTF-8 |
64 | Pliki nagłówkowe, potrzebne jedynie do rozwijania oprogramowania | |
65 | wykorzystującego bibliotekę libheif. | |
66 | ||
5c936313 AM |
67 | %package static |
68 | Summary: Static libheif library | |
bd70b210 JB |
69 | Summary(pl.UTF-8): Statyczna biblioteka libheif |
70 | License: LGPL v3+ | |
5c936313 | 71 | Group: Development/Libraries |
bd70b210 | 72 | Requires: %{name}-devel = %{version}-%{release} |
5c936313 AM |
73 | |
74 | %description static | |
75 | Static libheif library. | |
76 | ||
bd70b210 JB |
77 | %description static -l pl.UTF-8 |
78 | Statyczna biblioteka libheif. | |
79 | ||
5c936313 AM |
80 | %package progs |
81 | Summary: libheif utility programs | |
bd70b210 JB |
82 | Summary(pl.UTF-8): Programy narzędziowe libheif |
83 | License: GPL v3+ | |
5c936313 | 84 | Group: Applications/Graphics |
bd70b210 | 85 | Requires: %{name} = %{version}-%{release} |
5c936313 AM |
86 | |
87 | %description progs | |
88 | This package contains utility programs to convert HEIF files. | |
89 | ||
bd70b210 JB |
90 | %description progs -l pl.UTF-8 |
91 | Ten pakiet zawiera programy narzędziowe do konwersji plików HEIF. | |
92 | ||
5c936313 AM |
93 | %prep |
94 | %setup -q | |
bd70b210 | 95 | %patch0 -p1 |
5c936313 AM |
96 | |
97 | %build | |
98 | %configure | |
99 | %{__make} | |
100 | ||
101 | %{?with_tests:%{__make} check} | |
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
108 | ||
bd70b210 JB |
109 | # obsoleted by pkg-config |
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libheif.la | |
111 | ||
5c936313 AM |
112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post -p /sbin/ldconfig | |
116 | %postun -p /sbin/ldconfig | |
117 | ||
118 | %files | |
119 | %defattr(644,root,root,755) | |
120 | %doc README.md | |
bd70b210 | 121 | %attr(755,root,root) %{_libdir}/libheif.so.*.*.* |
5c936313 AM |
122 | %attr(755,root,root) %ghost %{_libdir}/libheif.so.1 |
123 | ||
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/libheif.so | |
127 | %{_includedir}/libheif | |
128 | %{_pkgconfigdir}/libheif.pc | |
5c936313 AM |
129 | |
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libheif.a | |
133 | ||
134 | %files progs | |
135 | %defattr(644,root,root,755) | |
136 | %attr(755,root,root) %{_bindir}/heif-convert | |
137 | %attr(755,root,root) %{_bindir}/heif-enc | |
138 | %attr(755,root,root) %{_bindir}/heif-info | |
ee4a841d AM |
139 | %attr(755,root,root) %{_bindir}/heif-thumbnailer |
140 | %{_datadir}/mime/packages/heif.xml | |
141 | %{_datadir}/thumbnailers/heif.thumbnailer |