package init

This commit is contained in:
small_leek 2020-02-14 03:54:07 -05:00
parent 3ed0d73247
commit 81d41f59b9
3 changed files with 64 additions and 0 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>

47
saab-fonts.spec Normal file
View File

@ -0,0 +1,47 @@
Name: saab-fonts
Version: 0.91
Release: 19
Summary: A first free OpenType, Gurmukhi (Punjabi) font.
License: GPLv2+ with exceptions
URL: http://guca.sourceforge.net/typography/fonts/saab/
Source0: http://downloads.sf.net/guca/saab.0.91.zip
Source1: %{name}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
Saab is the first ever freely available, Unicode 4.0 compliant, OpenType,
Gurmukhi (Punjabi) font. The creation of this font was a combined effort
by Bhupinder Singh and Sukhjinder Sidhu to help encourage the use of
Punjabi online. This web site serves as the official download point for Saab.
%define fontconf 67-saab.conf
%prep
%setup -q -c
%build
%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/saab
install -m 0644 Saab.otf %{buildroot}%{_datadir}/fonts/saab
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
install -m 0755 -d %{buildroot}%{_datadir}/fontconfig/conf.avail
install -m 0644 -p -D %{SOURCE1} %{buildroot}%{_datadir}/fontconfig/conf.avail/%{fontconf}
ln -s %{_datadir}/fontconfig/conf.avail/%{fontconf} %{buildroot}%{_sysconfdir}/fonts/conf.d/%{fontconf}
%files
%defattr(-,root,root)
%{_datadir}/fonts/saab/Saab.otf
%{_sysconfdir}/fonts/conf.d/67-saab.conf
%{_fontconfig_templatedir}/%{fontconf}
%changelog
* Fri Feb 14 2020 Senlin Xia <xiasenlin1@huawei.com> - 0.91-19
- Package init

BIN
saab.0.91.zip Normal file

Binary file not shown.