1 Summary: H264 encoder library
2 Summary(pl): Biblioteka koduj±ca H264
7 Release: 1.%{snap}_%{snaph}.1
10 # unofficial, debianized/libtoolized packaging:
11 #Source0: http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
12 # but it's too old, so use snapshots...
13 Source0: ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
14 # Source0-md5: 667c760dda91e9a3f50186d4676b5d5a
15 Patch0: %{name}-liblink.patch
16 URL: http://developers.videolan.org/x264.html
20 BuildRequires: sed >= 4.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.
33 Biblioteka libx264 do kodowania w formacie obrazu H264.
36 Summary: Header files for x264 library
37 Summary(pl): 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
45 Pliki nag³ówkowe biblioteki x264.
48 Summary: Static x264 library
49 Summary(pl): Statyczna biblioteka x264
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
56 %description static -l pl
57 Statyczna biblioteka x264.
60 %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}" \
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_bindir}/x264
93 %attr(755,root,root) %{_libdir}/libx264.so.*
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libx264.so
99 %{_pkgconfigdir}/x264.pc
102 %defattr(644,root,root,755)