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