]> git.pld-linux.org Git - packages/x265.git/blame - x265.spec
- updated to 2.1 (note: new soname)
[packages/x265.git] / x265.spec
CommitLineData
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
9Summary: H.265/HEVC video encoder
10Summary(pl.UTF-8): Koder obrazu H.265/HEVC
11Name: x265
dcd66c33 12Version: 2.1
29378b74 13Release: 1
bf255eb2
JB
14License: GPL v2+
15Group: Libraries
52bf8e69 16# Source0Download: https://bitbucket.org/multicoreware/x265/downloads
29378b74 17Source0: http://ftp.videolan.org/pub/videolan/x265/%{name}_%{version}.tar.gz
dcd66c33 18# Source0-md5: 2d9cb183d2675dfb325abdedd2424bfa
bf255eb2 19Patch0: %{name}-opt.patch
c14ed13e 20Patch1: %{name}-x32.patch
bf255eb2
JB
21URL: http://x265.org/
22BuildRequires: cmake >= 2.8.8
23BuildRequires: libstdc++-devel
b240e319 24BuildRequires: numactl-devel
a3d10030 25BuildRequires: rpmbuild(macros) >= 1.605
6277aac6 26%{?with_asm:BuildRequires: yasm >= 1.2.0}
bf255eb2
JB
27Requires: libx265 = %{version}-%{release}
28# see CMakeLists.txt, more is probably possible
26e99422 29ExclusiveArch: %{ix86} %{x8664} x32 arm
a3d10030
JB
30# needs 64-bit atomic compare and swap
31ExcludeArch: i386 i486
bf255eb2
JB
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35H.265/HEVC video encoder.
36
37%description -l pl.UTF-8
38Koder obrazu H.265/HEVC.
39
40%package -n libx265
41Summary: H.265/HEVC video encoder library
42Summary(pl.UTF-8): Biblioteka kodowania obrazu H.265/HEVC
43Group: Libraries
44
45%description -n libx265
46H.265/HEVC video encoder library.
47
48%description -n libx265 -l pl.UTF-8
49Biblioteka kodowania obrazu H.265/HEVC.
50
51%package -n libx265-devel
52Summary: Header files for x265 library
53Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x265
54Group: Development/Libraries
55Requires: libstdc++-devel
56Requires: libx265 = %{version}-%{release}
57
58%description -n libx265-devel
59Header files for x265 library.
60
61%description -n libx265-devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki x265.
63
64%package -n libx265-static
65Summary: Static x265 library
66Summary(pl.UTF-8): Statyczna biblioteka x265
67Group: Development/Libraries
528852c9 68Requires: libx265-devel = %{version}-%{release}
bf255eb2
JB
69
70%description -n libx265-static
71Static x265 library.
72
73%description -n libx265-static -l pl.UTF-8
74Statyczna 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
82install -d source/build
83cd 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
91rm -rf $RPM_BUILD_ROOT
7b548267 92%{__make} -C source/build install \
bf255eb2
JB
93 DESTDIR=$RPM_BUILD_ROOT
94
95%clean
96rm -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
This page took 0.070826 seconds and 4 git commands to generate.