Initial import (fedora#2081539)

This commit is contained in:
Hedayat Vatankhah 2022-06-04 14:53:36 +04:30
parent 57cf705847
commit 47622ceeb4
11 changed files with 469 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/vazirmatn-v32.101.zip

61
56-vazirmatn-fonts.conf Normal file
View File

@ -0,0 +1,61 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn</string>
</edit>
</match>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>Droid Sans</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Vazirmatn</string>
</edit>
</match>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>Open Sans</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Vazirmatn</string>
</edit>
</match>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>Open Sans Semibold</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Vazirmatn:style=bold</string>
</edit>
</match>
<alias>
<family>Vazirmatn</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazir</family>
<accept>
<family>Vazirmatn</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn NL</string>
</edit>
</match>
<alias>
<family>Vazirmatn NL</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazir</family>
<accept>
<family>Vazirmatn NL</family>
</accept>
</alias>
<alias binding="same">
<family>Vazirmatn</family>
<accept>
<family>Vazirmatn NL</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn RD</string>
</edit>
</match>
<alias>
<family>Vazirmatn RD</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazir</family>
<accept>
<family>Vazirmatn RD</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,34 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn RD NL</string>
</edit>
</match>
<alias>
<family>Vazirmatn RD NL</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazir</family>
<accept>
<family>Vazirmatn RD NL</family>
</accept>
</alias>
<alias binding="same">
<family>Vazirmatn RD</family>
<accept>
<family>Vazirmatn RD NL</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn RD UI</string>
</edit>
</match>
<alias>
<family>Vazirmatn RD UI</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn RD UI NL</string>
</edit>
</match>
<alias>
<family>Vazirmatn RD UI NL</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazirmatn RD UI</family>
<accept>
<family>Vazirmatn RD UI NL</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn UI</string>
</edit>
</match>
<alias>
<family>Vazirmatn UI</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

View File

@ -0,0 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match>
<test name="lang">
<string>fa</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Vazirmatn UI NL</string>
</edit>
</match>
<alias>
<family>Vazirmatn UI NL</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias binding="same">
<family>Vazirmatn UI</family>
<accept>
<family>Vazirmatn UI NL</family>
</accept>
</alias>
</fontconfig>

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (vazirmatn-v32.101.zip) = eef8ec4864bab927639a31139bd1d25e6579bc890a92c31b29663fa31cf1399fb9493f23ad36ff308d7b289c119b65d51526ef07aee662598934d29fdc261aef

210
vazirmatn-fonts.spec Normal file
View File

@ -0,0 +1,210 @@
Version: 32.101
Release: 3%{?dist}
URL: https://rastikerdar.github.io/vazirmatn
%global fontlicense OFL
%global fontlicenses OFL.txt
%global fontdocs AUTHORS.txt *.md
%global fontdocsex %{fontlicenses}
%global common_description %{expand:
Vazirmatn (formerly known as Vazir), is a Persian/Arabic typeface family with
a simple and smooth form usable in most contexts. For Latin glyphs, Vazirmatn
is combined with Roboto font, however there is also a version without Latin
glyphs (Non-Latin).
}
# Declaration for the subpackage containing the main font family. Also used as
# source rpm info.
%global fontfamily0 Vazirmatn
%global fontsummary0 A simple and legible Persian/Arabic typeface
%global fontpkgheader0 %{expand:
}
%global fonts0 fonts/ttf/*.ttf
%global fontconfs0 %{SOURCE10}
%global fontdescription0 %{expand: %{common_description}
}
# Declaration for the subpackage containing the NL font family.
%global fontfamily1 Vazirmatn NL
%global fontsummary1 Non-Latin Vazirmatn font
%global fontpkgheader1 %{expand:
}
%global fonts1 misc/Non-Latin/fonts/ttf/*.ttf
%global fontconfs1 %{SOURCE11}
%global fontdescription1 %{expand: %{common_description}
This is the version of the font without Latin glyphs.
}
# Declaration for the subpackage containing the UI font family.
%global fontfamily2 Vazirmatn UI
%global fontsummary2 Vazirmatn UI font
%global fontpkgheader2 %{expand:
}
%global fonts2 misc/UI/fonts/ttf/*.ttf
%global fontconfs2 %{SOURCE12}
%global fontdescription2 %{expand: %{common_description}
This version of the font provides generally smaller height to be more suitable
for UI.
}
# Declaration for the subpackage containing the UI NL font family.
%global fontfamily3 Vazirmatn UI NL
%global fontsummary3 Non-Latin Vazirmatn UI font
%global fontpkgheader3 %{expand:
}
%global fonts3 misc/UI-Non-Latin/fonts/ttf/*.ttf
%global fontconfs3 %{SOURCE13}
%global fontdescription3 %{expand: %{common_description}
This version of the font provides generally smaller height to be more suitable
for UI and without Latin glyphs.
}
# Declaration for the subpackage containing the RD font family.
%global fontfamily4 Vazirmatn RD
%global fontsummary4 A variant of Vazirmatn using round dots instead of cubic ones
%global fontpkgheader4 %{expand:
}
%global fonts4 Round-Dots/fonts/ttf/*.ttf
%global fontconfs4 %{SOURCE14}
%global fontdescription4 %{expand: %{common_description}
This variant uses round dots including the dots used over or under letters
rather than cubic dots used in original variant.
}
# Declaration for the subpackage containing the RD NL font family.
%global fontfamily5 Vazirmatn RD NL
%global fontsummary5 Non-Latin Vazirmatn RD font
%global fontpkgheader5 %{expand:
}
%global fonts5 Round-Dots/misc/Non-Latin/fonts/*/*.ttf
%global fontconfs5 %{SOURCE15}
%global fontdescription5 %{expand: %{common_description}
This variant uses round dots including the dots used over or under letters
rather than cubic dots used in original variant. It also comes without Latin
glyphs.
}
# Declaration for the subpackage containing the RD UI font family.
%global fontfamily6 Vazirmatn RD UI
%global fontsummary6 Vazirmatn RD UI font
%global fontpkgheader6 %{expand:
}
%global fonts6 Round-Dots/misc/UI/fonts/*/*.ttf
%global fontconfs6 %{SOURCE16}
%global fontdescription6 %{expand: %{common_description}
This version of the font provides generally smaller height to be more suitable
for UI.
}
# Declaration for the subpackage containing the RD UI NL font family.
%global fontfamily7 Vazirmatn RD UI NL
%global fontsummary7 Non-Latin Vazirmatn RD UI font
%global fontpkgheader7 %{expand:
}
%global fonts7 Round-Dots/misc/UI-Non-Latin/fonts/*/*.ttf
%global fontconfs7 %{SOURCE17}
%global fontdescription7 %{expand: %{common_description}
This version of the font provides generally smaller height to be more suitable
for UI and without Latin glyphs.
}
# Declaration for the subpackages of the variable versions
%global fontfamily8 %{fontfamily0} VF
%global fontsummary8 %{fontsummary0} (variable version)
%global fontpkgheader8 %{fontpkgheader0}
%global fonts8 fonts/variable/*.ttf
%global fontconfs8 %{fontconfs0}
%global fontdescription8 %{expand:
%{fontdescription0}
This is the variable version of this font.
}
%global fontfamily9 %{fontfamily1} VF
%global fontsummary9 %{fontsummary1} (variable version)
%global fontpkgheader9 %{fontpkgheader1}
%global fonts9 misc/Non-Latin/fonts/variable/*.ttf
%global fontconfs9 %{fontconfs1}
%global fontdescription9 %{expand:
%{fontdescription1}
This is the variable version of this font.
}
%global fontfamily10 %{fontfamily4} VF
%global fontsummary10 %{fontsummary4} (variable version)
%global fontpkgheader10 %{fontpkgheader4}
%global fonts10 Round-Dots/fonts/variable/*.ttf
%global fontconfs10 %{fontconfs4}
%global fontdescription10 %{expand:
%{fontdescription4}
This is the variable version of this font.
}
%global fontfamily11 %{fontfamily5} VF
%global fontsummary11 %{fontsummary5} (variable version)
%global fontpkgheader11 %{fontpkgheader5}
%global fonts11 Round-Dots/misc/Non-Latin/fonts/variable/*.ttf
%global fontconfs11 %{fontconfs5}
%global fontdescription11 %{expand:
%{fontdescription5}
This is the variable version of this font.
}
Source0: https://github.com/rastikerdar/vazirmatn/releases/download/v%{version}/vazirmatn-v%{version}.zip
Source10: 56-%{fontpkgname0}.conf
Source11: 56-%{fontpkgname1}.conf
Source12: 62-%{fontpkgname2}.conf
Source13: 62-%{fontpkgname3}.conf
Source14: 56-%{fontpkgname4}.conf
Source15: 56-%{fontpkgname5}.conf
Source16: 62-%{fontpkgname6}.conf
Source17: 62-%{fontpkgname7}.conf
# Generate the font subpackage headers
%fontpkg -a
# Generate a font meta(sub)package header for all the font subpackages generated in this spec.
%fontmetapkg
%prep
%setup -q -c
%linuxtext *.txt
%build
%fontbuild -a
sed -i 's/VF/(Variable)/' org*.xml
%install
%{lua:
for i = 0, 7 do
print(rpm.expand('%fontinstall -z ' .. i))
end}
# Remove shared symlinks to prevent errors during fontinstall
rm -f %{buildroot}%{_sysconfdir}/fonts/conf.d/56-*
%{lua:
for i = 8, 11 do
print(rpm.expand('%fontinstall -z ' .. i))
end}
%check
%fontcheck -a
%fontfiles -a
%changelog
* Thu Jun 02 2022 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 32.101-3
- Enhance package descriptions
* Fri May 20 2022 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 32.101-2
- Create separate package for VF fonts & cleanup most template comments
* Sat Apr 23 2022 Hedayat Vatankhah <hedayat.fwd+rpmchlog@gmail.com> - 32.101-1
- Initial version