فهرست منبع

fontconfig-2.14.1-1

Tomohiro "Tomo-p" KATO 1 سال پیش
والد
کامیت
6c9358682b
1فایلهای تغییر یافته به همراه36 افزوده شده و 23 حذف شده
  1. 36 23
      f/fontconfig/fontconfig-vl.spec

+ 36 - 23
f/fontconfig/fontconfig-vl.spec

@@ -6,26 +6,28 @@
 Summary: Font configuration and customization library
 Summary(ja): フォント設定/カスタマイズライブラリ
 Name: fontconfig
-Version: 2.13.1
+Version: 2.14.1
 Release: 1%{?_dist_release}
-Group: System Environment/Libraries
+Group: system
 Vendor: Project Vine
 Distribution: Vine Linux
 
 License: MIT
 URL: https://fontconfig.org/
-Source: https://fontconfig.org/release/fontconfig-%{version}.tar.bz2
+Source: https://fontconfig.org/release/fontconfig-%{version}.tar.xz
 Source10: 70-prefer-ja-font.conf
 Source11: 59-morisawa-font-alias.conf
 Source100: ChangeLog.fedora
 
 # from fedora
 # https://bugzilla.redhat.com/show_bug.cgi?id=140335
-Patch0:         fontconfig-2.8.0-sleep-less.patch
+Patch0:		%{name}-sleep-less.patch
+Patch4:		%{name}-drop-lang-from-pkgkit-format.patch
+Patch5:		%{name}-disable-network-required-test.patch
 
 # vine
-Patch4: fontconfig-2.3.2-subst-ja-font.patch
-Patch10: fontconfig-2.13.1-vine.patch
+Patch10000: fontconfig-2.3.2-subst-ja-font.patch
+Patch10001: fontconfig-2.13.1-vine.patch
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -52,10 +54,11 @@ applications.
 Fontconfig は、システム内のフォントを把握し、アプリケーション
 が指定した要求に応じてそれらを選択するためのライブラリです。
 
+
 %package devel
 Summary: Development files for %{name}
 Summary(ja): Fontconfig の開発ファイル
-Group: Development/Libraries
+Group: programming
 Requires: fontconfig = %{version}-%{release}
 Requires: freetype2-devel >= %{freetype_version}
 Requires: expat-devel
@@ -72,11 +75,12 @@ fontconfig-devel パッケージには fontconfig を使ったソフトウエア
 を開発するために必要なヘッダファイルやライブラリ、開発用ドキュメ
 ントが含まれています。
 
+
 # compat32
 %package -n compat32-%{name}
 Summary: Font configuration and customization library
 Summary(ja): フォント設定/カスタマイズライブラリ
-Group: System Environment/Libraries
+Group: system,legacy
 
 %description -n compat32-%{name}
 Fontconfig is designed to locate fonts within the
@@ -87,9 +91,10 @@ applications.
 Fontconfig は、システム内のフォントを把握し、アプリケーション
 が指定した要求に応じてそれらを選択するためのライブラリです。
 
+
 %package -n compat32-%{name}-devel
 Summary: Font configuration and customization library
-Group: Development/Libraries
+Group: programming,legacy
 Requires: compat32-%{name} = %{version}-%{release}
 Requires: %{name}-devel = %{version}-%{release}
 Requires: compat32-freetype2-devel >= %{freetype_version}
@@ -104,24 +109,27 @@ fontconfig-devel パッケージには fontconfig を使ったソフトウエア
 を開発するために必要なヘッダファイルやライブラリ、開発用ドキュメ
 ントが含まれています。
 
+
+%debug_package
+
+
 %prep
 %setup -q
+%autopatch -p1 -M 9999
+#patch10000 -p1 -b .subst-ja-font
+%patch10001 -p1 -b .vine
 
-%patch0 -p1 -b .sleep-less
-
-#patch4 -p1 -b .subst-ja-font
-%patch10 -p1 -b .vine
 
 %build
-
 # We don't want to rebuild the docs, but we want to install the included ones.
 export HASDOCBOOK=no
 
 %configure \
-  --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
+  --with-add-fonts=/usr/share/fonts,/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
 
 %__make %{?_smp_mflags}
 
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -150,23 +158,25 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
 # remove locales (zh only)
 rm -rf %{buildroot}%{_datadir}/locale
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
+
+%transfiletriggerin -- /usr/share/fonts /usr/share/X11/fonts/Type1 /usr/share/X11/fonts/TTF /usr/local/share/fonts
+HOME=/root /usr/bin/fc-cache -s
+
+%transfiletriggerpostun -- /usr/share/fonts /usr/share/X11/fonts/Type1 /usr/share/X11/fonts/TTF /usr/local/share/fonts
+HOME=/root /usr/bin/fc-cache -s
+
+
+%posttrans
 umask 0022
 # Remove stale caches
 rm -f %{_localstatedir}/cache/fontconfig/????????????????????????????????-*.cache-2
 HOME=/root /usr/bin/fc-cache -f -s >& /dev/null
 
 
-%postun -p /sbin/ldconfig
-
-%post -n compat32-%{name} -p /sbin/ldconfig
-
-%postun -n compat32-%{name} -p /sbin/ldconfig
-
 %files
 %defattr(-, root, root)
 %license COPYING 
@@ -216,6 +226,9 @@ HOME=/root /usr/bin/fc-cache -f -s >& /dev/null
 %endif
 
 %changelog
+* Tue Nov 01 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.14.1-1
+- new upstream release.
+
 * Fri Apr 10 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.13.1-1
 - new upstream release.
 - disabled Patch4.