]> git.pld-linux.org Git - packages/libx264.git/blobdiff - libx264.spec
- up to 20091118_2245
[packages/libx264.git] / libx264.spec
index 0fdd0acc707064f5b60a74613ba103b29e1094fe..cb64980fcb4aefbd6ecc8c81d02dd78f92100099 100644 (file)
@@ -1,24 +1,25 @@
+%define                snap    20091118
+%define                snaph   2245
+%define                rel     1
 Summary:       H264 encoder library
-Summary(pl):   Biblioteka koduj±ca H264
+Summary(pl.UTF-8):     Biblioteka kodująca H264
 Name:          libx264
 Version:       0.1.2
-%define        snap    20061024
-%define        snaph   2245
-Release:       1.%{snap}_%{snaph}.1
-License:       GPL v2
+Release:       1.%{snap}_%{snaph}.%{rel}
+License:       GPL v2+
 Group:         Libraries
 # unofficial, debianized/libtoolized packaging:
 #Source0:      http://www.acarlab.com/misc-dnlds/%{name}-%{version}.tar.gz
 # but it's too old, so use snapshots...
 Source0:       ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-%{snap}-%{snaph}.tar.bz2
-# Source0-md5: 529d619bd7ba8185143ba35b05fa69d0
-URL:           http://developers.videolan.org/x264.html
-%ifarch %{ix86}
-BuildRequires: nasm
-%endif
-BuildRequires: sed >= 4.0
-%ifarch %{x8664}
-BuildRequires: yasm
+# Source0-md5: 2aba19167fa145785a76e1525fad5627
+Patch0:                %{name}-alpha.patch
+Patch1:                %{name}-syms.patch
+URL:           http://www.videolan.org/developers/x264.html
+BuildRequires: gettext-devel
+BuildRequires: pkgconfig
+%ifarch %{ix86} %{x8664}
+BuildRequires: yasm >= 0.6.0
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,35 +29,37 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 libx264 library for encoding H264 video format.
 
-%description -l pl
+%description -l pl.UTF-8
 Biblioteka libx264 do kodowania w formacie obrazu H264.
 
 %package devel
 Summary:       Header files for x264 library
-Summary(pl):   Pliki nag³ówkowe biblioteki x264
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki x264
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files for x264 library.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki x264.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki x264.
 
 %package static
 Summary:       Static x264 library
-Summary(pl):   Statyczna biblioteka x264
+Summary(pl.UTF-8):     Statyczna biblioteka x264
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static x264 library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka x264.
 
 %prep
 %setup -q -n x264-snapshot-%{snap}-%{snaph}
+%patch0 -p1
+%patch1 -p1
 sed -i 's:-O4::g' configure
 
 %build
@@ -68,6 +71,7 @@ CC="%{__cc}" \
        --includedir=%{_includedir} \
        --libdir=%{_libdir} \
        --extra-cflags="%{rpmcflags}" \
+       --enable-pic \
        --enable-shared
 
 %{__make}
@@ -88,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS
 %attr(755,root,root) %{_bindir}/x264
-%attr(755,root,root) %{_libdir}/libx264.so.*
+%attr(755,root,root) %{_libdir}/libx264.so.[0-9][0-9]
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.057473 seconds and 4 git commands to generate.