xpra icon
Bug tracker and wiki

Ticket #613: libvpx-xpra.spec

File libvpx-xpra.spec, 1.6 KB (added by pyther, 6 years ago)
Line 
1Name:        libvpx-xpra       
2Version:     1.3.0
3Release:     1%{?dist}
4Summary:     vpx library for xpra       
5
6Group:       Applications/Multimedia
7License:     BSD
8URL:         http://www.webmproject.org/code/
9Source0:     https://webm.googlecode.com/files/libvpx-v%{version}.tar.bz2
10BuildRoot:   %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12BuildRequires:  yasm
13#Requires:     
14
15%description
16vpx library for xpra
17
18
19%package devel
20Summary: Development files for the vpx library
21Group: Development/libraries
22Requires: %{name} = %{version}
23Requires: pkgconfig
24
25%description devel
26This package contains the development files for %{name}.
27
28
29%prep
30%setup -q -n libvpx-v%{version}
31
32
33%build
34./configure \
35    --prefix="%{_prefix}" \
36    --libdir="%{_libdir}/xpra" \
37    --enable-pic \
38    --disable-install-docs \
39    --disable-install-bins \
40    --enable-shared \
41    --enable-vp8 \
42    --enable-vp9 \
43    --enable-realtime-only \
44    --enable-runtime-cpu-detect
45
46make %{?_smp_mflags}
47
48
49%install
50rm -rf %{buildroot}
51make install DESTDIR=%{buildroot}
52
53# dirty hack because configure does not provide includedir flag
54mkdir %{buildroot}/%{_includedir}/xpra
55mv %{buildroot}/%{_includedir}/vpx %{buildroot}/%{_includedir}/xpra
56sed -i 's,/include,/include/xpra,' %{buildroot}/%{_libdir}/xpra/pkgconfig/vpx.pc
57
58%clean
59rm -rf %{buildroot}
60
61
62%files
63%defattr(-,root,root,-)
64%doc AUTHORS CHANGELOG PATENTS README
65%{_libdir}/xpra/libvpx.so.*
66
67%files devel
68%defattr(-,root,root,-)
69%{_includedir}/xpra/vpx/
70%{_libdir}/xpra/libvpx.a
71%{_libdir}/xpra/libvpx.so
72%{_libdir}/xpra/pkgconfig/vpx.pc
73
74
75%changelog
76* Mon Jul 14 2014 Matthew Gyurgyik <pyther@pyther.net>
77- initial package