/
x265.spec
65 lines (50 loc) · 1.33 KB
/
x265.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Summary: Open Source H265/HEVC video encoder
Name: x265
Version: 1.9
Release: 1
License: GPL v2
Group: Libraries
Source0: https://bitbucket.org/multicoreware/x265/downloads/x265_%{version}.tar.gz
BuildRequires: cmake
BuildRequires: yasm
Requires: libx265 = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%package -n libx265
Summary: x265 library
Group: Libraries
%description -n libx265
x265 library.
%package -n x265-devel
Summary: Header files for x265 library
Group: Development/Libraries
Requires: libx265 = %{version}-%{release}
%description -n x265-devel
This is the package containing the header files for x265 library.
%prep
%setup -qn %{name}_%{version}
%build
cd build/linux
%cmake ../../source
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} -C build/linux install \
DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libx265 -p /sbin/ldconfig
%postun -n libx265 -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/x265
%files -n libx265
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libx265.so.*
%attr(644,root,root) %{_libdir}/libx265.a
%files -n x265-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libx265.so
%attr(644,root,root) %{_libdir}/libx265.a
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc