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: 2aba19167fa145785a76e1525fad5627
16 Patch0: %{name}-alpha.patch
17 Patch1: %{name}-syms.patch
18 URL: http://www.videolan.org/developers/x264.html
19 BuildRequires: gettext-devel
20 BuildRequires: pkgconfig
21 %ifarch %{ix86} %{x8664}
22 BuildRequires: yasm >= 0.6.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # encoder/macroblock.c breaks strict-aliasing rules
27 %define specflags -fno-strict-aliasing
30 libx264 library for encoding H264 video format.
32 %description -l pl.UTF-8
33 Biblioteka libx264 do kodowania w formacie obrazu H264.
36 Summary: Header files for x264 library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 Header files for x264 library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki x264.
48 Summary: Static x264 library
49 Summary(pl.UTF-8): Statyczna biblioteka x264
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
56 %description static -l pl.UTF-8
57 Statyczna biblioteka x264.
60 %setup -q -n x264-snapshot-%{snap}-%{snaph}
63 sed -i 's:-O4::g' configure
69 --exec-prefix=%{_prefix} \
71 --includedir=%{_includedir} \
73 --extra-cflags="%{rpmcflags}" \
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_bindir}/x264
95 %attr(755,root,root) %{_libdir}/libx264.so.[0-9][0-9]
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libx264.so
100 %{_includedir}/x264.h
101 %{_pkgconfigdir}/x264.pc
104 %defattr(644,root,root,755)