From: Kévin THIERRY Date: Mon, 29 Sep 2014 06:58:53 +0000 (+0200) Subject: Packaging: clean spec file X-Git-Tag: submit/tizen_common/20141211.130742^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4295b93e417e4734c90639d20ff6c60b110172d7;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Packaging: clean spec file Properly manage license. Also remove executable bits to non executable files. Change-Id: I8060fa46895e3a4a7c3010c5f81235d229c508f1 Signed-off-by: Kévin THIERRY --- diff --git a/AUTHORS b/AUTHORS old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/LICENSE.APLv2.0 b/LICENSE.APLv2.0 old mode 100755 new mode 100644 diff --git a/Makefile.am b/Makefile.am old mode 100755 new mode 100644 diff --git a/configure.ac b/configure.ac old mode 100755 new mode 100644 diff --git a/packaging/libmm-utility.spec b/packaging/libmm-utility.spec index 96da689..af9c82a 100644 --- a/packaging/libmm-utility.spec +++ b/packaging/libmm-utility.spec @@ -5,7 +5,7 @@ Release: 0 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz -Source1001: libmm-utility.manifest +Source1001: libmm-utility.manifest Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(mm-common) @@ -16,10 +16,8 @@ BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: libjpeg-turbo-devel BuildRequires: pkgconfig(libtzplatform-config) -BuildRoot: %{_tmppath}/%{name}-%{version}-build - %description -Multimedia Framework Utility Library package. +Multimedia Framework Utility Library - Main package. %package devel Summary: Multimedia Framework Utility Library (DEV) @@ -27,15 +25,15 @@ Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel -Multimedia Framework Utility Library (DEV) package. +Multimedia Framework Utility Library - Development files. %package tool -Summary: Multimedia Framework Utility Library +Summary: Multimedia Framework Utility tools Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description tool -Multimedia Framework Utility Library package. +Multimedia Framework Utility Library - Tools. %prep %setup -q @@ -44,9 +42,9 @@ cp %{SOURCE1001} . %build mkdir -p m4 CFLAGS="$CFLAGS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -D_MM_PROJECT_FLOATER" \ -LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed" \ +LDFLAGS="$LDFLAGS -Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed" \ %reconfigure -%__make %{?jobs:-j%jobs} +%__make %{?_smp_mflags} sed -i -e "s#@IMGP_REQPKG@#$IMGP_REQPKG#g" imgp/mmutil-imgp.pc sed -i -e "s#@JPEG_REQPKG@#$JPEG_REQPKG#g" jpeg/mmutil-jpeg.pc @@ -54,8 +52,6 @@ sed -i -e "s#@JPEG_REQPKG@#$JPEG_REQPKG#g" jpeg/mmutil-jpeg.pc %install rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}%{_datadir}/license -cp LICENSE %{buildroot}%{_datadir}/license/%{name} %clean rm -rf %{buildroot} @@ -65,7 +61,7 @@ rm -rf %{buildroot} %files %manifest %{name}.manifest -%{_datadir}/license/%{name} +%license LICENSE LICENSE.APLv2.0 %defattr(-,root,root,-) %{_libdir}/*.so* @@ -79,3 +75,4 @@ rm -rf %{buildroot} %manifest %{name}.manifest %defattr(-,root,root,-) %{_bindir}/*_testsuite +