diff --git a/sil-padauk-fonts-book-fontconfig.conf b/sil-padauk-fonts-book-fontconfig.conf new file mode 100644 index 0000000000000000000000000000000000000000..90dcd0750c706298742af59d2d15a099dfb5dc70 --- /dev/null +++ b/sil-padauk-fonts-book-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Padauk Book + + sans-serif + + + + sans-serif + + Padauk Book + + + diff --git a/sil-padauk-fonts-fontconfig.conf b/sil-padauk-fonts-fontconfig.conf new file mode 100644 index 0000000000000000000000000000000000000000..5d20412d2c53e3be022a4299342dd852752c5e47 --- /dev/null +++ b/sil-padauk-fonts-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + Padauk + + sans-serif + + + + sans-serif + + Padauk + + + + diff --git a/sil-padauk-fonts.spec b/sil-padauk-fonts.spec new file mode 100644 index 0000000000000000000000000000000000000000..e0e8740d99ff154959c1d8d655a9abacb68d2458 --- /dev/null +++ b/sil-padauk-fonts.spec @@ -0,0 +1,77 @@ +%define anolis_release 1 +%global fontname sil-padauk +%global fontconf 65-%{fontname} + +Name: sil-padauk-fonts +Version: 5.000 +Release: %{anolis_release}%{?dist} +Summary: Padauk pan Myanmar font + +License: OFL +URL: https://github.com/silnrsi +Source0: https://github.com/silnrsi/font-padauk/archive/refs/tags/v5.000.tar.gz +Source1: %{name}-fontconfig.conf +Source2: %{name}-book-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +BuildRequires: fonttools +Requires: fontpackages-filesystem + +%description +Padauk is a pan Burma font designed to support all Myanmar script based languages. +It covers all of the Unicode Myanmar script blocks and works on all OpenType and +Graphite based systems. + +%package -n %{fontname}-book-fonts +Summary: Padauk pan Myanmar font + +%description -n %{fontname}-book-fonts +Padauk pan Myanmar font. + +%prep +%autosetup -n font-padauk-%{version} -p1 +sed -i 's/\r//' *.txt documentation/DOCUMENTATION.txt + +%build +# nothing to do here + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p references/v4/*.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-book.conf + +ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf + +ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf + + +%files +%license OFL.txt OFL-FAQ.txt COPYING +%doc *.txt documentation FONTLOG.txt README.md +%config(noreplace) /etc/fonts/conf.d/%{fontconf}.conf +%dir %{_datadir}/fonts/sil-padauk +%{_datadir}/fonts/sil-padauk/Padauk-Regular.ttf +%{_datadir}/fonts/sil-padauk/Padauk-Bold.ttf +%{_datadir}/fontconfig/conf.avail/%{fontconf}.conf + +%files -n sil-padauk-book-fonts +%license OFL.txt OFL-FAQ.txt COPYING +%doc *.txt documentation FONTLOG.txt README.md +%config(noreplace) /etc/fonts/conf.d/%{fontconf}-book.conf +%dir %{_datadir}/fonts/sil-padauk +%{_datadir}/fonts/sil-padauk/PadaukBook*.ttf +%{_datadir}/fontconfig/conf.avail/%{fontconf}-book.conf + +%changelog +* Mon Apr 18 2022 happy_orange - 5.000-1 +- Init package from upstream diff --git a/v5.000.tar.gz b/v5.000.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bfc5551677784e221b9af3fae932ef26bc5282f5 Binary files /dev/null and b/v5.000.tar.gz differ