Packaging: clean spec file 54/28154/6 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20141211.182857 accepted/tizen/ivi/20141225.062820 accepted/tizen/mobile/20150105.022440 accepted/tizen/tv/20150105.022353 accepted/tizen/wearable/20150105.054713 submit/tizen_common/20141211.130742 submit/tizen_ivi/20141225.111111 submit/tizen_mobile/20141216.000000 submit/tizen_mobile/20141231.012840 submit/tizen_mobile/20151202.000000 submit/tizen_tv/20151202.000000 submit/tizen_wearable/20150102.000000 tizen_3.0_ivi_release
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 29 Sep 2014 06:58:53 +0000 (08:58 +0200)
committerRonan Le Martret <ronan@fridu.net>
Tue, 2 Dec 2014 09:53:36 +0000 (10:53 +0100)
Properly manage license.

Also remove executable bits to non executable files.

Change-Id: I8060fa46895e3a4a7c3010c5f81235d229c508f1
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
AUTHORS [changed mode: 0755->0644]
LICENSE [changed mode: 0755->0644]
LICENSE.APLv2.0 [changed mode: 0755->0644]
Makefile.am [changed mode: 0755->0644]
configure.ac [changed mode: 0755->0644]
packaging/libmm-utility.spec

diff --git a/AUTHORS b/AUTHORS
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/LICENSE b/LICENSE
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 96da689..af9c82a 100644 (file)
@@ -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
+