commit e1490498bce46df1e85226ee6c065ba98ea4f8b8 Author: CentOS Sources Date: Tue May 7 09:33:38 2019 -0400 import khmeros-fonts-5.0-25.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d57912 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/All_KhmerOS_5.0.zip diff --git a/.khmeros-fonts.metadata b/.khmeros-fonts.metadata new file mode 100644 index 0000000..4112d44 --- /dev/null +++ b/.khmeros-fonts.metadata @@ -0,0 +1 @@ +4a17c919b93f4b99765cd476708ef3a79a925f37 SOURCES/All_KhmerOS_5.0.zip diff --git a/SOURCES/65-0-khmeros-base.conf b/SOURCES/65-0-khmeros-base.conf new file mode 100644 index 0000000..3302f4a --- /dev/null +++ b/SOURCES/65-0-khmeros-base.conf @@ -0,0 +1,60 @@ + + + + + + Khmer OS + + sans-serif + + + + Khmer OS Content + + sans-serif + + + + Khmer OS System + + sans-serif + + + + + + + km + + + sans-serif + + + Khmer OS + + + + + km + + + sans-serif + + + Khmer OS Content + + + + + km + + + sans-serif + + + Khmer OS System + + + + + diff --git a/SOURCES/65-0-khmeros-battambang.conf b/SOURCES/65-0-khmeros-battambang.conf new file mode 100644 index 0000000..39f2af2 --- /dev/null +++ b/SOURCES/65-0-khmeros-battambang.conf @@ -0,0 +1,24 @@ + + + + + + Khmer OS Battambang + + sans-serif + + + + + + km + + + sans-serif + + + Khmer OS Battambang + + + + diff --git a/SOURCES/65-0-khmeros-bokor.conf b/SOURCES/65-0-khmeros-bokor.conf new file mode 100644 index 0000000..40db741 --- /dev/null +++ b/SOURCES/65-0-khmeros-bokor.conf @@ -0,0 +1,24 @@ + + + + + + Khmer OS Bokor + + sans-serif + + + + + + km + + + sans-serif + + + Khmer OS Bokor + + + + diff --git a/SOURCES/65-0-khmeros-handwritten.conf b/SOURCES/65-0-khmeros-handwritten.conf new file mode 100644 index 0000000..8902847 --- /dev/null +++ b/SOURCES/65-0-khmeros-handwritten.conf @@ -0,0 +1,41 @@ + + + + + + Khmer OS Fasthand + + sans-serif + + + + Khmer OS Freehand + + sans-serif + + + + + + km + + + sans-serif + + + Khmer OS Fasthand + + + + + km + + + sans-serif + + + Khmer OS Freehand + + + + diff --git a/SOURCES/65-0-khmeros-metal-chrieng.conf b/SOURCES/65-0-khmeros-metal-chrieng.conf new file mode 100644 index 0000000..fde6943 --- /dev/null +++ b/SOURCES/65-0-khmeros-metal-chrieng.conf @@ -0,0 +1,24 @@ + + + + + + Khmer OS Metal Chrieng + + sans-serif + + + + + + km + + + sans-serif + + + Khmer OS Metal Chrieng + + + + diff --git a/SOURCES/65-0-khmeros-muol.conf b/SOURCES/65-0-khmeros-muol.conf new file mode 100644 index 0000000..2448b23 --- /dev/null +++ b/SOURCES/65-0-khmeros-muol.conf @@ -0,0 +1,60 @@ + + + + + + Khmer OS Muol + + sans-serif + + + + Khmer OS Muol Pali + + sans-serif + + + + Khmer OS Muol Light + + sans-serif + + + + + + + km + + + sans-serif + + + Khmer OS Muol + + + + + km + + + sans-serif + + + Khmer OS Muol Pali + + + + + km + + + sans-serif + + + Khmer OS Muol Light + + + + + diff --git a/SOURCES/65-0-khmeros-siemreap.conf b/SOURCES/65-0-khmeros-siemreap.conf new file mode 100644 index 0000000..1d71172 --- /dev/null +++ b/SOURCES/65-0-khmeros-siemreap.conf @@ -0,0 +1,24 @@ + + + + + + Khmer OS Siemreap + + sans-serif + + + + + + km + + + sans-serif + + + Khmer OS Siemreap + + + + diff --git a/SOURCES/License.txt b/SOURCES/License.txt new file mode 100644 index 0000000..ccb4984 --- /dev/null +++ b/SOURCES/License.txt @@ -0,0 +1,17 @@ +KhmerOS - font for the Khmer language of Cambodia +Copyright 2007 Danh Hong + +This font is free software; you can redistribute it and/or modify it under the +terms of the GNU Lesser General Public License as published by the Free +Software Foundation; either version 2.1 of the License, or (at your option) +any later version. + +This library is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +FOR A PARTICULAR PURPOSE.? See the GNU Lesser General Public License for +more details. + +You should have received a copy of the GNU Lesser General Public License along +with this font; if not, write to the Free Software Foundation, Inc., 51 +Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or +visit http://www.gnu.org/licenses/lgpl.html diff --git a/SOURCES/khmeros-base.metainfo.xml b/SOURCES/khmeros-base.metainfo.xml new file mode 100644 index 0000000..5088990 --- /dev/null +++ b/SOURCES/khmeros-base.metainfo.xml @@ -0,0 +1,17 @@ + + + khmeros-base + CC0-1.0 + Khmer OS + A set of Cambodian fonts + +

+ The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent + sizes for Khmer and English alphabets, so that when texts mix both it is not + necessary to have different point sizes for the text in each language. + They were created by Danh Hong of the Cambodian Open Institute. +

+
+ psatpute_at_redhat_dot_com + http://www.khmeros.info/ +
diff --git a/SOURCES/khmeros-battambang.metainfo.xml b/SOURCES/khmeros-battambang.metainfo.xml new file mode 100644 index 0000000..929fec5 --- /dev/null +++ b/SOURCES/khmeros-battambang.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-battambang + CC0-1.0 + khmeros-base + diff --git a/SOURCES/khmeros-bokor.metainfo.xml b/SOURCES/khmeros-bokor.metainfo.xml new file mode 100644 index 0000000..d09b858 --- /dev/null +++ b/SOURCES/khmeros-bokor.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-bokor + CC0-1.0 + khmeros-base + diff --git a/SOURCES/khmeros-handwritten.metainfo.xml b/SOURCES/khmeros-handwritten.metainfo.xml new file mode 100644 index 0000000..578f8ec --- /dev/null +++ b/SOURCES/khmeros-handwritten.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-handwritten + CC0-1.0 + khmeros-base + diff --git a/SOURCES/khmeros-metal-chrieng.metainfo.xml b/SOURCES/khmeros-metal-chrieng.metainfo.xml new file mode 100644 index 0000000..e12d586 --- /dev/null +++ b/SOURCES/khmeros-metal-chrieng.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-metal-chrieng + CC0-1.0 + khmeros-base + diff --git a/SOURCES/khmeros-muol.metainfo.xml b/SOURCES/khmeros-muol.metainfo.xml new file mode 100644 index 0000000..d09c61e --- /dev/null +++ b/SOURCES/khmeros-muol.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-muol + CC0-1.0 + khmeros-base + diff --git a/SOURCES/khmeros-siemreap.metainfo.xml b/SOURCES/khmeros-siemreap.metainfo.xml new file mode 100644 index 0000000..89c1d93 --- /dev/null +++ b/SOURCES/khmeros-siemreap.metainfo.xml @@ -0,0 +1,6 @@ + + + khmeros-siemreap + CC0-1.0 + khmeros-base + diff --git a/SPECS/khmeros-fonts.spec b/SPECS/khmeros-fonts.spec new file mode 100644 index 0000000..3a2a9fa --- /dev/null +++ b/SPECS/khmeros-fonts.spec @@ -0,0 +1,267 @@ +%global fontname khmeros +%global archivename All_KhmerOS_%{version} + +%global fontconf 65-0-%{fontname} + +%global common_desc \ +The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent \ +sizes for Khmer and English alphabets, so that when texts mix both it is not \ +necessary to have different point sizes for the text in each language. \ +\ +They were created by Danh Hong of the Cambodian Open Institute. + + +Name: %{fontname}-fonts +Version: 5.0 +Release: 25%{?dist} +Summary: Khmer font set created by Danh Hong of the Cambodian Open Institute + +License: LGPLv2+ +URL: http://www.khmeros.info/en/fonts +Source0: http://downloads.sourceforge.net/khmer/%{archivename}.zip +Source1: 65-0-khmeros-battambang.conf +Source2: 65-0-khmeros-bokor.conf +Source3: 65-0-khmeros-handwritten.conf +Source4: 65-0-khmeros-base.conf +Source5: 65-0-khmeros-metal-chrieng.conf +Source6: 65-0-khmeros-muol.conf +Source7: 65-0-khmeros-siemreap.conf +Source8: License.txt +Source9: %{fontname}-base.metainfo.xml +Source10: %{fontname}-battambang.metainfo.xml +Source11: %{fontname}-bokor.metainfo.xml +Source12: %{fontname}-handwritten.metainfo.xml +Source13: %{fontname}-metal-chrieng.metainfo.xml +Source14: %{fontname}-muol.metainfo.xml +Source15: %{fontname}-siemreap.metainfo.xml + +BuildArch: noarch +BuildRequires: fontpackages-devel + +%description +%common_desc + + +%package common +Summary: Common files of %{name} +Requires: fontpackages-filesystem + +%description common +%common_desc + +This package consists of files used by other %{name} packages. + + +%package -n %{fontname}-base-fonts +Summary: Base KhmerOS font +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-base-fonts +%common_desc + +Base KhmerOS fonts. + +%_font_pkg -n base -f 65-0-khmeros-base.conf KhmerOS.ttf KhmerOS_content.ttf KhmerOS_sys.ttf +%{_datadir}/appdata/%{fontname}-base.metainfo.xml + + +%package -n %{fontname}-battambang-fonts +Summary: Battambang font +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-battambang-fonts +%common_desc + +Battambang font. + +%_font_pkg -n battambang -f 65-0-khmeros-battambang.conf KhmerOS_battambang.ttf +%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml + + +%package -n %{fontname}-bokor-fonts +Summary: Bokor font +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-bokor-fonts +%common_desc + +Bokor font. + +%_font_pkg -n bokor -f 65-0-khmeros-bokor.conf KhmerOS_bokor.ttf +%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml + +%package -n %{fontname}-handwritten-fonts +Summary: Freehand and fasthand fonts +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-handwritten-fonts +%common_desc + +Freehand and fasthand - handwritten fonts. + +%_font_pkg -n handwritten -f 65-0-khmeros-handwritten.conf KhmerOS_freehand.ttf KhmerOS_fasthand.ttf +%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml + +%package -n %{fontname}-metal-chrieng-fonts +Summary: Metal Chrieng font +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-metal-chrieng-fonts +%common_desc + +Metal Chrieng font. + +%_font_pkg -n metal-chrieng -f 65-0-khmeros-metal-chrieng.conf KhmerOS_metalchrieng.ttf +%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml + +%package -n %{fontname}-muol-fonts +Summary: Muol fonts - normal, light and Pali +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-muol-fonts +%common_desc + +Muol fonts - normal, light and Pali. + +%_font_pkg -n muol -f 65-0-khmeros-muol.conf KhmerOS_muol.ttf KhmerOS_muollight.ttf KhmerOS_muolpali.ttf +%{_datadir}/appdata/%{fontname}-muol.metainfo.xml + +%package -n %{fontname}-siemreap-fonts +Summary: Siemreap font +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-siemreap-fonts +%common_desc + +Siemreap font. + +%_font_pkg -n siemreap -f 65-0-khmeros-siemreap.conf KhmerOS_siemreap.ttf +%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml + + +%prep +%autosetup -n %{archivename} +install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} . +install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} . + + +%build +#nothing + +%install +# get rid of the white space (' ') +mv 'KhmerOS .ttf' KhmerOS.ttf + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.ttf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +for conffile in *.conf ; do +install -m 0644 -p $conffile %{buildroot}%{_fontconfig_templatedir}/${conffile} +ln -s %{_fontconfig_templatedir}/$conffile \ + %{buildroot}%{_fontconfig_confdir}/$conffile +done + +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE9} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml +install -Dm 0644 -p %{SOURCE10} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml +install -Dm 0644 -p %{SOURCE11} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml +install -Dm 0644 -p %{SOURCE12} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml +install -Dm 0644 -p %{SOURCE13} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml +install -Dm 0644 -p %{SOURCE14} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-muol.metainfo.xml +install -Dm 0644 -p %{SOURCE15} \ + %{buildroot}%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml + + +%files common +%license License.txt + + +%changelog +* Wed Jul 04 2018 Parag Nemade - 5.0-25 +- Update to follow latest packaging guidelines + +* Wed Feb 07 2018 Fedora Release Engineering - 5.0-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 5.0-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 5.0-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 5.0-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 5.0-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Oct 30 2014 Pravin Satpute - 5.0-19 +- Adding metainfo for gnome-software. +- Corrected url + +* Sun Jun 08 2014 Fedora Release Engineering - 5.0-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 5.0-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 5.0-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 27 2012 Jon Ciesla - 5.0-15 +- Remove old obsoletes, BZ 880479. + +* Thu Jul 19 2012 Fedora Release Engineering - 5.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jul 05 2012 Parag - 5.0-13 +- Resolves:rh#837520 - Malformed fontconfig config file + +* Fri Jan 13 2012 Fedora Release Engineering - 5.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 5.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 12 2010 Parag - 5.0-10 +- Added License.txt in -common + +* Thu May 20 2010 Parag - 5.0-9 +- Resolves:rh#586253 - No fontconfig config files provided + +* Tue Feb 16 2010 Parag - 5.0-8 +- drop -common owning %%{_fontdir} + +* Fri Jul 24 2009 Fedora Release Engineering - 5.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 5.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Jan 25 2009 Michal Nowak - 5.0-5 +- provide Obsoletes and dependency on -common pkg + +* Fri Jan 23 2009 Michal Nowak - 5.0-4 +- changes to comply with F11 font rules + +* Tue Jul 8 2008 Michal Nowak - 5.0-3 +- reshaping to multiple subpackages based on font type/purpose +- license uncertainity is solved; licence field is set according + to information from .ttf files read via gnome-font-viewer + +* Mon Jul 7 2008 Michal Nowak - 5.0-2 +- removing Fedora specific license +- refactoring summary and description texts (Nicolas Mailhot) + +* Fri Jul 4 2008 Michal Nowak - 5.0-1 +- initial release +