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