From 8fc11c1c11c87bac2608364e6fc0f5ecc394b47daf9d5d0e9ab32b5d6291740e Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Tue, 25 Sep 2012 06:35:46 +0000 Subject: [PATCH] new font packaging scheme OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/cyreal-alice-fonts?expand=0&rev=2 --- cyreal-alice-fonts.changes | 5 +++++ cyreal-alice-fonts.spec | 18 ++++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/cyreal-alice-fonts.changes b/cyreal-alice-fonts.changes index 8f6c3e3..b445023 100644 --- a/cyreal-alice-fonts.changes +++ b/cyreal-alice-fonts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 25 06:25:49 UTC 2012 - lazy.kent@opensuse.org + +- New font packaging scheme. + ------------------------------------------------------------------- Fri Jul 20 18:57:30 UTC 2012 - lazy.kent@opensuse.org diff --git a/cyreal-alice-fonts.spec b/cyreal-alice-fonts.spec index a59e736..ca68243 100644 --- a/cyreal-alice-fonts.spec +++ b/cyreal-alice-fonts.spec @@ -16,8 +16,6 @@ # -%define _ttf_fontdir %{_datadir}/fonts/truetype - Name: cyreal-alice-fonts Version: 1.010 Release: 0 @@ -27,11 +25,11 @@ Url: http://cyreal.org/archives/842 Group: System/X11/Fonts #Source0: wget http://www.google.com/webfonts/download?kit=nVDICQAe6IAM-XidgBCu9Q -O cyreal-alice-fonts.zip Source0: cyreal-alice-fonts.zip +BuildRequires: fontpackages-devel BuildRequires: unzip -BuildRequires: xorg-x11-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -Requires(pre): %suseconfig_fonts_prereq +%reconfigure_fonts_prereq %description Ksenia Erulevich, designer of the Alice typeface, was inspired by Lewis @@ -50,18 +48,14 @@ sed -i 's/\r$//g' OFL.txt %install install -Dm 644 Alice-Regular.ttf \ - %{buildroot}%{_ttf_fontdir}/Alice-Regular.ttf + %{buildroot}%{_ttfontsdir}/Alice-Regular.ttf -%post -%run_suseconfig_fonts - -%postun -%run_suseconfig_fonts +%reconfigure_fonts_scriptlets %files %defattr(-,root,root,-) %doc OFL.txt -%dir %{_ttf_fontdir} -%{_ttf_fontdir}/Alice-Regular.ttf +%dir %{_ttfontsdir} +%{_ttfontsdir}/Alice-Regular.ttf %changelog