From fed02b0168ba212e1af44443215e3616da84197e Mon Sep 17 00:00:00 2001 From: Parag Date: Nov 30 2012 06:43:28 +0000 Subject: Package Padauk Book family font in separate subpackage --- diff --git a/sil-padauk-fonts-book-fontconfig.conf b/sil-padauk-fonts-book-fontconfig.conf new file mode 100644 index 0000000..90dcd07 --- /dev/null +++ b/sil-padauk-fonts-book-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Padauk Book + + sans-serif + + + + sans-serif + + Padauk Book + + + diff --git a/sil-padauk-fonts.spec b/sil-padauk-fonts.spec index 1d59325..f0b9cab 100644 --- a/sil-padauk-fonts.spec +++ b/sil-padauk-fonts.spec @@ -1,10 +1,16 @@ %global fontname sil-padauk -%global fontconf 65-%{fontname}.conf +%global fontconf 65-%{fontname} %global archivename padauk-2.8 +%global common_desc \ +Padauk is a Myanmar font covering all currently used characters \ +in the Myanmar block. The font aims to cover all minority language needs. \ +At the moment, these do not extend to stylistic variation needs. \ +The font is a smart font using a Graphite description. + Name: %{fontname}-fonts Version: 2.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A font for Burmese and the Myanmar script Group: User Interface/X @@ -13,17 +19,28 @@ URL: http://scripts.sil.org/Padauk # The source link is a redirect and is not directly accessible Source0: %{archivename}.zip Source1: %{name}-fontconfig.conf +Source2: %{name}-book-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description -Padauk is a Myanmar font covering all currently used characters -in the Myanmar block. The font aims to cover all minority language needs. -At the moment, these do not extend to stylistic variation needs. -The font is a smart font using a Graphite description. +%common_desc + +%_font_pkg -f %{fontconf}.conf Padauk.ttf Padauk-bold.ttf +%doc *.txt + +%package -n %{fontname}-book-fonts +Summary: A font for Burmese and the Myanmar script + +%description -n %{fontname}-book-fonts +Padauk Book family font. +%common_desc + +%_font_pkg -n book -f %{fontconf}-book.conf Padauk-book*.ttf +%doc *.txt %prep %setup -q -n padauk-2.80 @@ -41,18 +58,21 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} \ - %{buildroot}%{_fontconfig_templatedir}/%{fontconf} - -ln -s %{_fontconfig_templatedir}/%{fontconf} \ - %{buildroot}%{_fontconfig_confdir}/%{fontconf} + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-book.conf -%_font_pkg -f %{fontconf} *.ttf - -%doc *.txt +ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf +ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf %changelog +* Fri Nov 30 2012 Parag - 2.8-2 +- Package Padauk Book family font in separate subpackage + * Thu Nov 29 2012 Parag - 2.8-1 - Resolves:rh#880012 - upstream new release available 2.8