Use %license macro in spec file 25/122725/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170403.190541 accepted/tizen/ivi/20170403.131611 accepted/tizen/mobile/20170403.131444 accepted/tizen/tv/20170403.131517 accepted/tizen/unified/20170403.131639 accepted/tizen/wearable/20170403.131536 submit/tizen/20170403.090528
authorWootak Jung <wootak.jung@samsung.com>
Mon, 3 Apr 2017 08:00:55 +0000 (17:00 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 3 Apr 2017 08:00:55 +0000 (17:00 +0900)
Change-Id: Ic3d216a96766315952b1fc777e8eb456c4cc333a

CMakeLists.txt
packaging/tel-plugin-packetservice.spec

index 0e958f6..1e6adf3 100644 (file)
@@ -77,4 +77,3 @@ INSTALL(FILES ${CMAKE_SOURCE_DIR}/resources/500.dnet_db_upgrade_24_30.sh DESTINA
 INSTALL(FILES ${RES_DIR}/dnet_db_init.sql DESTINATION ${DATAROOTDIR}/ps-plugin)
 #INSTALL(FILES ${CMAKE_SOURCE_DIR}/resources/apns-conf.xml DESTINATION ${DATAROOTDIR}/ps-plugin)
 INSTALL(TARGETS ps-plugin LIBRARY DESTINATION ${LIBDIR}/telephony/plugins)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ${DATAROOTDIR}/license RENAME tel-plugin-packetservice)
\ No newline at end of file
index 0a5467f..e4691f8 100644 (file)
@@ -167,7 +167,6 @@ mv %{_datadir}/ps-plugin/dnet_db_init.sql %{_datadir}/ps-plugin/dnet_db_init.sql
 
 %install
 %make_install
-mkdir -p %{buildroot}%{_datadir}/license
 mkdir -p %{buildroot}/etc/dbus-1/system.d/
 cp %{SOURCE1} %{buildroot}/etc/dbus-1/system.d/tel-plugin-ps.conf
 cp resources/tv/dnet_db_init.sql %{buildroot}%{_datadir}/ps-plugin/dnet_db_init.sql.tv
@@ -200,6 +199,7 @@ esac
 %files profile_tv
 %manifest tel-plugin-packetservice.manifest
 %{_libdir}/telephony/plugins/ps-plugin*.tv
+%license LICENSE
 %endif # End of extension for TV
 
 %files
@@ -217,14 +217,17 @@ esac
 # Extension for TV
 %exclude %{_libdir}/telephony/plugins/ps-plugin*.tv
 %endif # End of extension for TV
-%{_datadir}/license/tel-plugin-packetservice
+%license LICENSE
 /etc/dbus-1/system.d/tel-plugin-ps.conf
 
 %files dbinit-profile_common
 %{_datadir}/ps-plugin/dnet_db_init.sql
+%license LICENSE
 
 %files dbinit-profile_tv
 %{_datadir}/ps-plugin/dnet_db_init.sql.tv
+%license LICENSE
 
 %files dbinit-profile_ivi
 %{_datadir}/ps-plugin/dnet_db_init.sql.ivi
+%license LICENSE