]> git.pld-linux.org Git - packages/libvpx.git/commitdiff
- disable possible strip via HAVE_GNU_STRIP=no
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 8 Jan 2011 19:49:02 +0000 (19:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use make install to install files

Changed files:
    libvpx.spec -> 1.17

libvpx.spec

index 072f14d19b56d70c7a45574a2747e6b2baf6fdc1..b984ce3f797638b4cc9d6fc71208ab6d728dc863 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without asm     # x86 assembler
-#
+
 Summary:       VP8, a high-quality video codec
 Summary(pl.UTF-8):     VP8 - kodek obrazu wysokiej jakości
 Name:          libvpx
@@ -80,10 +80,8 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
        --enable-postproc \
        --enable-runtime-cpu-detect
 
-# disable stripping
-sed -i "s|STRIP=.*|STRIP=|g" {libs,examples,docs}-*.mk
-
 %{__make} verbose=true target=libs \
+       HAVE_GNU_STRIP=no \
        CC="%{__cc}" \
        LDFLAGS="%{rpmldflags}"
 
@@ -96,17 +94,11 @@ sed -i "s|STRIP=.*|STRIP=|g" {libs,examples,docs}-*.mk
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/vpx,%{_libdir}}
 
-install -d outdir
 %{__make} -C obj verbose=true install \
-       DIST_DIR=$(pwd)/outdir
-
-install -p outdir/bin/* $RPM_BUILD_ROOT%{_bindir}
-install -p obj/libvpx.so.* $RPM_BUILD_ROOT%{_libdir}
-ln -s libvpx.so.0.9.5 $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0
-ln -s libvpx.so.0.9.5 $RPM_BUILD_ROOT%{_libdir}/libvpx.so
+       LIBSUBDIR=%{_lib} \
+       DIST_DIR=$RPM_BUILD_ROOT%{_prefix}
 
-cp -a outdir/include/vpx/*.h $RPM_BUILD_ROOT%{_includedir}/vpx
-cp -a outdir/lib/*.a $RPM_BUILD_ROOT%{_libdir}
+rm $RPM_BUILD_ROOT%{_libdir}/libvpx.so.0.?
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.142384 seconds and 4 git commands to generate.