]> git.pld-linux.org Git - packages/libde265.git/blob - libde265.spec
- updated to 1.0.12 (fixes CVE-2023-27102 CVE-2023-27103)
[packages/libde265.git] / libde265.spec
1 #
2 # Conditional build:
3 %bcond_without  qt              # Qt based visual inspection GUI (sherlock265)
4 %bcond_without  static_libs     # don't build static libraries
5 #
6 Summary:        H.265/HEVC video decoder
7 Summary(pl.UTF-8):      Dekoder obrazu H.265/HEVC
8 Name:           libde265
9 Version:        1.0.12
10 Release:        1
11 License:        LGPL v3+ (library), GPL v3+ (programs)
12 Group:          Libraries
13 #Source0Download: https://github.com/strukturag/libde265/releases/
14 Source0:        https://github.com/strukturag/libde265/releases/download/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5:  b4abfb8a1c38c1270afae91bc96e661d
16 URL:            https://www.libde265.org/
17 BuildRequires:  SDL-devel
18 BuildRequires:  autoconf >= 2.68
19 BuildRequires:  automake
20 # libswscale
21 BuildRequires:  ffmpeg-devel
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  libtool >= 2:2
24 BuildRequires:  libvideogfx-devel
25 BuildRequires:  pkgconfig
26 %if %{with qt}
27 BuildRequires:  Qt5Core-devel >= 5
28 BuildRequires:  Qt5Gui-devel >= 5
29 BuildRequires:  Qt5Widgets-devel >= 5
30 BuildRequires:  qt5-build >= 5
31 %endif
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 libde265 is an open source implementation of the H.265 video codec. It
36 is written from scratch and has a plain C API to enable a simple
37 integration into other software.
38
39 %description -l pl.UTF-8
40 libde265 to mająca otwarte źródła implementacja kodeka obrazu H.265.
41 Została napisana od zera i ma API w czystym C, pozwalające na prostą
42 integrację w innym oprogramowaniu.
43
44 %package tools
45 Summary:        Encoding and decoding tools for libde265 library
46 Summary(pl.UTF-8):      Narzędzia kodujące i dekodujące dla biblioteki libde265
47 License:        LGPL v3+ (library), GPL v3+ (programs)
48 Group:          Applications/Graphics
49 Requires:       %{name} = %{version}-%{release}
50
51 %description tools
52 Encoding and decoding tools for libde265 library.
53
54 %description tools -l pl.UTF-8
55 Narzędzia kodujące i dekodujące dla biblioteki libde265.
56
57 %package gui
58 Summary:        Visual inspection tool (sherlock265) for libde265 library
59 Summary(pl.UTF-8):      Narzędzie do wizualnego badania (sherlock265) dla biblioteki libde265
60 Group:          X11/Applications/Graphics
61 Requires:       %{name} = %{version}-%{release}
62
63 %description gui
64 Visual inspection tool (sherlock265) for libde265 library.
65
66 %description gui -l pl.UTF-8
67 Narzędzie do wizualnego badania (sherlock265) dla biblioteki libde265.
68
69 %package devel
70 Summary:        Header files for libde265 library
71 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libde265
72 License:        LGPL v3+
73 Group:          Development/Libraries
74 Requires:       %{name} = %{version}-%{release}
75 Requires:       libstdc++-devel
76
77 %description devel
78 Header files for libde265 library.
79
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe biblioteki libde265.
82
83 %package static
84 Summary:        Static libde265 library
85 Summary(pl.UTF-8):      Statyczna biblioteka libde265
86 License:        LGPL v3+
87 Group:          Development/Libraries
88 Requires:       %{name}-devel = %{version}-%{release}
89
90 %description static
91 Static libde265 library.
92
93 %description static -l pl.UTF-8
94 Statyczna biblioteka libde265.
95
96 %prep
97 %setup -q
98
99 %build
100 %{__libtoolize}
101 %{__aclocal} -I m4
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure \
106         --enable-encoder \
107         %{!?with_qt:--disable-sherlock265} \
108         %{!?with_static_libs:--disable-static}
109 %{__make}
110
111 %install
112 rm -rf $RPM_BUILD_ROOT
113
114 %{__make} install \
115         DESTDIR=$RPM_BUILD_ROOT
116
117 # examples
118 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{bjoentegaard,block-rate-estim,gen-enc-table,hdrcopy,rd-curves,tests,yuv-distortion}
119
120 # obsoleted by pkg-config
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %post   -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
128
129 %files
130 %defattr(644,root,root,755)
131 %doc AUTHORS NEWS README.md
132 %attr(755,root,root) %{_libdir}/libde265.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libde265.so.0
134
135 %files tools
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/acceleration_speed
138 # R: SDL libvideogfx
139 %attr(755,root,root) %{_bindir}/dec265
140 # R: (only base)
141 %attr(755,root,root) %{_bindir}/enc265
142
143 %if %{with qt}
144 %files gui
145 %defattr(644,root,root,755)
146 %doc sherlock265/README
147 # R: Qt5 (Core Gui Widgets) ffmpeg/libswscale
148 %attr(755,root,root) %{_bindir}/sherlock265
149 %endif
150
151 %files devel
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/libde265.so
154 %{_includedir}/libde265
155 %{_pkgconfigdir}/libde265.pc
156
157 %if %{with static_libs}
158 %files static
159 %defattr(644,root,root,755)
160 %{_libdir}/libde265.a
161 %endif
This page took 0.11477 seconds and 4 git commands to generate.