]> git.pld-linux.org Git - packages/libheif.git/blame - libheif.spec
- updated to 1.11.0
[packages/libheif.git] / libheif.spec
CommitLineData
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#
7Summary: ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
bd70b210 8Summary(pl.UTF-8): Koder i dekoder formatu plików HEIF zgodnego z ISO/IEC 23008-12:2017
5c936313 9Name: libheif
4d2cff7e 10Version: 1.11.0
582b558f 11Release: 1
bd70b210 12License: LGPL v3+ (library), GPL v3+ (tools)
5c936313 13Group: Libraries
bd70b210 14#Source0Download: https://github.com/strukturag/libheif/releases/
ee4a841d 15Source0: https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz
4d2cff7e
JB
16# Source0-md5: 1927b1507d33eaf2b8714239d9dbbde8
17Patch0: %{name}-gdkpixbuf.patch
5c936313 18URL: https://github.com/strukturag/libheif
9ecd4f4f 19BuildRequires: aom-devel
21ff4bc0 20BuildRequires: autoconf >= 2.68
17ed3222 21BuildRequires: automake >= 1:1.13
4d2cff7e 22BuildRequires: dav1d-devel
21ff4bc0 23BuildRequires: gdk-pixbuf2-devel >= 2.0
5c936313
AM
24BuildRequires: libde265-devel
25BuildRequires: libjpeg-devel
26BuildRequires: libpng-devel
21ff4bc0
JB
27BuildRequires: libstdc++-devel >= 6:4.7
28BuildRequires: libtool >= 2:2
5c936313 29BuildRequires: libx265-devel
9ecd4f4f 30BuildRequires: pkgconfig
4d2cff7e 31%{?with_rav1e:BuildRequires: rav1e-devel}
ee4a841d 32BuildRequires: rpmbuild(macros) >= 1.734
5c936313
AM
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and
37encoder.
38
39HEIF is a new image file format employing HEVC (h.265) image coding
40for the best compression ratios currently possible.
41
42libheif makes use of libde265 for the actual image decoding and x265
43for encoding. Alternative codecs for, e.g., AVC and JPEG can be
44provided as plugins.
45
bd70b210
JB
46%description -l pl.UTF-8
47libheif to koder i dekoder formatu plików HEIF, zgodnego z ISO/IEC
4823008-12:2017.
49
50HEIF to nowy format plików obrazów wykorzystujący kodowanie obrazu
51HEVC (h.265) w celu osiągnięcia najwyższych dostepnych obecnie
52współczynników kompresji.
53
54libheif wykorzystuje libde265 do właściwego procesu dekodowania obrazu
55oraz x265 do kodowania. Alternatywne kodeki do np. AVC czy JPEG mogą
56być dostarczone jako wtyczki.
57
5c936313
AM
58%package devel
59Summary: Header files for libheif
60Summary(de.UTF-8): libheif Headers
5c936313 61Summary(pl.UTF-8): Pliki nagłówkowe libheif
bd70b210 62License: LGPL v3+
5c936313 63Group: Development/Libraries
bd70b210 64Requires: %{name} = %{version}-%{release}
9ecd4f4f 65Requires: aom-devel
4d2cff7e 66Requires: dav1d-devel
bd70b210 67Requires: libde265-devel
21ff4bc0 68Requires: libstdc++-devel >= 6:4.7
bd70b210 69Requires: libx265-devel
4d2cff7e 70%{?with_rav1e:Requires: rav1e-devel}
5c936313
AM
71
72%description devel
73The header files are only needed for development of programs using the
74libheif library.
75
bd70b210
JB
76%description devel -l pl.UTF-8
77Pliki nagłówkowe, potrzebne jedynie do rozwijania oprogramowania
78wykorzystującego bibliotekę libheif.
79
5c936313
AM
80%package static
81Summary: Static libheif library
bd70b210
JB
82Summary(pl.UTF-8): Statyczna biblioteka libheif
83License: LGPL v3+
5c936313 84Group: Development/Libraries
bd70b210 85Requires: %{name}-devel = %{version}-%{release}
5c936313
AM
86
87%description static
88Static libheif library.
89
bd70b210
JB
90%description static -l pl.UTF-8
91Statyczna biblioteka libheif.
92
5c936313
AM
93%package progs
94Summary: libheif utility programs
bd70b210
JB
95Summary(pl.UTF-8): Programy narzędziowe libheif
96License: GPL v3+
5c936313 97Group: Applications/Graphics
bd70b210 98Requires: %{name} = %{version}-%{release}
5c936313
AM
99
100%description progs
101This package contains utility programs to convert HEIF files.
102
bd70b210
JB
103%description progs -l pl.UTF-8
104Ten pakiet zawiera programy narzędziowe do konwersji plików HEIF.
105
21ff4bc0
JB
106%package -n gdk-pixbuf2-loader-heif
107Summary: gdk-pixbuf plugin to handle HEIF files
108Summary(pl.UTF-8): Wtyczka gdk-pixbuf do obsługi plików HEIF
109Group: Libraries
110Requires: %{name} = %{version}-%{release}
111
112%description -n gdk-pixbuf2-loader-heif
113gdk-pixbuf plugin to handle HEIF files.
114
115%description -n gdk-pixbuf2-loader-heif -l pl.UTF-8
116Wtyczka 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
137rm -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
148rm -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
This page took 0.149102 seconds and 4 git commands to generate.