upgrade to 2.14.2
[platform/upstream/fontconfig.git] / packaging / fontconfig.spec
index b604553..ab5e359 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:           fontconfig
 Summary:        Font configuration and customization library
-Version:        2.13.0
+Version:        2.14.2
 Release:        1
 Group:          Graphics & UI Framework/Fonts
 License:        MIT
@@ -15,7 +15,7 @@ BuildRequires:  gawk
 BuildRequires:  expat-devel
 BuildRequires:  perl
 BuildRequires:  gperf
-BuildRequires:  python
+BuildRequires:  python3
 BuildRequires:  systemd-devel
 BuildRequires:  gettext-tools
 BuildRequires:  libuuid-devel
@@ -23,6 +23,7 @@ BuildRequires:  pkgconfig(libtzplatform-config)
 Requires(pre):  %{TZ_SYS_BIN}/fc-cache, %{TZ_SYS_BIN}/mkdir %{TZ_SYS_BIN}/rm, %{TZ_SYS_BIN}/grep, %{TZ_SYS_BIN}/chsmack
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
+Requires: security-config
 
 %description
 Fontconfig is designed to locate fonts within the
@@ -91,8 +92,19 @@ mkdir -p $RPM_BUILD_ROOT%{TZ_SYS_RO_SHARE}/fonts
 umask 0022
 
 mkdir -p %{TZ_SYS_RO_SHARE}/fonts
+chmod 755 %{TZ_SYS_RO_SHARE}/fonts
+chsmack -t %{TZ_SYS_RO_SHARE}/fonts
+chsmack -a User::App::Shared %{TZ_SYS_RO_SHARE}/fonts
+
 mkdir -p %{TZ_SYS_RO_SHARE}/fallback_fonts
+chmod 755 %{TZ_SYS_RO_SHARE}/fallback_fonts
+chsmack -t %{TZ_SYS_RO_SHARE}/fallback_fonts
+chsmack -a User::App::Shared %{TZ_SYS_RO_SHARE}/fallback_fonts
+
 mkdir -p %{TZ_SYS_RO_SHARE}/app_fonts
+chmod 755 %{TZ_SYS_RO_SHARE}/app_fonts
+chsmack -t %{TZ_SYS_RO_SHARE}/app_fonts
+chsmack -a User::App::Shared %{TZ_SYS_RO_SHARE}/app_fonts
 
 mkdir -p %{TZ_SYS_VAR}/cache/fontconfig
 chown root:root %{TZ_SYS_VAR}/cache/fontconfig