]> git.pld-linux.org Git - packages/openh264.git/blob - openh264.spec
e3af2b4d77b530f1158c266df47dc887ec138456
[packages/openh264.git] / openh264.spec
1 # TODO: GMP plugin
2 Summary:        H.264 codec library
3 Summary(pl.UTF-8):      Biblioteka kodeka H.264
4 Name:           openh264
5 Version:        1.1
6 Release:        1
7 License:        BSD
8 Group:          Libraries
9 Source0:        https://github.com/cisco/openh264/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  2dccd64e0359acbaec54f442792bba67
11 URL:            http://www.openh264.org/
12 BuildRequires:  libstdc++-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 OpenH264 is a codec library which supports H.264 encoding and
17 decoding. It is suitable for use in real time applications such as
18 WebRTC.
19
20 %description -l pl.UTF-8
21 OpenH264 to biblioteka kodeka obsługująca kodowanie i dekodowanie
22 H.264. Nadaje się do użycia w aplikacjach czasu rzeczywistego, takich
23 jak WebRTC.
24
25 %package devel
26 Summary:        Header files for OpenH264 library
27 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki OpenH264
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}-%{release}
30
31 %description devel
32 Header files for OpenH264 library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki OpenH264.
36
37 %package static
38 Summary:        Static OpenH264 library
39 Summary(pl.UTF-8):      Statyczna biblioteka OpenH264
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static OpenH264 library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka OpenH264.
48
49 %prep
50 %setup -q
51
52 %build
53 %{__make} \
54         CXX="%{__cxx}" \
55         CFLAGS_OPT="%{rpmcxxflags}"
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
60
61 %{__make} install-headers \
62         PREFIX=$RPM_BUILD_ROOT%{_prefix}
63
64 install libopenh264.so libopenh264.a $RPM_BUILD_ROOT%{_libdir}
65 install h264dec h264enc $RPM_BUILD_ROOT%{_bindir}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post   -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
72
73 %files
74 %defattr(644,root,root,755)
75 %doc CONTRIBUTORS LICENSE README.md RELEASES
76 %attr(755,root,root) %{_bindir}/h264dec
77 %attr(755,root,root) %{_bindir}/h264enc
78 %attr(755,root,root) %{_libdir}/libopenh264.so
79
80 %files devel
81 %defattr(644,root,root,755)
82 %{_includedir}/wels
83
84 %files static
85 %defattr(644,root,root,755)
86 %{_libdir}/libopenh264.a
This page took 0.038319 seconds and 3 git commands to generate.