]>
Commit | Line | Data |
---|---|---|
6277aac6 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without asm # x86 assembler | |
4 | ||
c14ed13e | 5 | %ifnarch %{ix86} %{x8664} x32 |
6277aac6 ER |
6 | %undefine with_asm |
7 | %endif | |
8 | ||
bf255eb2 JB |
9 | Summary: H.265/HEVC video encoder |
10 | Summary(pl.UTF-8): Koder obrazu H.265/HEVC | |
11 | Name: x265 | |
dcd66c33 | 12 | Version: 2.1 |
29378b74 | 13 | Release: 1 |
bf255eb2 JB |
14 | License: GPL v2+ |
15 | Group: Libraries | |
52bf8e69 | 16 | # Source0Download: https://bitbucket.org/multicoreware/x265/downloads |
29378b74 | 17 | Source0: http://ftp.videolan.org/pub/videolan/x265/%{name}_%{version}.tar.gz |
dcd66c33 | 18 | # Source0-md5: 2d9cb183d2675dfb325abdedd2424bfa |
bf255eb2 | 19 | Patch0: %{name}-opt.patch |
c14ed13e | 20 | Patch1: %{name}-x32.patch |
bf255eb2 JB |
21 | URL: http://x265.org/ |
22 | BuildRequires: cmake >= 2.8.8 | |
23 | BuildRequires: libstdc++-devel | |
b240e319 | 24 | BuildRequires: numactl-devel |
a3d10030 | 25 | BuildRequires: rpmbuild(macros) >= 1.605 |
6277aac6 | 26 | %{?with_asm:BuildRequires: yasm >= 1.2.0} |
bf255eb2 JB |
27 | Requires: libx265 = %{version}-%{release} |
28 | # see CMakeLists.txt, more is probably possible | |
26e99422 | 29 | ExclusiveArch: %{ix86} %{x8664} x32 arm |
a3d10030 JB |
30 | # needs 64-bit atomic compare and swap |
31 | ExcludeArch: i386 i486 | |
bf255eb2 JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | H.265/HEVC video encoder. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Koder obrazu H.265/HEVC. | |
39 | ||
40 | %package -n libx265 | |
41 | Summary: H.265/HEVC video encoder library | |
42 | Summary(pl.UTF-8): Biblioteka kodowania obrazu H.265/HEVC | |
43 | Group: Libraries | |
44 | ||
45 | %description -n libx265 | |
46 | H.265/HEVC video encoder library. | |
47 | ||
48 | %description -n libx265 -l pl.UTF-8 | |
49 | Biblioteka kodowania obrazu H.265/HEVC. | |
50 | ||
51 | %package -n libx265-devel | |
52 | Summary: Header files for x265 library | |
53 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x265 | |
54 | Group: Development/Libraries | |
55 | Requires: libstdc++-devel | |
56 | Requires: libx265 = %{version}-%{release} | |
57 | ||
58 | %description -n libx265-devel | |
59 | Header files for x265 library. | |
60 | ||
61 | %description -n libx265-devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki x265. | |
63 | ||
64 | %package -n libx265-static | |
65 | Summary: Static x265 library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka x265 | |
67 | Group: Development/Libraries | |
528852c9 | 68 | Requires: libx265-devel = %{version}-%{release} |
bf255eb2 JB |
69 | |
70 | %description -n libx265-static | |
71 | Static x265 library. | |
72 | ||
73 | %description -n libx265-static -l pl.UTF-8 | |
74 | Statyczna biblioteka x265. | |
75 | ||
76 | %prep | |
29378b74 | 77 | %setup -q -n %{name}_%{version} |
bf255eb2 | 78 | %patch0 -p1 |
c14ed13e | 79 | %patch1 -p1 |
bf255eb2 JB |
80 | |
81 | %build | |
7b548267 JB |
82 | install -d source/build |
83 | cd source/build | |
84 | %cmake .. \ | |
6277aac6 | 85 | -DENABLE_ASSEMBLY=%{!?with_asm:OFF}%{?with_asm:ON} \ |
7b548267 JB |
86 | -DLIB_INSTALL_DIR=%{_lib} |
87 | ||
bf255eb2 JB |
88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
7b548267 | 92 | %{__make} -C source/build install \ |
bf255eb2 JB |
93 | DESTDIR=$RPM_BUILD_ROOT |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -n libx265 -p /sbin/ldconfig | |
99 | %postun -n libx265 -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %doc doc/reST/cli.rst | |
104 | %attr(755,root,root) %{_bindir}/x265 | |
105 | ||
106 | %files -n libx265 | |
107 | %defattr(644,root,root,755) | |
108 | %doc doc/reST/introduction.rst | |
dcd66c33 | 109 | %attr(755,root,root) %{_libdir}/libx265.so.95 |
bf255eb2 JB |
110 | |
111 | %files -n libx265-devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libx265.so | |
114 | %{_includedir}/x265.h | |
115 | %{_includedir}/x265_config.h | |
116 | %{_pkgconfigdir}/x265.pc | |
117 | ||
118 | %files -n libx265-static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libx265.a |