Updating spec file and add conf file

This commit is contained in:
aalam 2009-09-04 04:18:28 +00:00
parent d132ecd80b
commit 2503a3996f
2 changed files with 32 additions and 2 deletions

View File

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

View File

@ -1,14 +1,16 @@
%global fontname saab %global fontname saab
%global fontconf 66-%{fontname}.conf
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 0.91 Version: 0.91
Release: 2%{?dist} Release: 3%{?dist}
Summary: Free Punjabi Unicode OpenType Font Summary: Free Punjabi Unicode OpenType Font
Group: User Interface/X Group: User Interface/X
License: GPLv2+ with exceptions License: GPLv2+ with exceptions
URL: http://guca.sourceforge.net/typography/fonts/saab/ URL: http://guca.sourceforge.net/typography/fonts/saab/
Source0: http://downloads.sf.net/guca/saab.0.91.zip Source0: http://downloads.sf.net/guca/saab.0.91.zip
Source1: %{name}-fontconfig.conf
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -30,13 +32,24 @@ rm -rf $RPM_BUILD_ROOT
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p Saab.otf $RPM_BUILD_ROOT%{_fontdir} install -m 0644 -p Saab.otf $RPM_BUILD_ROOT%{_fontdir}
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}
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%_font_pkg Saab.otf %_font_pkg Saab.otf %{fontconf}
%doc %doc
%changelog %changelog
* Tue Sep 04 2009 A S Alam <aalam@redhat.com> - 0.91-3
- Add fontconfig conf file
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild