Used a macro of %license to add a license to spec file 72/124872/1 accepted/tizen/unified/20170413.164036 submit/tizen/20170413.033647
authorjaekuk, lee <juku1999@samsung.com>
Thu, 13 Apr 2017 01:24:08 +0000 (10:24 +0900)
committerjaekuk, lee <juku1999@samsung.com>
Thu, 13 Apr 2017 01:24:08 +0000 (10:24 +0900)
Change-Id: Id337f9be6fdefb94d54289cca52381ad0d349966
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
packaging/download-provider.spec

index 5c0a45e..5cb1b09 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.75
+Version:    2.1.76
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
@@ -65,7 +65,6 @@ Description: Download the contents in background (development files)
 %define _database_client_dir %{_databasedir}/clients
 %define _notifydir %{_data_install_path}/notify
 %define _ipc_socket /tmp/.download-provider.sock
-%define _licensedir /usr/share/license
 %define _logdump_script_dir %{TZ_SYS_ETC}/dump.d/module.d
 %define _http_lib libcurl
 %define upgrade_script_path /usr/share/upgrade/scripts
@@ -119,7 +118,6 @@ Description: Download the contents in background (development files)
                -DDATABASE_CLIENT_DIR:PATH=%{_database_client_dir} \\\
                -DIMAGE_DIR:PATH=%{_imagedir} \\\
                -DLOCALE_DIR:PATH=%{_localedir} \\\
-               -DLICENSE_DIR:PATH=%{_licensedir} \\\
                -DSUPPORT_WIFI_DIRECT:BOOL=OFF \\\
                %if "%{?download_booster}" == "ON" \
                -DSUPPORT_DOWNLOAD_BOOSTER:BOOL=ON \\\
@@ -184,7 +182,6 @@ mkdir -p %{buildroot}/etc/vasum/vsmzone.resource/
 mv %{buildroot}/usr/share/download-provider/download-provider.res %{buildroot}/etc/vasum/vsmzone.resource/
 #%endif
 
-mkdir -p %{buildroot}%{_licensedir}
 mkdir -p %{buildroot}/lib/systemd/system/graphical.target.wants
 mkdir -p %{buildroot}/lib/systemd/system/sockets.target.wants
 ln -s ../download-provider.service %{buildroot}/lib/systemd/system/graphical.target.wants/
@@ -223,7 +220,6 @@ chown -R web_fw:web_fw %{_data_install_path}
 %{_libdir}/libdownload-provider-interface.so.%{version}
 %{_libdir}/libdownload-provider-interface.so.0
 %{_bindir}/%{name}
-%{_licensedir}/%{name}
 %attr(0544,root,root) %{_logdump_script_dir}/dump-%{name}.sh
 #%if 0%{?sec_product_feature_container_enable}
 %attr(0644,root,root) /etc/vasum/vsmzone.resource/download-provider.res
@@ -232,6 +228,7 @@ chown -R web_fw:web_fw %{_data_install_path}
 %if ("%{VD_PRODUCT_TYPE}" == "AUDIO") || ("%{VD_PRODUCT_TYPE}" == "TV") || ("%{VD_PRODUCT_TYPE}" == "LFD") || ("%{VD_PRODUCT_TYPE}" == "HTV") || ("%{VD_PRODUCT_TYPE}" == "AV")
 /etc/notstrip/download-provider.notstrip
 %endif
+%license LICENSE.APLv2
 
 %files devel
 %defattr(-,root,root,-)