From: Mikko Ylinen Date: Thu, 15 Aug 2013 08:00:26 +0000 (+0300) Subject: Install test binaries. Fixes TIVI-1428 X-Git-Tag: accepted/tizen/3.0/common/20161114.111114~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d59b3e6a18c39ddef661fd237370a2707a5d790;p=platform%2Fupstream%2Flightmediascanner.git Install test binaries. Fixes TIVI-1428 Signed-off-by: Mikko Ylinen --- diff --git a/packaging/lightmediascanner.spec b/packaging/lightmediascanner.spec index 0ca2730..86d3c39 100644 --- a/packaging/lightmediascanner.spec +++ b/packaging/lightmediascanner.spec @@ -11,15 +11,24 @@ BuildRequires: gettext-tools BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(vorbis) +%define testbindir %{_builddir}/%{name}-%{version} + %description Description: %{summary} %package devel -Summary: LMS headers, static libraries, documentation and test programs +Summary: LMS headers, static libraries, and documentation Requires: %{name} = %{version} %description devel -Headers, static libraries, test programs and documentation for LMS +Headers, static libraries, and documentation for LMS + +%package test +Summary: LMS test programs +Requires: %{name} = %{version} + +%description test +LMS test programs %prep %setup -q -n %{name}-%{version} @@ -34,6 +43,11 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %make_install +# Temporarily install test binaries +mkdir -p %{buildroot}/%{_bindir} +libtool --mode=install install -m 0755 %{testbindir}/src/bin/test %{buildroot}/%{_bindir}/lms-test +libtool --mode=install install -m 0755 %{testbindir}/src/bin/list-parsers %{buildroot}/%{_bindir}/lms-list-parsers + %post /sbin/ldconfig @@ -52,3 +66,7 @@ rm -rf %{buildroot} %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/* + +%files test +%defattr(-, root, root) +%{_bindir}/*