]>
Commit | Line | Data |
---|---|---|
1100669a | 1 | %define snap 20091118 |
1eadea1c | 2 | %define snaph 2245 |
c873eb99 | 3 | %define rel 1 |
65b73f48 | 4 | Summary: H264 encoder library |
23647862 | 5 | Summary(pl.UTF-8): Biblioteka kodująca H264 |
65b73f48 JB |
6 | Name: libx264 |
7 | Version: 0.1.2 | |
4663db6e | 8 | Release: 1.%{snap}_%{snaph}.%{rel} |
76f3f357 | 9 | License: GPL v2+ |
65b73f48 | 10 | Group: Libraries |
aedfa898 JB |
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 | |
1100669a | 15 | # Source0-md5: 2aba19167fa145785a76e1525fad5627 |
2741dce2 | 16 | Patch0: %{name}-alpha.patch |
3b7e662c | 17 | Patch1: %{name}-syms.patch |
f33b600a | 18 | URL: http://www.videolan.org/developers/x264.html |
bad36153 | 19 | BuildRequires: gettext-devel |
bad36153 KK |
20 | BuildRequires: pkgconfig |
21 | %ifarch %{ix86} %{x8664} | |
f33b600a | 22 | BuildRequires: yasm >= 0.6.0 |
aedfa898 | 23 | %endif |
65b73f48 JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
7cf55bee PS |
26 | # encoder/macroblock.c breaks strict-aliasing rules |
27 | %define specflags -fno-strict-aliasing | |
28 | ||
65b73f48 JB |
29 | %description |
30 | libx264 library for encoding H264 video format. | |
31 | ||
3d6bd83a | 32 | %description -l pl.UTF-8 |
65b73f48 JB |
33 | Biblioteka libx264 do kodowania w formacie obrazu H264. |
34 | ||
35 | %package devel | |
36 | Summary: Header files for x264 library | |
23647862 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264 |
65b73f48 JB |
38 | Group: Development/Libraries |
39 | Requires: %{name} = %{version}-%{release} | |
40 | ||
41 | %description devel | |
42 | Header files for x264 library. | |
43 | ||
3d6bd83a JR |
44 | %description devel -l pl.UTF-8 |
45 | Pliki nagłówkowe biblioteki x264. | |
65b73f48 JB |
46 | |
47 | %package static | |
48 | Summary: Static x264 library | |
23647862 | 49 | Summary(pl.UTF-8): Statyczna biblioteka x264 |
65b73f48 JB |
50 | Group: Development/Libraries |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static x264 library. | |
55 | ||
3d6bd83a | 56 | %description static -l pl.UTF-8 |
65b73f48 JB |
57 | Statyczna biblioteka x264. |
58 | ||
59 | %prep | |
aedfa898 | 60 | %setup -q -n x264-snapshot-%{snap}-%{snaph} |
2741dce2 | 61 | %patch0 -p1 |
3b7e662c | 62 | %patch1 -p1 |
bad36153 | 63 | sed -i 's:-O4::g' configure |
65b73f48 JB |
64 | |
65 | %build | |
704304fd | 66 | CC="%{__cc}" \ |
7cf55bee | 67 | ./configure \ |
219e4f34 PS |
68 | --prefix=%{_prefix} \ |
69 | --exec-prefix=%{_prefix} \ | |
70 | --bindir=%{_bindir} \ | |
71 | --includedir=%{_includedir} \ | |
72 | --libdir=%{_libdir} \ | |
7cf55bee | 73 | --extra-cflags="%{rpmcflags}" \ |
bad36153 | 74 | --enable-pic \ |
7cf55bee PS |
75 | --enable-shared |
76 | ||
65b73f48 JB |
77 | %{__make} |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
247a0e4f | 93 | %doc AUTHORS |
65b73f48 | 94 | %attr(755,root,root) %{_bindir}/x264 |
c873eb99 | 95 | %attr(755,root,root) %{_libdir}/libx264.so.[0-9][0-9] |
65b73f48 JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libx264.so | |
65b73f48 | 100 | %{_includedir}/x264.h |
247a0e4f | 101 | %{_pkgconfigdir}/x264.pc |
65b73f48 JB |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libx264.a |