]> git.pld-linux.org Git - packages/x265.git/blame - x265.spec
- removed outdated bitbucket URL
[packages/x265.git] / x265.spec
CommitLineData
5afc8bc2 1# TODO: vmaf
6277aac6
ER
2#
3# Conditional build:
4%bcond_without asm # x86 assembler
e745f1cd 5%bcond_with vmaf # VMAF support [not ready for vmaf-1.3.x as of x265 3.2]
6277aac6 6
c14ed13e 7%ifnarch %{ix86} %{x8664} x32
6277aac6
ER
8%undefine with_asm
9%endif
10
bf255eb2
JB
11Summary: H.265/HEVC video encoder
12Summary(pl.UTF-8): Koder obrazu H.265/HEVC
13Name: x265
4264b299 14Version: 3.2.1
c1aa5841 15Release: 1
bf255eb2
JB
16License: GPL v2+
17Group: Libraries
94469a9d 18Source0: https://download.videolan.org/videolan/x265/%{name}_%{version}.tar.gz
4264b299 19# Source0-md5: 94808045a34d88a857e5eaf3f68f4bca
bf255eb2 20Patch0: %{name}-opt.patch
c14ed13e 21Patch1: %{name}-x32.patch
bf255eb2 22URL: http://x265.org/
a827c98f
JB
23BuildRequires: cmake >= 2.8.11
24BuildRequires: libstdc++-devel >= 6:4.8
25BuildRequires: numactl-devel >= 2
a3d10030 26BuildRequires: rpmbuild(macros) >= 1.605
5afc8bc2
JB
27%{?with_asm:BuildRequires: nasm >= 2.13.0}
28%{?with_vmaf:BuildRequires: vmaf-devel}
bf255eb2
JB
29Requires: libx265 = %{version}-%{release}
30# see CMakeLists.txt, more is probably possible
ccce3682 31ExclusiveArch: %{ix86} %{x8664} x32 %{arm} ppc64 ppc64le aarch64
a3d10030
JB
32# needs 64-bit atomic compare and swap
33ExcludeArch: i386 i486
bf255eb2
JB
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37H.265/HEVC video encoder.
38
39%description -l pl.UTF-8
40Koder obrazu H.265/HEVC.
41
42%package -n libx265
43Summary: H.265/HEVC video encoder library
44Summary(pl.UTF-8): Biblioteka kodowania obrazu H.265/HEVC
45Group: Libraries
46
47%description -n libx265
48H.265/HEVC video encoder library.
49
50%description -n libx265 -l pl.UTF-8
51Biblioteka kodowania obrazu H.265/HEVC.
52
53%package -n libx265-devel
54Summary: Header files for x265 library
55Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x265
56Group: Development/Libraries
a827c98f 57Requires: libstdc++-devel >= 6:4.8
bf255eb2 58Requires: libx265 = %{version}-%{release}
a827c98f 59Requires: numactl-devel >= 2
bf255eb2
JB
60
61%description -n libx265-devel
62Header files for x265 library.
63
64%description -n libx265-devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki x265.
66
67%package -n libx265-static
68Summary: Static x265 library
69Summary(pl.UTF-8): Statyczna biblioteka x265
70Group: Development/Libraries
528852c9 71Requires: libx265-devel = %{version}-%{release}
bf255eb2
JB
72
73%description -n libx265-static
74Static x265 library.
75
76%description -n libx265-static -l pl.UTF-8
77Statyczna biblioteka x265.
78
79%prep
5afc8bc2 80%setup -q -n %{name}_%{version}
bf255eb2 81%patch0 -p1
c14ed13e 82%patch1 -p1
bf255eb2
JB
83
84%build
7b548267
JB
85install -d source/build
86cd source/build
87%cmake .. \
6277aac6 88 -DENABLE_ASSEMBLY=%{!?with_asm:OFF}%{?with_asm:ON} \
a827c98f 89 -DENABLE_HDR10_PLUS=ON \
5afc8bc2 90 %{?with_vmaf:-DENABLE_LIBVMAF=ON} \
a827c98f 91 -DENABLE_SHARED=ON \
7b548267
JB
92 -DLIB_INSTALL_DIR=%{_lib}
93
bf255eb2
JB
94%{__make}
95
96%install
97rm -rf $RPM_BUILD_ROOT
94469a9d 98
7b548267 99%{__make} -C source/build install \
bf255eb2
JB
100 DESTDIR=$RPM_BUILD_ROOT
101
102%clean
103rm -rf $RPM_BUILD_ROOT
104
105%post -n libx265 -p /sbin/ldconfig
106%postun -n libx265 -p /sbin/ldconfig
107
108%files
109%defattr(644,root,root,755)
110%doc doc/reST/cli.rst
111%attr(755,root,root) %{_bindir}/x265
112
113%files -n libx265
114%defattr(644,root,root,755)
115%doc doc/reST/introduction.rst
e745f1cd 116%attr(755,root,root) %{_libdir}/libx265.so.179
a827c98f 117%attr(755,root,root) %{_libdir}/libhdr10plus.so
bf255eb2
JB
118
119%files -n libx265-devel
120%defattr(644,root,root,755)
121%attr(755,root,root) %{_libdir}/libx265.so
a827c98f 122%{_includedir}/hdr10plus.h
bf255eb2
JB
123%{_includedir}/x265.h
124%{_includedir}/x265_config.h
125%{_pkgconfigdir}/x265.pc
126
127%files -n libx265-static
128%defattr(644,root,root,755)
a827c98f 129%{_libdir}/libhdr10plus.a
bf255eb2 130%{_libdir}/libx265.a
This page took 0.15348 seconds and 4 git commands to generate.