4 Summary: H264 encoder library
5 Summary(pl.UTF-8): Biblioteka kodująca H264
8 Release: 1.%{snap}_%{snaph}.%{rel}
11 # unofficial, debianized/libtoolized packaging:
12 #Source0: http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
13 # but it's too old, so use snapshots...
14 Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
15 # Source0-md5: 38c331e76ab11517261522a60da8dd31
16 Patch0: %{name}-alpha.patch
17 Patch1: %{name}-syms.patch
18 URL: http://www.videolan.org/developers/x264.html
19 BuildRequires: pkgconfig
20 %ifarch %{ix86} %{x8664}
21 BuildRequires: yasm >= 0.6.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 # encoder/macroblock.c breaks strict-aliasing rules
26 %define specflags -fno-strict-aliasing
29 libx264 library for encoding H264 video format.
31 %description -l pl.UTF-8
32 Biblioteka libx264 do kodowania w formacie obrazu H264.
35 Summary: Header files for x264 library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header files for x264 library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki x264.
47 Summary: Static x264 library
48 Summary(pl.UTF-8): Statyczna biblioteka x264
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
55 %description static -l pl.UTF-8
56 Statyczna biblioteka x264.
59 %setup -q -n x264-snapshot-%{snap}-%{snaph}
62 sed -i 's:-O4::g' configure
68 --exec-prefix=%{_prefix} \
70 --includedir=%{_includedir} \
72 --extra-cflags="%{rpmcflags}" \
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_bindir}/x264
94 %attr(755,root,root) %{_libdir}/libx264.so.[0-9][0-9]
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libx264.so
100 %{_pkgconfigdir}/x264.pc
103 %defattr(644,root,root,755)