]>
Commit | Line | Data |
---|---|---|
c9ee805b ER |
1 | # |
2 | # Conditional build: | |
d5d82930 | 3 | %bcond_without asm # x86 assembler |
3c828a1d | 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 |
7fb20346 | 8 | Version: 1.1.0 |
1c3357c1 | 9 | Release: 1 |
bccc9f86 AM |
10 | License: BSD |
11 | Group: Libraries | |
3c828a1d | 12 | # Source0Download: http://code.google.com/p/webm/downloads/list |
1c3357c1 | 13 | Source0: https://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2 |
7fb20346 | 14 | # Source0-md5: 7ae163ac3196c79ec2f0904280078a45 |
bccc9f86 | 15 | URL: http://www.webmproject.org/ |
13542557 | 16 | BuildRequires: /usr/bin/php |
a28e5963 | 17 | BuildRequires: doxygen |
47f853c3 | 18 | BuildRequires: php-common >= 4:5.0.0 |
13542557 | 19 | BuildRequires: php-pcre |
9026bd8c | 20 | BuildRequires: sed >= 4.0 |
d5d82930 | 21 | %ifarch %{ix86} %{x8664} |
3c828a1d | 22 | %{?with_asm:BuildRequires: yasm >= 0.8} |
d5d82930 | 23 | %endif |
bccc9f86 AM |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | VP8, a high-quality video codec. | |
28 | ||
d5d82930 JB |
29 | %description -l pl.UTF-8 |
30 | VP8 - kodek obrazu wysokiej jakości. | |
31 | ||
bccc9f86 | 32 | %package devel |
d5d82930 JB |
33 | Summary: Header files for libvpx |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx | |
bccc9f86 | 35 | Group: Development/Libraries |
d5d82930 | 36 | Requires: %{name} = %{version}-%{release} |
bccc9f86 AM |
37 | |
38 | %description devel | |
d5d82930 JB |
39 | Header files for libvpx library. |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki libvpx. | |
bccc9f86 AM |
43 | |
44 | %package static | |
45 | Summary: Static libvpx library | |
d5d82930 | 46 | Summary(pl.UTF-8): Statyczna biblioteka libvpx |
bccc9f86 | 47 | Group: Development/Libraries |
d5d82930 | 48 | Requires: %{name}-devel = %{version}-%{release} |
bccc9f86 AM |
49 | |
50 | %description static | |
51 | Static libvpx library. | |
52 | ||
d5d82930 JB |
53 | %description static -l pl.UTF-8 |
54 | Statyczna biblioteka libvpx. | |
55 | ||
bccc9f86 | 56 | %prep |
1c3357c1 | 57 | %setup -q -n %{name}-v%{version} |
bccc9f86 AM |
58 | |
59 | %build | |
d5d82930 JB |
60 | install -d obj |
61 | cd obj | |
bccc9f86 | 62 | # not autoconf configure |
d5d82930 | 63 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
bccc9f86 | 64 | ../configure \ |
7b991969 | 65 | %if %{with asm} |
dcde509e | 66 | --as=yasm \ |
bccc9f86 AM |
67 | %ifarch %{x8664} |
68 | --target=x86_64-linux-gcc \ | |
69 | %endif | |
70 | %ifarch %{ix86} | |
71 | --target=x86-linux-gcc \ | |
7b991969 AM |
72 | %endif |
73 | %else | |
74 | --target=generic-gnu \ | |
bccc9f86 | 75 | %endif |
6c7c0f8b | 76 | --enable-shared \ |
0257ab6e | 77 | --disable-optimizations \ |
bccc9f86 AM |
78 | --enable-vp8 \ |
79 | --enable-postproc \ | |
80 | --enable-runtime-cpu-detect | |
0257ab6e | 81 | |
0257ab6e | 82 | %{__make} verbose=true target=libs \ |
938aec6f | 83 | HAVE_GNU_STRIP=no \ |
6c7c0f8b | 84 | CC="%{__cc}" \ |
7fb20346 | 85 | LD="%{__cc}" \ |
6c7c0f8b | 86 | LDFLAGS="%{rpmldflags}" |
0257ab6e AM |
87 | |
88 | %{__make} verbose=true target=examples \ | |
6c7c0f8b | 89 | CC="%{__cc}" \ |
7fb20346 | 90 | LD="%{__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 | |
7fb20346 | 102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libvpx.so.1.1 |
9026bd8c JB |
103 | |
104 | # adjust prefix and libdir | |
3c828a1d | 105 | %{__sed} -i -e 's,^prefix=.*,prefix=%{_prefix},;s,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/vpx.pc |
bccc9f86 AM |
106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
d5d82930 | 115 | %doc AUTHORS CHANGELOG LICENSE PATENTS README |
1c3357c1 | 116 | %attr(755,root,root) %{_bindir}/vp8_scalable_patterns |
d5d82930 JB |
117 | %attr(755,root,root) %{_bindir}/vpxdec |
118 | %attr(755,root,root) %{_bindir}/vpxenc | |
47f853c3 | 119 | %attr(755,root,root) %{_libdir}/libvpx.so.*.*.* |
1c3357c1 | 120 | %attr(755,root,root) %ghost %{_libdir}/libvpx.so.1 |
bccc9f86 AM |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
47f853c3 | 124 | %attr(755,root,root) %{_libdir}/libvpx.so |
464fefd2 | 125 | %{_includedir}/vpx |
9026bd8c | 126 | %{_pkgconfigdir}/vpx.pc |
bccc9f86 AM |
127 | |
128 | %files static | |
129 | %defattr(644,root,root,755) | |
0257ab6e | 130 | %{_libdir}/libvpx.a |