fix to install the license file 84/124284/1
authorYoungjae Shin <yj99.shin@samsung.com>
Tue, 11 Apr 2017 05:19:51 +0000 (14:19 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 11 Apr 2017 05:20:57 +0000 (14:20 +0900)
Change-Id: Ief61bb478d65a696056cf1c138a6acc83212b217

packaging/capi-base-common.spec

index 6022022..72b5046 100644 (file)
@@ -7,18 +7,18 @@ License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
 
 BuildRequires:    cmake
-Requires(post):   /sbin/ldconfig  
+Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
 %description
 Common header files of Tizen Native API
-  
-%package devel  
+
+%package devel
 License:  Apache-2.0
 Summary:  Common header files of Tizen Native API (Development)
 Group:    Base
-Requires: %{name} = %{version}-%{release}  
-  
+Requires: %{name} = %{version}-%{release}
+
 %description devel
 Common header files of Tizen Native API
 
@@ -36,10 +36,7 @@ make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
-
 %make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
 
 %post -p /sbin/ldconfig
 
@@ -49,6 +46,7 @@ cp LICENSE %{buildroot}/usr/share/license/%{name}
 %manifest %{name}.manifest
 /usr/share/license/%{name}
 %{_libdir}/libcapi-base-common.so.*
+%license LICENSE
 
 %files devel
 %{_includedir}/*.h