From 3db3215350592f2c9fe21b7f1140fdc9b0fe691a2adc9581536568a802bf8e54 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Tue, 10 Jul 2012 07:23:36 +0000 Subject: [PATCH 1/2] - amend spec file to reflect new font packaging scheme (see openFATE#313536); OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/un-fonts?expand=0&rev=8 --- un-fonts.changes | 6 ++++++ un-fonts.spec | 24 ++++++++---------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/un-fonts.changes b/un-fonts.changes index f1b42a8..aeed288 100644 --- a/un-fonts.changes +++ b/un-fonts.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 4 12:39:06 CEST 2012 - pgajdos@suse.cz + +- amend spec file to reflect new font packaging scheme + (see openFATE#313536); + ------------------------------------------------------------------- Thu May 17 09:10:33 UTC 2012 - pgajdos@suse.com diff --git a/un-fonts.spec b/un-fonts.spec index c2993d6..b8a94ea 100644 --- a/un-fonts.spec +++ b/un-fonts.spec @@ -16,21 +16,20 @@ # - Name: un-fonts %define date 080608 %define ver 1.0.2 Version: 1.0.20%{date} Release: 0 -License: GPL-2.0+ Summary: Korean TrueType fonts -Url: http://kldp.net/projects/unfonts/download +License: GPL-2.0+ Group: System/X11/Fonts +Url: http://kldp.net/projects/unfonts/download Source0: %{name}-core-%{ver}-%{date}.tar.bz2 Source1: %{name}-extra-%{ver}-%{date}.tar.bz2 Source10: update-archive -Requires(pre): %suseconfig_fonts_prereq -%define ttf_fontdir /usr/share/fonts/truetype +BuildRequires: fontpackages-devel +%reconfigure_fonts_prereq Provides: scalable-font-ko Provides: locale(ko) # FIXME: This causes a rpmlint warning; change <= to < once here's a new upstream version @@ -48,21 +47,14 @@ Collection of Korean TrueType fonts. %build %install -mkdir -p %{buildroot}%{ttf_fontdir}/ -install -c -m 644 *.ttf %{buildroot}%{ttf_fontdir}/ +mkdir -p %{buildroot}%{_ttfontsdir}/ +install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir}/ -%clean -rm -rf %{buildroot} - -%post -%run_suseconfig_fonts -c - -%postun -%run_suseconfig_fonts -c +%reconfigure_fonts_scriptlets %files %defattr(-, root,root) %doc README COPYING -%{ttf_fontdir} +%{_ttfontsdir} %changelog From c304a17a72396356bc4e0e99c4400c7a460c408959975d8ba22c8aabfe8063df Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Tue, 10 Jul 2012 07:24:52 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/un-fonts?expand=0&rev=9 --- un-fonts.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/un-fonts.spec b/un-fonts.spec index b8a94ea..98adfa1 100644 --- a/un-fonts.spec +++ b/un-fonts.spec @@ -50,7 +50,7 @@ Collection of Korean TrueType fonts. mkdir -p %{buildroot}%{_ttfontsdir}/ install -c -m 644 *.ttf %{buildroot}%{_ttfontsdir}/ -%reconfigure_fonts_scriptlets +%reconfigure_fonts_scriptlets -c %files %defattr(-, root,root)