fix build on generic targets

This commit is contained in:
Dan Horák 2011-09-12 10:54:27 +02:00
parent 72dc4d9915
commit 72fab075ec

View File

@ -1,7 +1,7 @@
Name: libvpx Name: libvpx
Summary: VP8 Video Codec SDK Summary: VP8 Video Codec SDK
Version: 0.9.7.1 Version: 0.9.7.1
Release: 1%{?dist} Release: 2%{?dist}
License: BSD License: BSD
Group: System Environment/Libraries Group: System Environment/Libraries
# sigh, non-canonical version strings. clean up in 0.9.8 plz. # sigh, non-canonical version strings. clean up in 0.9.8 plz.
@ -96,7 +96,7 @@ mv libvpx_g.a libNOTvpx_g.a
# ln -sf libvpx.so.%{version} libvpx.so # ln -sf libvpx.so.%{version} libvpx.so
ln -sf libvpx.so.0.9.7 libvpx.so ln -sf libvpx.so.0.9.7 libvpx.so
make %{?_smp_mflags} verbose=true target=examples make %{?_smp_mflags} verbose=true target=examples CONFIG_SHARED=1
make %{?_smp_mflags} verbose=true target=docs make %{?_smp_mflags} verbose=true target=docs
# Put them back so the install doesn't fail # Put them back so the install doesn't fail
@ -118,7 +118,8 @@ sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libvpx
mv %{buildroot}/usr/docs doc/ mv %{buildroot}/usr/docs doc/
%if %{generic_target} %if %{generic_target}
install -p libvpx.so.%{version} %{buildroot}%{_libdir} #install -p libvpx.so.%{version} %{buildroot}%{_libdir}
install -p libvpx.so.0.9.7 %{buildroot}%{_libdir}
pushd %{buildroot}%{_libdir} pushd %{buildroot}%{_libdir}
ln -sf libvpx.so.%{version} libvpx.so ln -sf libvpx.so.%{version} libvpx.so
ln -sf libvpx.so.%{version} libvpx.so.0 ln -sf libvpx.so.%{version} libvpx.so.0
@ -163,6 +164,9 @@ rm -rf %{buildroot}
%{_bindir}/* %{_bindir}/*
%changelog %changelog
* Mon Sep 12 2011 Dan Horák <dan[at]danny.cz> - 0.9.7.1-2
- fix build on generic targets
* Tue Aug 16 2011 Adam Jackson <ajax@redhat.com> 0.9.7.1-1 * Tue Aug 16 2011 Adam Jackson <ajax@redhat.com> 0.9.7.1-1
- libvpx 0.9.7-p1 - libvpx 0.9.7-p1