Changed the path of license by using '%license' macro
[apps/native/ug-wifi-efl.git] / packaging / wifi-efl-ug.spec
index 5c4ed0a..7e7ec2d 100644 (file)
@@ -191,20 +191,6 @@ popd
 %make_install
 %endif
 
-#License
-mkdir -p %{buildroot}%{_datadir}/license
-cp LICENSE %{buildroot}%{_datadir}/license/wifi-efl-ug
-# For backward compatibility. Not needed (always true) in unified environment.
-# mobile, common, or unified (undefined)
-%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "ivi"
-cp LICENSE %{buildroot}%{_datadir}/license/net.wifi-qs
-%endif
-# For backward compatibility. Not needed (always true) in unified environment.
-# wearable, or unified (undefined) (add common after refactoring efl-ext)
-%if "%{?profile}" != "mobile" && "%{?profile}" != "tv" && "%{?profile}" != "ivi" && "%{?profile}" != "common"
-cp LICENSE %{buildroot}%{_datadir}/license/org.tizen.w-wifi
-%endif
-
 %post
 /sbin/ldconfig
 
@@ -216,10 +202,10 @@ mkdir -p /usr/apps/wifi-efl-ug/bin/ -m 777
 %files
 %manifest wifi-efl-ug.manifest
 %{PREFIX}/apps/wifi-efl-ug/res/edje/*.edj
-%{_datadir}/license/wifi-efl-ug
 %{_datadir}/packages/wifi-efl-ug.xml
 /usr/apps/wifi-efl-ug/shared/res/tables/ug-wifi-efl_ChangeableColorTable.xml
 /usr/apps/wifi-efl-ug/shared/res/tables/ug-wifi-efl_FontInfoTable.xml
+%license LICENSE
 
 # For backward compatibility. Not needed (always true) in unified environment.
 # common, or unified (undefined)
@@ -282,7 +268,7 @@ popd
 %{_datadir}/packages/net.wifi-qs.xml
 %{_datadir}/icons/*.png
 %{PREFIX}/apps/net.wifi-qs/res/edje/*.edj
-%{_datadir}/license/net.wifi-qs
+%license LICENSE
 %endif
 
 # For backward compatibility. Not needed (always true) in unified environment.
@@ -299,5 +285,5 @@ popd
 %{PREFIX}/apps/org.tizen.w-wifi/res/locale/*/LC_MESSAGES/*.mo
 %{PREFIX}/apps/org.tizen.w-wifi/res/edje/*
 %{_datadir}/packages/org.tizen.w-wifi.xml
-%{_datadir}/license/org.tizen.w-wifi
+%license LICENSE
 %endif