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