]> git.pld-linux.org Git - packages/openh264.git/blob - openh264.spec
5325a7823311ac7b0bc0890f13b9b5e1eb84228d
[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 Requires:       libstdc++-devel
31
32 %description devel
33 Header files for OpenH264 library.
34
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki OpenH264.
37
38 %package static
39 Summary:        Static OpenH264 library
40 Summary(pl.UTF-8):      Statyczna biblioteka OpenH264
41 Group:          Development/Libraries
42 Requires:       %{name}-devel = %{version}-%{release}
43
44 %description static
45 Static OpenH264 library.
46
47 %description static -l pl.UTF-8
48 Statyczna biblioteka OpenH264.
49
50 %prep
51 %setup -q
52
53 %build
54 %{__make} \
55         CXX="%{__cxx}" \
56         CFLAGS_OPT="%{rpmcxxflags}"
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
61
62 %{__make} install-headers \
63         PREFIX=$RPM_BUILD_ROOT%{_prefix}
64
65 install libopenh264.so libopenh264.a $RPM_BUILD_ROOT%{_libdir}
66 install h264dec h264enc $RPM_BUILD_ROOT%{_bindir}
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
73
74 %files
75 %defattr(644,root,root,755)
76 %doc CONTRIBUTORS LICENSE README.md RELEASES
77 %attr(755,root,root) %{_bindir}/h264dec
78 %attr(755,root,root) %{_bindir}/h264enc
79 %attr(755,root,root) %{_libdir}/libopenh264.so
80
81 %files devel
82 %defattr(644,root,root,755)
83 %{_includedir}/wels
84
85 %files static
86 %defattr(644,root,root,755)
87 %{_libdir}/libopenh264.a
This page took 0.074056 seconds and 3 git commands to generate.