Using %license macro to install license file instead of using manual command. 91/126991/1 accepted/tizen/4.0/unified/20170816.013415 accepted/tizen/unified/20170519.200900 submit/tizen/20170519.132143 submit/tizen_4.0/20170811.094300 tizen_4.0.m1_release
authorWoochan Lee <wc0917.lee@samsung.com>
Tue, 25 Apr 2017 12:34:58 +0000 (21:34 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Tue, 25 Apr 2017 12:35:10 +0000 (21:35 +0900)
Change-Id: Ie33e579a353cc3bdb66870e6c7567b5b2e32b879

packaging/fontconfig.spec

index bda5710..13fba0a 100644 (file)
@@ -82,8 +82,6 @@ install -m 0644 %SOURCE100 %{buildroot}%{_tmpfilesdir}/fontconfig.conf
 # and own /usr/share/fonts
 mydir=$RPM_BUILD_ROOT%{TZ_SYS_RO_SHARE}/fonts
 mkdir -p $RPM_BUILD_ROOT%{TZ_SYS_RO_SHARE}/fonts
-mkdir -p %{buildroot}%{TZ_SYS_RO_SHARE}/license
-cat COPYING > %{buildroot}%{TZ_SYS_RO_SHARE}/license/%{name}
 
 # Remove unpackaged files. no need when configure --disable-static
 #rm $RPM_BUILD_ROOT%{_libdir}/*.la
@@ -143,9 +141,9 @@ chsmack -a User::App::Shared %{TZ_SYS_VAR}/cache/fontconfig
 %doc %{TZ_SYS_RO_ETC}/fonts/conf.d/README
 %config %{TZ_SYS_RO_ETC}/fonts/conf.avail/*.conf
 %config(noreplace) %{TZ_SYS_RO_ETC}/fonts/conf.d/*.conf
-%{TZ_SYS_RO_SHARE}/license/%{name}
 %{_tmpfilesdir}/fontconfig.conf
 %{upgrade_script_path}/500.fontconfig.sh
+%license COPYING
 
 %files devel
 %manifest fontconfig.manifest