init package
This commit is contained in:
commit
a449f21bc0
BIN
Jomolhari-alpha003.zip
Normal file
BIN
Jomolhari-alpha003.zip
Normal file
Binary file not shown.
77
jomolhari-fonts-fontconfig.conf
Normal file
77
jomolhari-fonts-fontconfig.conf
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Jomolhari</family>
|
||||||
|
<default>
|
||||||
|
<family>serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Locale-specfic overrides -->
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>bo-cn</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>bo-in</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>bo</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>dz-bt</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>dz</string>
|
||||||
|
</test>
|
||||||
|
<test name="family">
|
||||||
|
<string>serif</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="prepend">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="font">
|
||||||
|
<test name="family" ignore-blanks="yes">
|
||||||
|
<string>Jomolhari</string>
|
||||||
|
</test>
|
||||||
|
<edit name="autohint" mode="assign">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
60
jomolhari-fonts.spec
Normal file
60
jomolhari-fonts.spec
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
%global fontname jomolhari
|
||||||
|
%global fontconf 65-0-jomolhari.conf
|
||||||
|
|
||||||
|
Name: jomolhari-fonts
|
||||||
|
Version: 0.003
|
||||||
|
Release: 28
|
||||||
|
Summary: A Bhutanese font style for Tibetan and Dzongkha
|
||||||
|
|
||||||
|
License: OFL
|
||||||
|
URL: https://sites.google.com/site/chrisfynn2/home/fonts/jomolhari
|
||||||
|
Source0: https://collab.its.virginia.edu/access/content/group/26a34146-33a6-48ce-001e-f16ce7908a6a/Tibetan%20fonts/Tibetan%20Unicode%20Fonts/Jomolhari-alpha003.zip
|
||||||
|
Source1: jomolhari-fonts-fontconfig.conf
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: fontpackages-devel
|
||||||
|
Requires: fontpackages-filesystem
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and Tibetan
|
||||||
|
text. It supports the Unicode and the Chinese encoding for Tibetan.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -c -n %{name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
pushd %{buildroot}
|
||||||
|
install -m 0755 -d .%{_fontdir}
|
||||||
|
install -m 0644 -p %{_builddir}/%{buildsubdir}/*.ttf .%{_fontdir}
|
||||||
|
install -m 0755 -d .%{_fontconfig_templatedir} .%{_fontconfig_confdir}
|
||||||
|
install -m 0644 -p %{SOURCE1} .%{_fontconfig_templatedir}/%{fontconf}
|
||||||
|
popd
|
||||||
|
|
||||||
|
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||||
|
|
||||||
|
%define txtfiles {FONTLOG.txt OFL-FAQ.txt OFL.txt}
|
||||||
|
for i in %txtfiles
|
||||||
|
do
|
||||||
|
tr -d '\r' < $i > ${i}.tmp
|
||||||
|
mv -f ${i}.tmp $i
|
||||||
|
done
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc OFL.txt
|
||||||
|
%{_sysconfdir}/fonts/conf.d/65-0-jomolhari.conf
|
||||||
|
%{_datadir}/fonts/jomolhari/*.ttf
|
||||||
|
%{_datadir}/fontconfig/conf.avail/65-0-jomolhari.conf
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc FONTLOG.txt OFL-FAQ.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Nov 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.003-28
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user