Package Padauk Book family font in separate subpackage

This commit is contained in:
Parag 2012-11-30 12:13:28 +05:30
parent a6236f580d
commit fed02b0168
2 changed files with 49 additions and 13 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>Padauk Book</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Padauk Book</family>
</prefer>
</alias>
</fontconfig>

View File

@ -1,10 +1,16 @@
%global fontname sil-padauk %global fontname sil-padauk
%global fontconf 65-%{fontname}.conf %global fontconf 65-%{fontname}
%global archivename padauk-2.8 %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 Name: %{fontname}-fonts
Version: 2.8 Version: 2.8
Release: 1%{?dist} Release: 2%{?dist}
Summary: A font for Burmese and the Myanmar script Summary: A font for Burmese and the Myanmar script
Group: User Interface/X 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 # The source link is a redirect and is not directly accessible
Source0: %{archivename}.zip Source0: %{archivename}.zip
Source1: %{name}-fontconfig.conf Source1: %{name}-fontconfig.conf
Source2: %{name}-book-fontconfig.conf
BuildArch: noarch BuildArch: noarch
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem Requires: fontpackages-filesystem
%description %description
Padauk is a Myanmar font covering all currently used characters %common_desc
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.
%_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 %prep
%setup -q -n padauk-2.80 %setup -q -n padauk-2.80
@ -41,18 +58,21 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \ install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-book.conf
ln -s %{_fontconfig_templatedir}/%{fontconf} \ ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
%_font_pkg -f %{fontconf} *.ttf
%doc *.txt
ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf
%changelog %changelog
* Fri Nov 30 2012 Parag <paragn AT fedoraproject DOT org> - 2.8-2
- Package Padauk Book family font in separate subpackage
* Thu Nov 29 2012 Parag <paragn AT fedoraproject DOT org> - 2.8-1 * Thu Nov 29 2012 Parag <paragn AT fedoraproject DOT org> - 2.8-1
- Resolves:rh#880012 - upstream new release available 2.8 - Resolves:rh#880012 - upstream new release available 2.8