]>
Commit | Line | Data |
---|---|---|
c9ee805b ER |
1 | # |
2 | # Conditional build: | |
d5d82930 | 3 | %bcond_without asm # x86 assembler |
938aec6f | 4 | |
bccc9f86 | 5 | Summary: VP8, a high-quality video codec |
d5d82930 | 6 | Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości |
bccc9f86 | 7 | Name: libvpx |
dcde509e KK |
8 | Version: 0.9.6 |
9 | Release: 1 | |
bccc9f86 AM |
10 | License: BSD |
11 | Group: Libraries | |
d5d82930 | 12 | #Source0-Download: http://code.google.com/p/webm/downloads/list |
34eceac6 | 13 | Source0: http://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2 |
dcde509e | 14 | # Source0-md5: 383f3f07a76099682abb43f79b692b72 |
5cb65362 | 15 | Source1: %{name}.ver |
0257ab6e | 16 | Patch0: %{name}-0.9.0-no-explicit-dep-on-static-lib.patch |
bccc9f86 | 17 | URL: http://www.webmproject.org/ |
13542557 | 18 | BuildRequires: /usr/bin/php |
a28e5963 | 19 | BuildRequires: doxygen |
47f853c3 | 20 | BuildRequires: php-common >= 4:5.0.0 |
13542557 | 21 | BuildRequires: php-pcre |
d5d82930 | 22 | %ifarch %{ix86} %{x8664} |
7b991969 | 23 | %{?with_asm:BuildRequires: yasm} |
d5d82930 | 24 | %endif |
bccc9f86 AM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | VP8, a high-quality video codec. | |
29 | ||
d5d82930 JB |
30 | %description -l pl.UTF-8 |
31 | VP8 - kodek obrazu wysokiej jakości. | |
32 | ||
bccc9f86 | 33 | %package devel |
d5d82930 JB |
34 | Summary: Header files for libvpx |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx | |
bccc9f86 | 36 | Group: Development/Libraries |
d5d82930 | 37 | Requires: %{name} = %{version}-%{release} |
bccc9f86 AM |
38 | |
39 | %description devel | |
d5d82930 JB |
40 | Header files for libvpx library. |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki libvpx. | |
bccc9f86 AM |
44 | |
45 | %package static | |
46 | Summary: Static libvpx library | |
d5d82930 | 47 | Summary(pl.UTF-8): Statyczna biblioteka libvpx |
bccc9f86 | 48 | Group: Development/Libraries |
d5d82930 | 49 | Requires: %{name}-devel = %{version}-%{release} |
bccc9f86 AM |
50 | |
51 | %description static | |
52 | Static libvpx library. | |
53 | ||
d5d82930 JB |
54 | %description static -l pl.UTF-8 |
55 | Statyczna biblioteka libvpx. | |
56 | ||
bccc9f86 | 57 | %prep |
946a004e | 58 | %setup -q -n %{name}-v%{version} |
0257ab6e | 59 | %patch0 -p1 |
bccc9f86 AM |
60 | |
61 | %build | |
d5d82930 JB |
62 | install -d obj |
63 | cd obj | |
bccc9f86 | 64 | # not autoconf configure |
d5d82930 | 65 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
bccc9f86 | 66 | ../configure \ |
7b991969 | 67 | %if %{with asm} |
dcde509e | 68 | --as=yasm \ |
bccc9f86 AM |
69 | %ifarch %{x8664} |
70 | --target=x86_64-linux-gcc \ | |
71 | %endif | |
72 | %ifarch %{ix86} | |
73 | --target=x86-linux-gcc \ | |
7b991969 AM |
74 | %endif |
75 | %else | |
76 | --target=generic-gnu \ | |
bccc9f86 | 77 | %endif |
6c7c0f8b | 78 | --enable-shared \ |
0257ab6e | 79 | --disable-optimizations \ |
bccc9f86 AM |
80 | --enable-vp8 \ |
81 | --enable-postproc \ | |
82 | --enable-runtime-cpu-detect | |
0257ab6e | 83 | |
0257ab6e | 84 | %{__make} verbose=true target=libs \ |
938aec6f | 85 | HAVE_GNU_STRIP=no \ |
6c7c0f8b JP |
86 | CC="%{__cc}" \ |
87 | LDFLAGS="%{rpmldflags}" | |
0257ab6e AM |
88 | |
89 | %{__make} verbose=true target=examples \ | |
6c7c0f8b | 90 | CC="%{__cc}" \ |
dcde509e | 91 | LDFLAGS="%{rpmldflags} -L." |
0257ab6e AM |
92 | %{__make} verbose=true target=docs |
93 | ||
bccc9f86 AM |
94 | %install |
95 | rm -rf $RPM_BUILD_ROOT | |
464fefd2 | 96 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}} |
0257ab6e | 97 | |
6c7c0f8b | 98 | %{__make} -C obj verbose=true install \ |
938aec6f ER |
99 | LIBSUBDIR=%{_lib} \ |
100 | DIST_DIR=$RPM_BUILD_ROOT%{_prefix} | |
0257ab6e | 101 | |
938aec6f | 102 | rm $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0.? |
bccc9f86 AM |
103 | |
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
d5d82930 JB |
112 | %doc AUTHORS CHANGELOG LICENSE PATENTS README |
113 | %attr(755,root,root) %{_bindir}/vpxdec | |
114 | %attr(755,root,root) %{_bindir}/vpxenc | |
47f853c3 | 115 | %attr(755,root,root) %{_libdir}/libvpx.so.*.*.* |
0257ab6e | 116 | %attr(755,root,root) %ghost %{_libdir}/libvpx.so.0 |
bccc9f86 AM |
117 | |
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
47f853c3 | 120 | %attr(755,root,root) %{_libdir}/libvpx.so |
464fefd2 | 121 | %{_includedir}/vpx |
bccc9f86 AM |
122 | |
123 | %files static | |
124 | %defattr(644,root,root,755) | |
0257ab6e | 125 | %{_libdir}/libvpx.a |