]>
Commit | Line | Data |
---|---|---|
46997914 | 1 | %define snap 20071008 |
1eadea1c | 2 | %define snaph 2245 |
46997914 | 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 | |
1eadea1c | 8 | Release: 1.%{snap}_%{snaph}.%{_rel} |
65b73f48 JB |
9 | License: GPL v2 |
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 | |
46997914 | 15 | # Source0-md5: b1747dd3c78e83c0d56832ac2e5b83df |
2741dce2 | 16 | Patch0: %{name}-alpha.patch |
65b73f48 | 17 | URL: http://developers.videolan.org/x264.html |
68689102 PS |
18 | %ifarch %{ix86} |
19 | BuildRequires: nasm | |
20 | %endif | |
7cf55bee | 21 | BuildRequires: sed >= 4.0 |
aedfa898 | 22 | %ifarch %{x8664} |
7cf55bee | 23 | BuildRequires: yasm |
aedfa898 | 24 | %endif |
65b73f48 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
7cf55bee PS |
27 | # encoder/macroblock.c breaks strict-aliasing rules |
28 | %define specflags -fno-strict-aliasing | |
29 | ||
65b73f48 JB |
30 | %description |
31 | libx264 library for encoding H264 video format. | |
32 | ||
3d6bd83a | 33 | %description -l pl.UTF-8 |
65b73f48 JB |
34 | Biblioteka libx264 do kodowania w formacie obrazu H264. |
35 | ||
36 | %package devel | |
37 | Summary: Header files for x264 library | |
23647862 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki x264 |
65b73f48 JB |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for x264 library. | |
44 | ||
3d6bd83a JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki x264. | |
65b73f48 JB |
47 | |
48 | %package static | |
49 | Summary: Static x264 library | |
23647862 | 50 | Summary(pl.UTF-8): Statyczna biblioteka x264 |
65b73f48 JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static x264 library. | |
56 | ||
3d6bd83a | 57 | %description static -l pl.UTF-8 |
65b73f48 JB |
58 | Statyczna biblioteka x264. |
59 | ||
60 | %prep | |
aedfa898 | 61 | %setup -q -n x264-snapshot-%{snap}-%{snaph} |
7cf55bee | 62 | sed -i 's:-O4::g' configure |
2741dce2 | 63 | %patch0 -p1 |
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 PS |
73 | --extra-cflags="%{rpmcflags}" \ |
74 | --enable-shared | |
75 | ||
65b73f48 JB |
76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
247a0e4f | 92 | %doc AUTHORS |
65b73f48 | 93 | %attr(755,root,root) %{_bindir}/x264 |
247a0e4f | 94 | %attr(755,root,root) %{_libdir}/libx264.so.* |
65b73f48 JB |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libx264.so | |
65b73f48 | 99 | %{_includedir}/x264.h |
247a0e4f | 100 | %{_pkgconfigdir}/x264.pc |
65b73f48 JB |
101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libx264.a |