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