]> git.pld-linux.org Git - packages/libvpx.git/blame - libvpx.spec
- updated to 0.9.6
[packages/libvpx.git] / libvpx.spec
CommitLineData
c9ee805b
ER
1#
2# Conditional build:
d5d82930 3%bcond_without asm # x86 assembler
938aec6f 4
bccc9f86 5Summary: VP8, a high-quality video codec
d5d82930 6Summary(pl.UTF-8): VP8 - kodek obrazu wysokiej jakości
bccc9f86 7Name: libvpx
dcde509e
KK
8Version: 0.9.6
9Release: 1
bccc9f86
AM
10License: BSD
11Group: Libraries
d5d82930 12#Source0-Download: http://code.google.com/p/webm/downloads/list
34eceac6 13Source0: http://webm.googlecode.com/files/%{name}-v%{version}.tar.bz2
dcde509e 14# Source0-md5: 383f3f07a76099682abb43f79b692b72
5cb65362 15Source1: %{name}.ver
0257ab6e 16Patch0: %{name}-0.9.0-no-explicit-dep-on-static-lib.patch
bccc9f86 17URL: http://www.webmproject.org/
13542557 18BuildRequires: /usr/bin/php
a28e5963 19BuildRequires: doxygen
47f853c3 20BuildRequires: php-common >= 4:5.0.0
13542557 21BuildRequires: php-pcre
d5d82930 22%ifarch %{ix86} %{x8664}
7b991969 23%{?with_asm:BuildRequires: yasm}
d5d82930 24%endif
bccc9f86
AM
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28VP8, a high-quality video codec.
29
d5d82930
JB
30%description -l pl.UTF-8
31VP8 - kodek obrazu wysokiej jakości.
32
bccc9f86 33%package devel
d5d82930
JB
34Summary: Header files for libvpx
35Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libvpx
bccc9f86 36Group: Development/Libraries
d5d82930 37Requires: %{name} = %{version}-%{release}
bccc9f86
AM
38
39%description devel
d5d82930
JB
40Header files for libvpx library.
41
42%description devel -l pl.UTF-8
43Pliki nagłówkowe biblioteki libvpx.
bccc9f86
AM
44
45%package static
46Summary: Static libvpx library
d5d82930 47Summary(pl.UTF-8): Statyczna biblioteka libvpx
bccc9f86 48Group: Development/Libraries
d5d82930 49Requires: %{name}-devel = %{version}-%{release}
bccc9f86
AM
50
51%description static
52Static libvpx library.
53
d5d82930
JB
54%description static -l pl.UTF-8
55Statyczna 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
62install -d obj
63cd obj
bccc9f86 64# not autoconf configure
d5d82930 65CFLAGS="%{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
95rm -rf $RPM_BUILD_ROOT
464fefd2 96install -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 102rm $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0.?
bccc9f86
AM
103
104%clean
105rm -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
This page took 0.087323 seconds and 4 git commands to generate.